root / build.xml @ 1b2719e1
History | View | Annotate | Download (15.8 kB)
1 | 14ad7326 | pastith | <?xml version="1.0" encoding="utf-8" ?>
|
---|---|---|---|
2 | 14ad7326 | pastith | <project name="gss" default="deploy" basedir="."> |
3 | 14ad7326 | pastith | <description>The GSS project build file</description> |
4 | 14ad7326 | pastith | |
5 | 14ad7326 | pastith | <property file="build.properties"/> |
6 | 14ad7326 | pastith | |
7 | 14ad7326 | pastith | <property name="jboss_run_configuration" value="default" /> |
8 | 14ad7326 | pastith | <property name="root.context" value="gss" /> |
9 | 14ad7326 | pastith | <property name="gwt.module" value="gr.ebs.gss.GSS" /> |
10 | 14ad7326 | pastith | <property name="gwt.module.class" value="GSS" /> |
11 | 14ad7326 | pastith | |
12 | 14ad7326 | pastith | <property environment="env" /> |
13 | 14ad7326 | pastith | |
14 | 14ad7326 | pastith | <!-- Application server specific configuration -->
|
15 | 14ad7326 | pastith | <property name="jboss-spec.dir" value="${basedir}/jboss" /> |
16 | 14ad7326 | pastith | <property name="jboss-spec.conf.dir" value="${jboss-spec.dir}/conf" /> |
17 | 14ad7326 | pastith | <property name="jboss-spec.bin.dir" value="${jboss-spec.dir}/bin" /> |
18 | 14ad7326 | pastith | <property name="jboss-spec.deploy.dir" value="${jboss-spec.dir}/deploy" /> |
19 | 14ad7326 | pastith | <property name="jboss-spec.lib.dir" value="${jboss-spec.dir}/lib" /> |
20 | 14ad7326 | pastith | |
21 | 14ad7326 | pastith | <!-- Production deployment specific configuration -->
|
22 | 14ad7326 | pastith | <property name="jboss-spec.prod.dir" value="${basedir}/jboss-production" /> |
23 | 14ad7326 | pastith | <property name="jboss-spec.prod.conf.dir" value="${jboss-spec.prod.dir}/conf" /> |
24 | 14ad7326 | pastith | <property name="jboss-spec.prod.bin.dir" value="${jboss-spec.prod.dir}/bin" /> |
25 | 14ad7326 | pastith | <property name="jboss-spec.prod.deploy.dir" value="${jboss-spec.prod.dir}/deploy" /> |
26 | 14ad7326 | pastith | <property name="jboss-spec.prod.lib.dir" value="${jboss-spec.prod.dir}/lib" /> |
27 | 14ad7326 | pastith | |
28 | 14ad7326 | pastith | <!-- Jboss dirs -->
|
29 | 14ad7326 | pastith | <property name="jboss.home" value="${env.JBOSS_HOME}" /> |
30 | 14ad7326 | pastith | <property name="jboss.prod.home" value="${env.JBOSS_PROD_HOME}" /> |
31 | 14ad7326 | pastith | <property name="jboss.version" value="${env.JBOSS_VERSION}" /> |
32 | 14ad7326 | pastith | <property name="gwt.path" value="${env.GWT_PATH}" /> |
33 | 139f2dd5 | Panagiotis Astithas | <property name="hornetq.path" value="${env.HORNETQ_PATH}" /> |
34 | 14ad7326 | pastith | <property name="src.dir" value="${basedir}/src"/> |
35 | 14ad7326 | pastith | |
36 | 14ad7326 | pastith | <property name="jboss.project" value="${basedir}/jboss-config/${jboss.version}" /> |
37 | 14ad7326 | pastith | <property name="jboss.bin.dir" value="${jboss.home}/bin" /> |
38 | 14ad7326 | pastith | <property name="jboss.conf.dir" value="${jboss.home}/server/${jboss_run_configuration}/conf" /> |
39 | 14ad7326 | pastith | <property name="jboss.deploy.dir" value="${jboss.home}/server/${jboss_run_configuration}/deploy" /> |
40 | 14ad7326 | pastith | <property name="jboss.run_conf.lib.dir" value="${jboss.home}/server/${jboss_run_configuration}/lib" /> |
41 | 14ad7326 | pastith | <property name="jboss.lib.dir" value="${jboss.home}/lib" /> |
42 | 14ad7326 | pastith | <property name="jboss.common.lib.dir" value="${jboss.home}/common/lib" /> |
43 | 14ad7326 | pastith | |
44 | 14ad7326 | pastith | <property name="jboss.prod.bin.dir" value="${jboss.prod.home}/bin" /> |
45 | 14ad7326 | pastith | <property name="jboss.prod.conf.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/conf" /> |
46 | 14ad7326 | pastith | <property name="jboss.prod.deploy.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/deploy" /> |
47 | 14ad7326 | pastith | <property name="jboss.prod.run_conf.lib.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/lib" /> |
48 | 14ad7326 | pastith | <property name="jboss.prod.lib.dir" value="${jboss.prod.home}/lib" /> |
49 | 14ad7326 | pastith | <property name="jboss.prod.common.lib.dir" value="${jboss.prod.home}/common/lib" /> |
50 | 14ad7326 | pastith | |
51 | 14ad7326 | pastith | <!-- MBeans -->
|
52 | 14ad7326 | pastith | <property name="mbeans.dir" value="${basedir}/mbeans"/> |
53 | 14ad7326 | pastith | <property name="mbeans.meta-inf.dir" value="${mbeans.dir}/META-INF"/> |
54 | 14ad7326 | pastith | |
55 | 14ad7326 | pastith | <!-- JUnit dirs -->
|
56 | 14ad7326 | pastith | <property name="test.dir" value="${basedir}/test" /> |
57 | 14ad7326 | pastith | <property name="test.src.dir" value="${test.dir}/src"/> |
58 | 14ad7326 | pastith | |
59 | 14ad7326 | pastith | <!-- Build dirs -->
|
60 | 14ad7326 | pastith | <property name="build.dir" value="${basedir}/bin" /> |
61 | 14ad7326 | pastith | <property name="build.classes.dir" value="${build.dir}/classes" /> |
62 | 14ad7326 | pastith | <property name="test.build.dir" value="${build.dir}" /> |
63 | 14ad7326 | pastith | <property name="test.build.classes.dir" value="${test.build.dir}/" /> |
64 | 14ad7326 | pastith | <property name="gwt.www.dir" value="${basedir}/www" /> |
65 | 14ad7326 | pastith | <property name="dist.war" value="${ant.project.name}.war"/> |
66 | 14ad7326 | pastith | <property name="webdav.war" value="webdav.war"/> |
67 | 14ad7326 | pastith | <property name="dist.ear" value="${ant.project.name}.ear"/> |
68 | 14ad7326 | pastith | |
69 | 14ad7326 | pastith | <property name="war.dir" value="${basedir}/war" /> |
70 | 14ad7326 | pastith | <property name="war.web-inf.dir" value="${war.dir}/WEB-INF"/> |
71 | 14ad7326 | pastith | <property name="war.lib.dir" value="${war.web-inf.dir}/lib"/> |
72 | 14ad7326 | pastith | <property name="webdav.war.dir" value="${basedir}/webdav" /> |
73 | 14ad7326 | pastith | <property name="webdav.war.web-inf.dir" value="${webdav.war.dir}/WEB-INF"/> |
74 | 14ad7326 | pastith | <property name="webdav.war.lib.dir" value="${webdav.war.web-inf.dir}/lib"/> |
75 | 14ad7326 | pastith | <property name="ear.dir" value="${basedir}/ear" /> |
76 | 14ad7326 | pastith | <property name="ear.lib.dir" value="${ear.dir}/lib" /> |
77 | 14ad7326 | pastith | |
78 | 14ad7326 | pastith | <property name="mbeans.dist.file" value="${ant.project.name}-mbeans.sar"/> |
79 | 14ad7326 | pastith | |
80 | 14ad7326 | pastith | <!-- set classpath -->
|
81 | 14ad7326 | pastith | <path id="project.class.path"> |
82 | 14ad7326 | pastith | <pathelement path="${java.class.path}/" /> |
83 | 14ad7326 | pastith | <pathelement path="${gwt.path}/gwt-user.jar" /> |
84 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/commons-logging.jar"/> |
85 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/ejb3-persistence.jar"/> |
86 | 09f9744e | Giannis Koutsoubos | <pathelement location="${jboss.common.lib.dir}/jboss-ejb3-ext-api.jar"/> |
87 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/jboss-javaee.jar"/> |
88 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/jbosssx.jar"/> |
89 | afd3a0ef | Giannis Koutsoubos | <pathelement location="${jboss.common.lib.dir}/hibernate-core.jar"/> |
90 | 1b2719e1 | Panagiotis Astithas | <pathelement location="${jboss.common.lib.dir}/hibernate-annotations.jar"/> |
91 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-j2se.jar"/> |
92 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-kernel.jar"/> |
93 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-system-jmx.jar"/> |
94 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-system.jar"/> |
95 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jbosssx.jar"/> |
96 | 14ad7326 | pastith | <pathelement location="${ear.lib.dir}/commons-codec-1.3.jar"/> |
97 | e08fd2f3 | pastith | <pathelement location="${ear.lib.dir}/commons-configuration-1.6.jar"/> |
98 | 14ad7326 | pastith | <pathelement location="${war.lib.dir}/commons-fileupload-1.2.jar"/> |
99 | 1b2719e1 | Panagiotis Astithas | <pathelement location="${ear.lib.dir}/commons-httpclient-3.1.jar"/> |
100 | 14ad7326 | pastith | <pathelement location="${ear.lib.dir}/commons-lang.jar"/> |
101 | 14ad7326 | pastith | <pathelement location="${junit.path}/junit.jar"/> |
102 | 09f9744e | Giannis Koutsoubos | <pathelement location="${basedir}/lib/gwt-dnd-3.0.1.jar"/> |
103 | 5c6b4b2c | Panagiotis Astithas | <pathelement location="${basedir}/lib/gwt-gears.jar"/> |
104 | 09f9744e | Giannis Koutsoubos | |
105 | 14ad7326 | pastith | </path>
|
106 | 14ad7326 | pastith | |
107 | 14ad7326 | pastith | <target name="install" description="Installs the configuration files of the application server"> |
108 | 139f2dd5 | Panagiotis Astithas | <!-- Install HornetQ configuration -->
|
109 | 139f2dd5 | Panagiotis Astithas | <copy todir="${jboss.run_conf.lib.dir}"> |
110 | 139f2dd5 | Panagiotis Astithas | <fileset dir="${hornetq.path}/lib"> |
111 | 139f2dd5 | Panagiotis Astithas | <include name="hornetq-*.jar"/> |
112 | 139f2dd5 | Panagiotis Astithas | <include name="netty*.jar"/> |
113 | 139f2dd5 | Panagiotis Astithas | </fileset>
|
114 | 139f2dd5 | Panagiotis Astithas | </copy>
|
115 | 139f2dd5 | Panagiotis Astithas | <property name="hornetq.sar.dir" value="${jboss.deploy.dir}/hornetq.sar"/> |
116 | 139f2dd5 | Panagiotis Astithas | <mkdir dir="${hornetq.sar.dir}"/> |
117 | 139f2dd5 | Panagiotis Astithas | <copy todir="${hornetq.sar.dir}"> |
118 | 139f2dd5 | Panagiotis Astithas | <fileset dir="${hornetq.path}/config/jboss-as/non-clustered" includes="*" excludes="**/jboss-as-4/**"/> |
119 | 139f2dd5 | Panagiotis Astithas | </copy>
|
120 | 139f2dd5 | Panagiotis Astithas | <unzip src="${hornetq.path}/lib/hornetq-ra.rar" dest="${jboss.deploy.dir}/hornetq-ra.rar"/> |
121 | 139f2dd5 | Panagiotis Astithas | <delete dir="${jboss.deploy.dir}/messaging" failonerror="false"/> |
122 | 139f2dd5 | Panagiotis Astithas | <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x86"/> |
123 | 139f2dd5 | Panagiotis Astithas | <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x64"/> |
124 | 139f2dd5 | Panagiotis Astithas | <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x86" file="${hornetq.path}/bin/libHornetQAIO32.so"/> |
125 | 139f2dd5 | Panagiotis Astithas | <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x64" file="${hornetq.path}/bin/libHornetQAIO64.so"/> |
126 | 139f2dd5 | Panagiotis Astithas | <!-- Install gss configuration -->
|
127 | 14ad7326 | pastith | <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false"> |
128 | 14ad7326 | pastith | <fileset dir="${jboss.project}/bin"/> |
129 | 14ad7326 | pastith | </copy>
|
130 | 14ad7326 | pastith | <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false"> |
131 | 14ad7326 | pastith | <fileset dir="${jboss-spec.bin.dir}" /> |
132 | 14ad7326 | pastith | </copy>
|
133 | 14ad7326 | pastith | <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false"> |
134 | 14ad7326 | pastith | <fileset dir="${jboss.project}/conf"/> |
135 | 14ad7326 | pastith | </copy>
|
136 | 14ad7326 | pastith | <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false"> |
137 | 14ad7326 | pastith | <fileset dir="${jboss-spec.conf.dir}"/> |
138 | 14ad7326 | pastith | </copy>
|
139 | 14ad7326 | pastith | <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
140 | 14ad7326 | pastith | <fileset dir="${jboss.project}/lib"/> |
141 | 14ad7326 | pastith | </copy>
|
142 | 14ad7326 | pastith | <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
143 | 14ad7326 | pastith | <fileset dir="${jboss-spec.lib.dir}" /> |
144 | 14ad7326 | pastith | </copy>
|
145 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false"> |
146 | 14ad7326 | pastith | <fileset dir="${jboss.project}/deploy"/> |
147 | 14ad7326 | pastith | </copy>
|
148 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false"> |
149 | 14ad7326 | pastith | <fileset dir="${jboss-spec.deploy.dir}" /> |
150 | 14ad7326 | pastith | </copy>
|
151 | 14ad7326 | pastith | </target>
|
152 | 14ad7326 | pastith | |
153 | 14ad7326 | pastith | <target name="install-production" description="Installs the configuration files for the production deployment of the application server"> |
154 | 4e2ff306 | Panagiotis Astithas | <!-- Install HornetQ configuration -->
|
155 | 4cd5b29f | Panagiotis Astithas | <copy todir="${jboss.prod.run_conf.lib.dir}"> |
156 | 4e2ff306 | Panagiotis Astithas | <fileset dir="${hornetq.path}/lib"> |
157 | 4e2ff306 | Panagiotis Astithas | <include name="hornetq-*.jar"/> |
158 | 4e2ff306 | Panagiotis Astithas | <include name="netty*.jar"/> |
159 | 4e2ff306 | Panagiotis Astithas | </fileset>
|
160 | 4e2ff306 | Panagiotis Astithas | </copy>
|
161 | 4cd5b29f | Panagiotis Astithas | <property name="hornetq.prod.sar.dir" value="${jboss.prod.deploy.dir}/hornetq.sar"/> |
162 | 4cd5b29f | Panagiotis Astithas | <mkdir dir="${hornetq.prod.sar.dir}"/> |
163 | 4cd5b29f | Panagiotis Astithas | <copy todir="${hornetq.prod.sar.dir}"> |
164 | 4e2ff306 | Panagiotis Astithas | <fileset dir="${hornetq.path}/config/jboss-as/non-clustered" includes="*" excludes="**/jboss-as-4/**"/> |
165 | 4e2ff306 | Panagiotis Astithas | </copy>
|
166 | 4cd5b29f | Panagiotis Astithas | <unzip src="${hornetq.path}/lib/hornetq-ra.rar" dest="${jboss.prod.deploy.dir}/hornetq-ra.rar"/> |
167 | 4cd5b29f | Panagiotis Astithas | <delete dir="${jboss.prod.deploy.dir}/messaging" failonerror="false"/> |
168 | 4cd5b29f | Panagiotis Astithas | <mkdir dir="${jboss.prod.bin.dir}/META-INF/lib/linux2/x86"/> |
169 | 4cd5b29f | Panagiotis Astithas | <mkdir dir="${jboss.prod.bin.dir}/META-INF/lib/linux2/x64"/> |
170 | 4cd5b29f | Panagiotis Astithas | <copy todir="${jboss.prod.bin.dir}/META-INF/lib/linux2/x86" file="${hornetq.path}/bin/libHornetQAIO32.so"/> |
171 | 4cd5b29f | Panagiotis Astithas | <copy todir="${jboss.prod.bin.dir}/META-INF/lib/linux2/x64" file="${hornetq.path}/bin/libHornetQAIO64.so"/> |
172 | 4e2ff306 | Panagiotis Astithas | <!-- Install gss configuration -->
|
173 | 14ad7326 | pastith | <copy todir="${jboss.prod.bin.dir}" overwrite="true" failonerror="false"> |
174 | 14ad7326 | pastith | <fileset dir="${jboss.project}/bin"/> |
175 | 14ad7326 | pastith | </copy>
|
176 | 14ad7326 | pastith | <copy todir="${jboss.prod.bin.dir}" overwrite="true" failonerror="false"> |
177 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.bin.dir}" /> |
178 | 14ad7326 | pastith | </copy>
|
179 | 14ad7326 | pastith | <copy todir="${jboss.prod.conf.dir}" overwrite="true" failonerror="false"> |
180 | 14ad7326 | pastith | <fileset dir="${jboss.project}/conf"/> |
181 | 14ad7326 | pastith | </copy>
|
182 | 14ad7326 | pastith | <copy todir="${jboss.prod.conf.dir}" overwrite="true" failonerror="false"> |
183 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.conf.dir}"/> |
184 | 14ad7326 | pastith | </copy>
|
185 | 14ad7326 | pastith | <copy todir="${jboss.prod.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
186 | 14ad7326 | pastith | <fileset dir="${jboss.project}/lib"/> |
187 | 14ad7326 | pastith | </copy>
|
188 | 14ad7326 | pastith | <copy todir="${jboss.prod.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
189 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.lib.dir}" /> |
190 | 14ad7326 | pastith | </copy>
|
191 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" overwrite="true" failonerror="false"> |
192 | 14ad7326 | pastith | <fileset dir="${jboss.project}/deploy"/> |
193 | 14ad7326 | pastith | </copy>
|
194 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" overwrite="true" failonerror="false"> |
195 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.deploy.dir}" /> |
196 | 14ad7326 | pastith | </copy>
|
197 | 14ad7326 | pastith | </target>
|
198 | 14ad7326 | pastith | |
199 | 14ad7326 | pastith | <target name="compile" description="Compile src to bin"> |
200 | 14ad7326 | pastith | <mkdir dir="bin" /> |
201 | 14ad7326 | pastith | <javac srcdir="src:test" destdir="bin" debug="on" debuglevel="lines,vars,source" source="1.6"> |
202 | 14ad7326 | pastith | <classpath refid="project.class.path" /> |
203 | 14ad7326 | pastith | </javac>
|
204 | 14ad7326 | pastith | </target>
|
205 | 14ad7326 | pastith | |
206 | 14ad7326 | pastith | <target name="package-code" depends="compile" description="Package up the project code as a jar"> |
207 | 14ad7326 | pastith | <jar destfile="${build.dir}/${ant.project.name}.jar"> |
208 | 14ad7326 | pastith | <fileset dir="bin"> |
209 | 14ad7326 | pastith | <include name="org/json/**" /> |
210 | 14ad7326 | pastith | <include name="**/server/**" /> |
211 | 14ad7326 | pastith | <exclude name="**/domain/**"/> |
212 | 14ad7326 | pastith | <exclude name="**/ejb/**"/> |
213 | 14ad7326 | pastith | <exclude name="**/soap/**"/> |
214 | 14ad7326 | pastith | </fileset>
|
215 | 14ad7326 | pastith | </jar>
|
216 | 14ad7326 | pastith | </target>
|
217 | 14ad7326 | pastith | |
218 | 14ad7326 | pastith | <target name="package-webdav" depends="compile" description="Package up the webdav code as a jar"> |
219 | 14ad7326 | pastith | <jar destfile="${build.dir}/webdav.jar"> |
220 | 14ad7326 | pastith | <fileset dir="bin"> |
221 | 14ad7326 | pastith | <include name="**/webdav/**" /> |
222 | 14ad7326 | pastith | </fileset>
|
223 | 14ad7326 | pastith | </jar>
|
224 | 14ad7326 | pastith | </target>
|
225 | 14ad7326 | pastith | |
226 | 14ad7326 | pastith | <target name="package-ejb" depends="compile" description="Package up the EJB classes"> |
227 | 14ad7326 | pastith | <jar destfile="${build.dir}/ejbs.jar"> |
228 | 14ad7326 | pastith | <zipfileset dir="${basedir}/persistence" /> |
229 | 14ad7326 | pastith | <zipfileset dir="${build.dir}"> |
230 | 14ad7326 | pastith | <include name="**/configuration/**" /> |
231 | 14ad7326 | pastith | <include name="**/exceptions/**" /> |
232 | 14ad7326 | pastith | <include name="**/domain/**" /> |
233 | 14ad7326 | pastith | <include name="**/ejb/**" /> |
234 | 14ad7326 | pastith | <include name="**/soap/**" /> |
235 | d387cc7c | pastith | <exclude name="**/*Test.class"/> |
236 | 14ad7326 | pastith | </zipfileset>
|
237 | 14ad7326 | pastith | </jar>
|
238 | 14ad7326 | pastith | </target>
|
239 | 14ad7326 | pastith | |
240 | 14ad7326 | pastith | <target name="check-gwt-compile" depends="compile"> |
241 | 14ad7326 | pastith | <uptodate property="compilation-not-needed"> |
242 | 14ad7326 | pastith | <srcfiles dir="${src.dir}" excludes="**/server/**"/> |
243 | c7e8b54d | Dimitris Routsis | <mergemapper to="${build.dir}/www/gr.ebs.gss.GSS.nocache.js"/> |
244 | 14ad7326 | pastith | </uptodate>
|
245 | 14ad7326 | pastith | </target>
|
246 | afd3a0ef | Giannis Koutsoubos | |
247 | 14ad7326 | pastith | <target name="gwt-compile" depends="check-gwt-compile" unless="compilation-not-needed" description="Compile client code to JavaScript"> |
248 | afd3a0ef | Giannis Koutsoubos | <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev.jar"> |
249 | afd3a0ef | Giannis Koutsoubos | <available file="${gwt.path}/gwt-dev.jar" /> |
250 | afd3a0ef | Giannis Koutsoubos | </condition>
|
251 | afd3a0ef | Giannis Koutsoubos | |
252 | afd3a0ef | Giannis Koutsoubos | <java classname="com.google.gwt.dev.Compiler" failonerror="true" fork="true"> |
253 | 6e6e914e | Panagiotis Astithas | <!--arg value="-style"/>
|
254 | 6e6e914e | Panagiotis Astithas | <arg value="DETAILED"/-->
|
255 | afd3a0ef | Giannis Koutsoubos | <arg value="-localWorkers" /> |
256 | afd3a0ef | Giannis Koutsoubos | <arg value="2" /> |
257 | afd3a0ef | Giannis Koutsoubos | <arg value="-war"/> |
258 | afd3a0ef | Giannis Koutsoubos | <arg value="${gwt.www.dir}"/> |
259 | afd3a0ef | Giannis Koutsoubos | <arg value="${gwt.module}"/> |
260 | afd3a0ef | Giannis Koutsoubos | |
261 | afd3a0ef | Giannis Koutsoubos | <classpath>
|
262 | afd3a0ef | Giannis Koutsoubos | <pathelement location="dist/test.jar"/> |
263 | afd3a0ef | Giannis Koutsoubos | <pathelement path="${gwt-dev-lib}"/> |
264 | afd3a0ef | Giannis Koutsoubos | <path refid="project.class.path" /> |
265 | afd3a0ef | Giannis Koutsoubos | <pathelement path="${src.dir}" /> |
266 | afd3a0ef | Giannis Koutsoubos | </classpath>
|
267 | afd3a0ef | Giannis Koutsoubos | </java>
|
268 | afd3a0ef | Giannis Koutsoubos | <mkdir dir="${build.dir}/www"/> |
269 | afd3a0ef | Giannis Koutsoubos | <copy todir="${build.dir}/www"> |
270 | afd3a0ef | Giannis Koutsoubos | <fileset dir="${gwt.www.dir}/${gwt.module}" excludes="**/${gwt.module.class}.html"> |
271 | afd3a0ef | Giannis Koutsoubos | </fileset>
|
272 | afd3a0ef | Giannis Koutsoubos | </copy>
|
273 | afd3a0ef | Giannis Koutsoubos | <copy file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${build.dir}/www/index.html" /> |
274 | afd3a0ef | Giannis Koutsoubos | </target>
|
275 | 14ad7326 | pastith | |
276 | 14ad7326 | pastith | <target name="package-war" depends="gwt-compile, package-code" description="Package up the web part as a war"> |
277 | 14ad7326 | pastith | <jar destfile="${build.dir}/${dist.war}"> |
278 | 09f9744e | Giannis Koutsoubos | <zipfileset dir="${war.dir}" > |
279 | 09f9744e | Giannis Koutsoubos | <exclude name="**/classes/**"/> |
280 | 09f9744e | Giannis Koutsoubos | </zipfileset>
|
281 | 09f9744e | Giannis Koutsoubos | |
282 | 6e6e914e | Panagiotis Astithas | <zipfileset dir="${build.dir}/www" /> |
283 | 14ad7326 | pastith | <zipfileset dir="${build.dir}" prefix="WEB-INF/lib"> |
284 | 14ad7326 | pastith | <include name="${ant.project.name}.jar" /> |
285 | 14ad7326 | pastith | </zipfileset>
|
286 | 14ad7326 | pastith | <zipfileset dir="${gwt.path}" prefix="WEB-INF/lib"> |
287 | 14ad7326 | pastith | <include name="gwt-servlet.jar" /> |
288 | 14ad7326 | pastith | </zipfileset>
|
289 | 14ad7326 | pastith | </jar>
|
290 | 14ad7326 | pastith | </target>
|
291 | 14ad7326 | pastith | |
292 | 14ad7326 | pastith | <target name="package-webdav-war" depends="package-webdav" description="Package up the WebDAV part as a war"> |
293 | 14ad7326 | pastith | <jar destfile="${build.dir}/${webdav.war}"> |
294 | 14ad7326 | pastith | <zipfileset dir="${webdav.war.dir}" /> |
295 | 14ad7326 | pastith | <zipfileset dir="${build.dir}" prefix="WEB-INF/lib"> |
296 | 14ad7326 | pastith | <include name="webdav.jar" /> |
297 | 14ad7326 | pastith | </zipfileset>
|
298 | 14ad7326 | pastith | </jar>
|
299 | 14ad7326 | pastith | </target>
|
300 | 14ad7326 | pastith | |
301 | 14ad7326 | pastith | <target name="package-mbeans" depends="compile"> |
302 | 14ad7326 | pastith | <jar jarfile="${build.dir}/${mbeans.dist.file}" basedir="${build.dir}"> |
303 | 14ad7326 | pastith | <include name="**/mbeans/**"/> |
304 | 14ad7326 | pastith | <metainf dir="${mbeans.meta-inf.dir}"/> |
305 | 14ad7326 | pastith | </jar>
|
306 | 14ad7326 | pastith | </target>
|
307 | 14ad7326 | pastith | |
308 | 14ad7326 | pastith | <target name="package-ear" depends="package-war, package-webdav-war, package-ejb, package-mbeans" description="Package up the project as an ear"> |
309 | 14ad7326 | pastith | <jar destfile="${build.dir}/${dist.ear}"> |
310 | 14ad7326 | pastith | <zipfileset dir="${ear.dir}" /> |
311 | 14ad7326 | pastith | <zipfileset dir="${build.dir}"> |
312 | 14ad7326 | pastith | <include name="ejbs.jar" /> |
313 | 14ad7326 | pastith | <include name="${dist.war}" /> |
314 | 14ad7326 | pastith | <include name="${webdav.war}" /> |
315 | 14ad7326 | pastith | <include name="${mbeans.dist.file}"/> |
316 | 14ad7326 | pastith | </zipfileset>
|
317 | 14ad7326 | pastith | </jar>
|
318 | 14ad7326 | pastith | </target>
|
319 | 14ad7326 | pastith | |
320 | 14ad7326 | pastith | <target name="deploy" depends="package-ear" description="Deploy the project to the server"> |
321 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}"/> |
322 | 14ad7326 | pastith | </target>
|
323 | 14ad7326 | pastith | |
324 | 14ad7326 | pastith | <target name="deploy-production" depends="package-ear" description="Deploy the project to the production server"> |
325 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" file="${build.dir}/${dist.ear}"/> |
326 | 14ad7326 | pastith | </target>
|
327 | 14ad7326 | pastith | |
328 | 14ad7326 | pastith | <target name="redeploy" depends="package-ear" description="Redeploy the project to the server"> |
329 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}" overwrite="yes"/> |
330 | 14ad7326 | pastith | </target>
|
331 | 14ad7326 | pastith | |
332 | 14ad7326 | pastith | <target name="undeploy" description="Undeploy the project from the server"> |
333 | 14ad7326 | pastith | <delete file="${jboss.deploy.dir}/${dist.ear}"/> |
334 | 14ad7326 | pastith | </target>
|
335 | 14ad7326 | pastith | |
336 | 14ad7326 | pastith | <target name="clean" description="Delete the contents of the bin and www directories"> |
337 | 14ad7326 | pastith | <delete dir="${build.dir}" /> |
338 | 14ad7326 | pastith | <delete dir="${gwt.www.dir}" /> |
339 | 14ad7326 | pastith | </target>
|
340 | 14ad7326 | pastith | |
341 | 14ad7326 | pastith | <target name="test" description="Performs unit tests on the project" depends="compile"> |
342 | 14ad7326 | pastith | <available
|
343 | 14ad7326 | pastith | property="junit.present" |
344 | 14ad7326 | pastith | classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" |
345 | 14ad7326 | pastith | classpathref="project.class.path"/> |
346 | 14ad7326 | pastith | <fail unless="junit.present"> |
347 | 14ad7326 | pastith | ################################################################## |
348 | 14ad7326 | pastith | JUnit not found. |
349 | 14ad7326 | pastith | Please make sure junit.jar is in ANT_HOME/lib, or made available |
350 | 14ad7326 | pastith | to Ant using other mechanisms like -lib or CLASSPATH. |
351 | 14ad7326 | pastith | ################################################################## |
352 | 14ad7326 | pastith | </fail>
|
353 | 14ad7326 | pastith | |
354 | 14ad7326 | pastith | <junit printsummary="withOutAndErr" fork="yes" haltonfailure="yes"> |
355 | 14ad7326 | pastith | <classpath refid="project.class.path"/> |
356 | 14ad7326 | pastith | <formatter type="plain"/> |
357 | 14ad7326 | pastith | <batchtest todir="${test.build.dir}"> |
358 | 14ad7326 | pastith | <fileset dir="${test.build.classes.dir}"> |
359 | d387cc7c | pastith | <include name="**/*Test.class"/> |
360 | 14ad7326 | pastith | </fileset>
|
361 | 14ad7326 | pastith | </batchtest>
|
362 | 14ad7326 | pastith | |
363 | 14ad7326 | pastith | </junit>
|
364 | 14ad7326 | pastith | </target>
|
365 | 14ad7326 | pastith | |
366 | 14ad7326 | pastith | </project> |