1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-09-30 15:59:05 +00:00

Ant build file updated to take into account the new structure

This commit is contained in:
Maxime Sinclair 2011-02-17 12:48:01 +01:00
parent 6052b6809c
commit bed2250f38

View File

@ -6,35 +6,36 @@
<target name="init"> <target name="init">
<!-- overwrite with your own values in a user.property file --> <!-- overwrite with your own values in a user.property file -->
<property file="user.property" /> <property file="user.property" />
<property name="tomcat-home" value="/tomcat" /> <property name="target" value="." description="Target directory of the build"/>
<property name="tomcat-home" value="/tomcat" description="Home directory of Tomcat"/>
<property name="debug" value="false" /> <property name="debug" value="false" />
<path id="project-classpath"> <path id="project-classpath">
<fileset dir="WEB-INF/lib" includes="*.jar" /> <fileset dir="content/WEB-INF/lib" includes="*.jar" />
<fileset dir="${tomcat-home}/lib" includes="*.jar" /> <fileset dir="${tomcat-home}/lib" includes="*.jar" />
</path> </path>
</target> </target>
<target name="clean"> <target name="clean" depends="init">
<delete file="plantuml.war" /> <delete file="${target}/plantuml.war" />
<delete dir="WEB-INF/classes" /> <mkdir dir="${target}" />
<mkdir dir="WEB-INF/classes" /> <delete dir="content/WEB-INF/classes" />
<mkdir dir="content/WEB-INF/classes" />
</target> </target>
<target name="compile" depends="init"> <target name="compile" depends="init">
<javac srcdir="WEB-INF/src" destdir="WEB-INF/classes" debug="${debug}" classpathref="project-classpath" /> <javac srcdir="src" destdir="content/WEB-INF/classes" debug="${debug}" classpathref="project-classpath" />
</target> </target>
<target name="war"> <target name="war">
<war destfile="plantuml.war" <war destfile="${target}/plantuml.war" webxml="content/WEB-INF/web.xml">
webxml="WEB-INF/web.xml"> <classes dir="content/WEB-INF/classes" />
<classes dir="WEB-INF/classes" /> <fileset dir="content" excludes="WEB-INF/**"/>
<fileset dir="content" /> <lib dir="content/WEB-INF/lib" />
<lib dir="WEB-INF/lib" />
</war> </war>
</target> </target>
<target name="deploy" depends="main"> <target name="deploy" depends="main">
<copy file="plantuml.war" todir="${tomcat-home}/webapps" overwrite="true" /> <copy file="${target}/plantuml.war" todir="${tomcat-home}/webapps" overwrite="true" />
</target> </target>
</project> </project>