-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (40 loc) · 2.02 KB
/
build.xml
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
<project name="webdsl-eclipse-plugin" default="plugin-eclipse-build">
<fail unless="plugindir" message="WebDSL plugin is not correctly installed. The 'plugindir' property is not available." />
<property name="templatedir" value="${plugindir}/webdsl-template"/>
<property name="currentdir" value="${basedir}"/>
<property name="webdsl-java-cp" value="${plugindir}/include/webdsl.jar"/>
<property name="webdslexec" value="java"/>
<!-- command-line build only uses .servletapp, plugin build also uses WebContent to deploy with WTP -->
<property name="generate-dir" value=".servletapp"/>
<property name="webcontentdir" value="${currentdir}/${generate-dir}"/>
<import file="${plugindir}/webdsl-template/webdsl-build-eclipse-plugin-entry.xml"/>
<target name="plugin-eclipse-build">
<antcall target="eclipse-build"/>
</target>
<target name="plugin-war" depends="load-config">
<property name="buildoptions" value="build-war" />
<antcall target="eclipse-build"/><!-- assumes project builder for wtp deployment is disabled in .project file -->
<ant dir="${currentdir}/${generate-dir}" antfile="${currentdir}/${generate-dir}/build.xml" target="war"/>
<if><equals arg1="${rootapp}" arg2="true"/><then><copy overwrite="true" file="${generate-dir}/ROOT.war" todir="${tomcatpath}/webapps/"/></then><else><copy overwrite="true" file="${generate-dir}/testServicesProject.war" todir="${tomcatpath}/webapps/"/></else></if>
</target>
<target name="plugin-build">
<property name="buildoptions" value="build" />
<antcall target="command"/>
</target>
<target name="plugin-run">
<property name="buildoptions" value="run" />
<antcall target="command"/>
</target>
<target name="plugin-deploy">
<property name="buildoptions" value="deploy" />
<antcall target="command"/>
</target>
<target name="plugin-tomcatdeploy">
<property name="buildoptions" value="tomcatdeploy" />
<antcall target="command"/>
</target>
<target name="plugin-cleanall">
<property name="buildoptions" value="cleanall" />
<antcall target="command"/>
</target>
</project>