root / gss / build.xml @ 11af52e2
History | View | Annotate | Download (13.5 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 | 14ad7326 | pastith | <property name="src.dir" value="${basedir}/src"/> |
34 | 14ad7326 | pastith | |
35 | 14ad7326 | pastith | <property name="jboss.project" value="${basedir}/jboss-config/${jboss.version}" /> |
36 | 14ad7326 | pastith | <property name="jboss.bin.dir" value="${jboss.home}/bin" /> |
37 | 14ad7326 | pastith | <property name="jboss.conf.dir" value="${jboss.home}/server/${jboss_run_configuration}/conf" /> |
38 | 14ad7326 | pastith | <property name="jboss.deploy.dir" value="${jboss.home}/server/${jboss_run_configuration}/deploy" /> |
39 | 14ad7326 | pastith | <property name="jboss.run_conf.lib.dir" value="${jboss.home}/server/${jboss_run_configuration}/lib" /> |
40 | 14ad7326 | pastith | <property name="jboss.lib.dir" value="${jboss.home}/lib" /> |
41 | 14ad7326 | pastith | <property name="jboss.common.lib.dir" value="${jboss.home}/common/lib" /> |
42 | 14ad7326 | pastith | |
43 | 14ad7326 | pastith | <property name="jboss.prod.bin.dir" value="${jboss.prod.home}/bin" /> |
44 | 14ad7326 | pastith | <property name="jboss.prod.conf.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/conf" /> |
45 | 14ad7326 | pastith | <property name="jboss.prod.deploy.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/deploy" /> |
46 | 14ad7326 | pastith | <property name="jboss.prod.run_conf.lib.dir" value="${jboss.prod.home}/server/${jboss_run_configuration}/lib" /> |
47 | 14ad7326 | pastith | <property name="jboss.prod.lib.dir" value="${jboss.prod.home}/lib" /> |
48 | 14ad7326 | pastith | <property name="jboss.prod.common.lib.dir" value="${jboss.prod.home}/common/lib" /> |
49 | 14ad7326 | pastith | |
50 | 14ad7326 | pastith | <!-- MBeans -->
|
51 | 14ad7326 | pastith | <property name="mbeans.dir" value="${basedir}/mbeans"/> |
52 | 14ad7326 | pastith | <property name="mbeans.meta-inf.dir" value="${mbeans.dir}/META-INF"/> |
53 | 14ad7326 | pastith | |
54 | 14ad7326 | pastith | <!-- JUnit dirs -->
|
55 | 14ad7326 | pastith | <property name="test.dir" value="${basedir}/test" /> |
56 | 14ad7326 | pastith | <property name="test.src.dir" value="${test.dir}/src"/> |
57 | 14ad7326 | pastith | |
58 | 14ad7326 | pastith | <!-- Build dirs -->
|
59 | 14ad7326 | pastith | <property name="build.dir" value="${basedir}/bin" /> |
60 | 14ad7326 | pastith | <property name="build.classes.dir" value="${build.dir}/classes" /> |
61 | 14ad7326 | pastith | <property name="test.build.dir" value="${build.dir}" /> |
62 | 14ad7326 | pastith | <property name="test.build.classes.dir" value="${test.build.dir}/" /> |
63 | 14ad7326 | pastith | <property name="gwt.www.dir" value="${basedir}/www" /> |
64 | 14ad7326 | pastith | <property name="dist.war" value="${ant.project.name}.war"/> |
65 | 14ad7326 | pastith | <property name="webdav.war" value="webdav.war"/> |
66 | 14ad7326 | pastith | <property name="dist.ear" value="${ant.project.name}.ear"/> |
67 | 14ad7326 | pastith | |
68 | 14ad7326 | pastith | <property name="war.dir" value="${basedir}/war" /> |
69 | 14ad7326 | pastith | <property name="war.web-inf.dir" value="${war.dir}/WEB-INF"/> |
70 | 14ad7326 | pastith | <property name="war.lib.dir" value="${war.web-inf.dir}/lib"/> |
71 | 14ad7326 | pastith | <property name="webdav.war.dir" value="${basedir}/webdav" /> |
72 | 14ad7326 | pastith | <property name="webdav.war.web-inf.dir" value="${webdav.war.dir}/WEB-INF"/> |
73 | 14ad7326 | pastith | <property name="webdav.war.lib.dir" value="${webdav.war.web-inf.dir}/lib"/> |
74 | 14ad7326 | pastith | <property name="ear.dir" value="${basedir}/ear" /> |
75 | 14ad7326 | pastith | <property name="ear.lib.dir" value="${ear.dir}/lib" /> |
76 | 14ad7326 | pastith | |
77 | 14ad7326 | pastith | <property name="mbeans.dist.file" value="${ant.project.name}-mbeans.sar"/> |
78 | 14ad7326 | pastith | |
79 | 14ad7326 | pastith | <!-- set classpath -->
|
80 | 14ad7326 | pastith | <path id="project.class.path"> |
81 | 14ad7326 | pastith | <pathelement path="${java.class.path}/" /> |
82 | 14ad7326 | pastith | <pathelement path="${gwt.path}/gwt-user.jar" /> |
83 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/commons-logging.jar"/> |
84 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/commons-httpclient.jar"/> |
85 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/ejb3-persistence.jar"/> |
86 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/jboss-javaee.jar"/> |
87 | 14ad7326 | pastith | <pathelement location="${jboss.common.lib.dir}/jbosssx.jar"/> |
88 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-j2se.jar"/> |
89 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-kernel.jar"/> |
90 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-system-jmx.jar"/> |
91 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jboss-system.jar"/> |
92 | 14ad7326 | pastith | <pathelement location="${jboss.lib.dir}/jbosssx.jar"/> |
93 | 14ad7326 | pastith | <pathelement location="${ear.lib.dir}/commons-codec-1.3.jar"/> |
94 | e08fd2f3 | pastith | <pathelement location="${ear.lib.dir}/commons-configuration-1.6.jar"/> |
95 | 14ad7326 | pastith | <pathelement location="${war.lib.dir}/commons-fileupload-1.2.jar"/> |
96 | 14ad7326 | pastith | <pathelement location="${ear.lib.dir}/commons-lang.jar"/> |
97 | 14ad7326 | pastith | <pathelement location="${junit.path}/junit.jar"/> |
98 | 14ad7326 | pastith | <pathelement location="${basedir}/lib/gwt-dnd-2.5.6.jar"/> |
99 | 14ad7326 | pastith | </path>
|
100 | 14ad7326 | pastith | |
101 | 14ad7326 | pastith | <target name="install" description="Installs the configuration files of the application server"> |
102 | 14ad7326 | pastith | <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false"> |
103 | 14ad7326 | pastith | <fileset dir="${jboss.project}/bin"/> |
104 | 14ad7326 | pastith | </copy>
|
105 | 14ad7326 | pastith | <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false"> |
106 | 14ad7326 | pastith | <fileset dir="${jboss-spec.bin.dir}" /> |
107 | 14ad7326 | pastith | </copy>
|
108 | 14ad7326 | pastith | <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false"> |
109 | 14ad7326 | pastith | <fileset dir="${jboss.project}/conf"/> |
110 | 14ad7326 | pastith | </copy>
|
111 | 14ad7326 | pastith | <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false"> |
112 | 14ad7326 | pastith | <fileset dir="${jboss-spec.conf.dir}"/> |
113 | 14ad7326 | pastith | </copy>
|
114 | 14ad7326 | pastith | <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
115 | 14ad7326 | pastith | <fileset dir="${jboss.project}/lib"/> |
116 | 14ad7326 | pastith | </copy>
|
117 | 14ad7326 | pastith | <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
118 | 14ad7326 | pastith | <fileset dir="${jboss-spec.lib.dir}" /> |
119 | 14ad7326 | pastith | </copy>
|
120 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false"> |
121 | 14ad7326 | pastith | <fileset dir="${jboss.project}/deploy"/> |
122 | 14ad7326 | pastith | </copy>
|
123 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false"> |
124 | 14ad7326 | pastith | <fileset dir="${jboss-spec.deploy.dir}" /> |
125 | 14ad7326 | pastith | </copy>
|
126 | 14ad7326 | pastith | </target>
|
127 | 14ad7326 | pastith | |
128 | 14ad7326 | pastith | <target name="install-production" description="Installs the configuration files for the production deployment of the application server"> |
129 | 14ad7326 | pastith | <copy todir="${jboss.prod.bin.dir}" overwrite="true" failonerror="false"> |
130 | 14ad7326 | pastith | <fileset dir="${jboss.project}/bin"/> |
131 | 14ad7326 | pastith | </copy>
|
132 | 14ad7326 | pastith | <copy todir="${jboss.prod.bin.dir}" overwrite="true" failonerror="false"> |
133 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.bin.dir}" /> |
134 | 14ad7326 | pastith | </copy>
|
135 | 14ad7326 | pastith | <copy todir="${jboss.prod.conf.dir}" overwrite="true" failonerror="false"> |
136 | 14ad7326 | pastith | <fileset dir="${jboss.project}/conf"/> |
137 | 14ad7326 | pastith | </copy>
|
138 | 14ad7326 | pastith | <copy todir="${jboss.prod.conf.dir}" overwrite="true" failonerror="false"> |
139 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.conf.dir}"/> |
140 | 14ad7326 | pastith | </copy>
|
141 | 14ad7326 | pastith | <copy todir="${jboss.prod.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
142 | 14ad7326 | pastith | <fileset dir="${jboss.project}/lib"/> |
143 | 14ad7326 | pastith | </copy>
|
144 | 14ad7326 | pastith | <copy todir="${jboss.prod.run_conf.lib.dir}" overwrite="true" failonerror="false"> |
145 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.lib.dir}" /> |
146 | 14ad7326 | pastith | </copy>
|
147 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" overwrite="true" failonerror="false"> |
148 | 14ad7326 | pastith | <fileset dir="${jboss.project}/deploy"/> |
149 | 14ad7326 | pastith | </copy>
|
150 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" overwrite="true" failonerror="false"> |
151 | 14ad7326 | pastith | <fileset dir="${jboss-spec.prod.deploy.dir}" /> |
152 | 14ad7326 | pastith | </copy>
|
153 | 14ad7326 | pastith | </target>
|
154 | 14ad7326 | pastith | |
155 | 14ad7326 | pastith | <target name="compile" description="Compile src to bin"> |
156 | 14ad7326 | pastith | <mkdir dir="bin" /> |
157 | 14ad7326 | pastith | <javac srcdir="src:test" destdir="bin" debug="on" debuglevel="lines,vars,source" source="1.6"> |
158 | 14ad7326 | pastith | <classpath refid="project.class.path" /> |
159 | 14ad7326 | pastith | </javac>
|
160 | 14ad7326 | pastith | </target>
|
161 | 14ad7326 | pastith | |
162 | 14ad7326 | pastith | <target name="package-code" depends="compile" description="Package up the project code as a jar"> |
163 | 14ad7326 | pastith | <jar destfile="${build.dir}/${ant.project.name}.jar"> |
164 | 14ad7326 | pastith | <fileset dir="bin"> |
165 | 14ad7326 | pastith | <include name="org/json/**" /> |
166 | 14ad7326 | pastith | <include name="**/server/**" /> |
167 | 14ad7326 | pastith | <exclude name="**/domain/**"/> |
168 | 14ad7326 | pastith | <exclude name="**/ejb/**"/> |
169 | 14ad7326 | pastith | <exclude name="**/soap/**"/> |
170 | 14ad7326 | pastith | </fileset>
|
171 | 14ad7326 | pastith | </jar>
|
172 | 14ad7326 | pastith | </target>
|
173 | 14ad7326 | pastith | |
174 | 14ad7326 | pastith | <target name="package-webdav" depends="compile" description="Package up the webdav code as a jar"> |
175 | 14ad7326 | pastith | <jar destfile="${build.dir}/webdav.jar"> |
176 | 14ad7326 | pastith | <fileset dir="bin"> |
177 | 14ad7326 | pastith | <include name="**/webdav/**" /> |
178 | 14ad7326 | pastith | </fileset>
|
179 | 14ad7326 | pastith | </jar>
|
180 | 14ad7326 | pastith | </target>
|
181 | 14ad7326 | pastith | |
182 | 14ad7326 | pastith | <target name="package-ejb" depends="compile" description="Package up the EJB classes"> |
183 | 14ad7326 | pastith | <jar destfile="${build.dir}/ejbs.jar"> |
184 | 14ad7326 | pastith | <zipfileset dir="${basedir}/persistence" /> |
185 | 14ad7326 | pastith | <zipfileset dir="${build.dir}"> |
186 | 14ad7326 | pastith | <include name="**/configuration/**" /> |
187 | 14ad7326 | pastith | <include name="**/exceptions/**" /> |
188 | 14ad7326 | pastith | <include name="**/domain/**" /> |
189 | 14ad7326 | pastith | <include name="**/ejb/**" /> |
190 | 14ad7326 | pastith | <include name="**/soap/**" /> |
191 | d387cc7c | pastith | <exclude name="**/*Test.class"/> |
192 | 14ad7326 | pastith | </zipfileset>
|
193 | 14ad7326 | pastith | </jar>
|
194 | 14ad7326 | pastith | </target>
|
195 | 14ad7326 | pastith | |
196 | 14ad7326 | pastith | <target name="check-gwt-compile" depends="compile"> |
197 | 14ad7326 | pastith | <uptodate property="compilation-not-needed"> |
198 | 14ad7326 | pastith | <srcfiles dir="${src.dir}" excludes="**/server/**"/> |
199 | 14ad7326 | pastith | <mergemapper to="${build.dir}/www/clear.cache.gif"/> |
200 | 14ad7326 | pastith | </uptodate>
|
201 | 14ad7326 | pastith | </target>
|
202 | 14ad7326 | pastith | |
203 | 14ad7326 | pastith | <target name="gwt-compile" depends="check-gwt-compile" unless="compilation-not-needed" description="Compile client code to JavaScript"> |
204 | 14ad7326 | pastith | <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-linux.jar"> |
205 | 14ad7326 | pastith | <available file="${gwt.path}/gwt-dev-linux.jar"/> |
206 | 14ad7326 | pastith | </condition>
|
207 | 14ad7326 | pastith | <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-mac.jar"> |
208 | 14ad7326 | pastith | <available file="${gwt.path}/gwt-dev-mac.jar" /> |
209 | 14ad7326 | pastith | </condition>
|
210 | 14ad7326 | pastith | <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-windows.jar"> |
211 | 14ad7326 | pastith | <available file="${gwt.path}/gwt-dev-windows.jar" /> |
212 | 14ad7326 | pastith | </condition>
|
213 | 14ad7326 | pastith | <java classname="com.google.gwt.dev.GWTCompiler" failonerror="true" fork="true"> |
214 | 14ad7326 | pastith | <arg value="-out"/> |
215 | 14ad7326 | pastith | <arg value="${gwt.www.dir}"/> |
216 | 14ad7326 | pastith | <arg value="${gwt.module}"/> |
217 | 14ad7326 | pastith | <jvmarg value="-Xmx196m"/> |
218 | 14ad7326 | pastith | <classpath>
|
219 | 14ad7326 | pastith | <pathelement location="dist/test.jar"/> |
220 | 14ad7326 | pastith | <pathelement path="${gwt-dev-lib}"/> |
221 | 14ad7326 | pastith | <path refid="project.class.path" /> |
222 | 14ad7326 | pastith | <pathelement path="${src.dir}" /> |
223 | 14ad7326 | pastith | </classpath>
|
224 | 14ad7326 | pastith | </java>
|
225 | 14ad7326 | pastith | <mkdir dir="${build.dir}/www"/> |
226 | 14ad7326 | pastith | <copy todir="${build.dir}/www"> |
227 | 14ad7326 | pastith | <fileset dir="${gwt.www.dir}/${gwt.module}" excludes="**/${gwt.module.class}.html"> |
228 | 14ad7326 | pastith | </fileset>
|
229 | 14ad7326 | pastith | </copy>
|
230 | 14ad7326 | pastith | <copy file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${build.dir}/www/index.html" /> |
231 | 14ad7326 | pastith | </target>
|
232 | 14ad7326 | pastith | |
233 | 14ad7326 | pastith | <target name="package-war" depends="gwt-compile, package-code" description="Package up the web part as a war"> |
234 | 14ad7326 | pastith | <jar destfile="${build.dir}/${dist.war}"> |
235 | 14ad7326 | pastith | <zipfileset dir="${war.dir}" /> |
236 | 14ad7326 | pastith | <zipfileset dir="${build.dir}/www" /> |
237 | 14ad7326 | pastith | <zipfileset dir="${build.dir}" prefix="WEB-INF/lib"> |
238 | 14ad7326 | pastith | <include name="${ant.project.name}.jar" /> |
239 | 14ad7326 | pastith | </zipfileset>
|
240 | 14ad7326 | pastith | <zipfileset dir="${gwt.path}" prefix="WEB-INF/lib"> |
241 | 14ad7326 | pastith | <include name="gwt-servlet.jar" /> |
242 | 14ad7326 | pastith | </zipfileset>
|
243 | 14ad7326 | pastith | </jar>
|
244 | 14ad7326 | pastith | </target>
|
245 | 14ad7326 | pastith | |
246 | 14ad7326 | pastith | <target name="package-webdav-war" depends="package-webdav" description="Package up the WebDAV part as a war"> |
247 | 14ad7326 | pastith | <jar destfile="${build.dir}/${webdav.war}"> |
248 | 14ad7326 | pastith | <zipfileset dir="${webdav.war.dir}" /> |
249 | 14ad7326 | pastith | <zipfileset dir="${build.dir}" prefix="WEB-INF/lib"> |
250 | 14ad7326 | pastith | <include name="webdav.jar" /> |
251 | 14ad7326 | pastith | </zipfileset>
|
252 | 14ad7326 | pastith | </jar>
|
253 | 14ad7326 | pastith | </target>
|
254 | 14ad7326 | pastith | |
255 | 14ad7326 | pastith | <target name="package-mbeans" depends="compile"> |
256 | 14ad7326 | pastith | <jar jarfile="${build.dir}/${mbeans.dist.file}" basedir="${build.dir}"> |
257 | 14ad7326 | pastith | <include name="**/mbeans/**"/> |
258 | 14ad7326 | pastith | <metainf dir="${mbeans.meta-inf.dir}"/> |
259 | 14ad7326 | pastith | </jar>
|
260 | 14ad7326 | pastith | </target>
|
261 | 14ad7326 | pastith | |
262 | 14ad7326 | pastith | <target name="package-ear" depends="package-war, package-webdav-war, package-ejb, package-mbeans" description="Package up the project as an ear"> |
263 | 14ad7326 | pastith | <jar destfile="${build.dir}/${dist.ear}"> |
264 | 14ad7326 | pastith | <zipfileset dir="${ear.dir}" /> |
265 | 14ad7326 | pastith | <zipfileset dir="${build.dir}"> |
266 | 14ad7326 | pastith | <include name="ejbs.jar" /> |
267 | 14ad7326 | pastith | <include name="${dist.war}" /> |
268 | 14ad7326 | pastith | <include name="${webdav.war}" /> |
269 | 14ad7326 | pastith | <include name="${mbeans.dist.file}"/> |
270 | 14ad7326 | pastith | </zipfileset>
|
271 | 14ad7326 | pastith | </jar>
|
272 | 14ad7326 | pastith | </target>
|
273 | 14ad7326 | pastith | |
274 | 14ad7326 | pastith | <target name="deploy" depends="package-ear" description="Deploy the project to the server"> |
275 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}"/> |
276 | 14ad7326 | pastith | </target>
|
277 | 14ad7326 | pastith | |
278 | 14ad7326 | pastith | <target name="deploy-production" depends="package-ear" description="Deploy the project to the production server"> |
279 | 14ad7326 | pastith | <copy todir="${jboss.prod.deploy.dir}" file="${build.dir}/${dist.ear}"/> |
280 | 14ad7326 | pastith | </target>
|
281 | 14ad7326 | pastith | |
282 | 14ad7326 | pastith | <target name="redeploy" depends="package-ear" description="Redeploy the project to the server"> |
283 | 14ad7326 | pastith | <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}" overwrite="yes"/> |
284 | 14ad7326 | pastith | </target>
|
285 | 14ad7326 | pastith | |
286 | 14ad7326 | pastith | <target name="undeploy" description="Undeploy the project from the server"> |
287 | 14ad7326 | pastith | <delete file="${jboss.deploy.dir}/${dist.ear}"/> |
288 | 14ad7326 | pastith | </target>
|
289 | 14ad7326 | pastith | |
290 | 14ad7326 | pastith | <target name="clean" description="Delete the contents of the bin and www directories"> |
291 | 14ad7326 | pastith | <delete dir="${build.dir}" /> |
292 | 14ad7326 | pastith | <delete dir="${gwt.www.dir}" /> |
293 | 14ad7326 | pastith | </target>
|
294 | 14ad7326 | pastith | |
295 | 14ad7326 | pastith | <target name="test" description="Performs unit tests on the project" depends="compile"> |
296 | 14ad7326 | pastith | <available
|
297 | 14ad7326 | pastith | property="junit.present" |
298 | 14ad7326 | pastith | classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" |
299 | 14ad7326 | pastith | classpathref="project.class.path"/> |
300 | 14ad7326 | pastith | <fail unless="junit.present"> |
301 | 14ad7326 | pastith | ################################################################## |
302 | 14ad7326 | pastith | JUnit not found. |
303 | 14ad7326 | pastith | Please make sure junit.jar is in ANT_HOME/lib, or made available |
304 | 14ad7326 | pastith | to Ant using other mechanisms like -lib or CLASSPATH. |
305 | 14ad7326 | pastith | ################################################################## |
306 | 14ad7326 | pastith | </fail>
|
307 | 14ad7326 | pastith | |
308 | 14ad7326 | pastith | <junit printsummary="withOutAndErr" fork="yes" haltonfailure="yes"> |
309 | 14ad7326 | pastith | <classpath refid="project.class.path"/> |
310 | 14ad7326 | pastith | <formatter type="plain"/> |
311 | 14ad7326 | pastith | <batchtest todir="${test.build.dir}"> |
312 | 14ad7326 | pastith | <fileset dir="${test.build.classes.dir}"> |
313 | d387cc7c | pastith | <include name="**/*Test.class"/> |
314 | 14ad7326 | pastith | </fileset>
|
315 | 14ad7326 | pastith | </batchtest>
|
316 | 14ad7326 | pastith | |
317 | 14ad7326 | pastith | </junit>
|
318 | 14ad7326 | pastith | </target>
|
319 | 14ad7326 | pastith | |
320 | 14ad7326 | pastith | </project> |