This repository was archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
129 lines (109 loc) · 4.12 KB
/
build.xml
File metadata and controls
129 lines (109 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version ="1.0"?>
<project name="PrintWebService">
<import file="ivy-targets.xml"/>
<property name="base.dir" value="."/>
<property name="jboss.home.dir" value="E:/jboss-4.2.2.GA"/>
<property name="classes.dir" value="${base.dir}/WEB-INF/classes"/>
<property name="wsdl.dir" value="${base.dir}/WEB-INF/wsdl"/>
<property name="src.dir" value="../WEB-INF/src" />
<property name="target.dir" value="${base.dir}/WEB-INF/classes" />
<property name="java.home.dir" value="C:/Program Files/Java/jdk1.5.0_06"/>
<target name="copyFiles" depends="ivy-runtime">
<copy file="./output/PrintWebService.wsdl" todir="./WEB-INF/wsdl"/>
<copy todir="./WEB-INF/classes">
<fileset dir="./output">
<include name="edu/**" />
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="./WEB-INF/lib">
<fileset dir="ivylib/runtime">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name="build_war" depends="copyFiles">
<war destfile="caTissuePrintWebService.war" webxml="./WEB-INF/web.xml" >
<fileset dir="${base.dir}">
<include name="WEB-INF/**" />
<include name="edu/**" />
</fileset>
</war>
</target>
<target name="clean_temp_dir_war" description="delete temp directory used for caCORE unpack">
<!-- do delete ${temp.dir} -->
<delete file="${jboss.home.dir}/server/default/deploy/caTissuePrintWebService.war" />
</target>
<path id="wsprovide.path">
<fileset dir="${jboss.home.dir}/client" includes="*.jar" />
<fileset dir="${jboss.home.dir}/lib/endorsed" includes="*.jar" />
</path>
<path id="jdk.path">
<fileset dir="${java.home.dir}/lib" includes="tools.jar" />
</path>
<target name="compile" depends="ivy-compile">
<echo message="${base.dir}" />
<javac destdir="${target.dir}" includes="**/*.*" includeAntRuntime="false" debug="yes" target="1.5">
<src path="${base.dir}/src"/>
<classpath>
<fileset dir="${base.dir}/ivylib/compile">
<include name="*.jar" />
</fileset>
</classpath>
<classpath refid="wsprovide.path" />
</javac>
<copy todir="${classes.dir}">
<fileset dir="${base.dir}">
<include name="*.properties" />
</fileset>
</copy>
</target>
<target name="wsprovide" depends="compile" description="wsprovide task for JBoss-4.2.2.GA">
<taskdef name="wsprovide" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
<classpath refid="wsprovide.path" />
</taskdef>
<wsprovide
fork="false"
keep="true"
destdir="output"
resourcedestdir="output"
sourcedestdir="output"
genwsdl="true"
verbose="true"
sei="edu.wustl.webservice.catissuecore.print.PrintService">
<classpath>
<pathelement path="${classes.dir}"/>
</classpath>
</wsprovide>
</target>
<target name="wsconsume" description="wsconsume task for JBoss-4.2.2.GA">
<taskdef name="wsconsume"
classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
<classpath refid="wsprovide.path" />
<classpath refid="jdk.path" />
</taskdef>
<wsconsume
fork="true"
verbose="true"
destdir="outputclient"
sourcedestdir="outputclient"
keep="true"
wsdllocation="${wsdl.dir}/PrintWebService.wsdl"
wsdl="${wsdl.dir}/PrintWebService.wsdl">
</wsconsume>
</target>
<target name="copyWebserviceTocaTissue" description="Copy autogenerated files from wsconsume and caTissuePrintWebService.war to catissue">
<copy todir="${src.dir}">
<fileset dir="outputclient">
<include name="**/*.java" />
<exclude name="**/*.class"/>
</fileset>
</copy>
<copy file="caTissuePrintWebService.war" todir="../"/>
</target>
<target name="deleteUnusedFoldersAndjar" description="Deleted unused folders and jar">
<delete dir="${base.dir}/outputclient" />
<delete dir="${base.dir}/output" />
<delete file="${base.dir}/caTissuePrintWebService.war"/>
</target>
</project>