-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy patheclipse_export.xml
More file actions
33 lines (29 loc) · 1.15 KB
/
Copy patheclipse_export.xml
File metadata and controls
33 lines (29 loc) · 1.15 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
<!--
To use this build script in Eclipse, first set the environment variable TOMCAT_HOME to your tomcat path.
Then go to the Project Properties for WeaveServices, then Builders and add this as a builder.
Make sure you set the Target for "After AutoBuild" to be the "dist" target.
Whenever you build WeaveServices, this will automatically export the WAR file.
-->
<project name="WeaveServices" default="dist">
<property environment="env"/>
<property name="TOMCAT_HOME" value="${env.TOMCAT_HOME}"/>
<target name="clean">
<delete dir="bin/lib"/>
</target>
<target name="dist" depends="clean">
<echo message="Deploying WeaveServices..."/>
<copy todir="bin/lib">
<fileset dir="lib"/>
<fileset dir="../WeaveServletUtils/lib"/>
</copy>
<copy todir="bin/classes">
<fileset dir="../WeaveServletUtils/bin/classes"/>
</copy>
<war destfile="${TOMCAT_HOME}/webapps/WeaveServices.war" webxml="WebContent/WEB-INF/web.xml" duplicate="preserve">
<lib dir="bin/lib"/>
<classes dir="bin/classes"/>
<webinf dir="WebContent/WEB-INF"/>
<metainf dir="WebContent/META-INF"/>
</war>
</target>
</project>