1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-11-18 18:25:11 +00:00
plantuml-server/build.xml

42 lines
1.5 KiB
XML
Raw Normal View History

2011-01-30 17:55:02 +00:00
<project default="main" basedir=".">
<target name="main" depends="clean,compile,war">
</target>
<target name="init">
<!-- overwrite with your own values in a user.property file -->
<property file="user.property" />
<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" />
<path id="project-classpath">
<fileset dir="content/WEB-INF/lib" includes="*.jar" />
<fileset dir="${tomcat-home}/lib" includes="*.jar" />
</path>
</target>
<target name="clean" depends="init">
<delete file="${target}/plantuml.war" />
<mkdir dir="${target}" />
<delete dir="content/WEB-INF/classes" />
<mkdir dir="content/WEB-INF/classes" />
2011-01-30 17:55:02 +00:00
</target>
<target name="compile" depends="init">
<javac srcdir="src" destdir="content/WEB-INF/classes" debug="${debug}" classpathref="project-classpath" />
2011-01-30 17:55:02 +00:00
</target>
<target name="war">
<war destfile="${target}/plantuml.war" webxml="content/WEB-INF/web.xml">
<classes dir="content/WEB-INF/classes" />
<fileset dir="content" excludes="WEB-INF/**"/>
<lib dir="content/WEB-INF/lib" />
2011-01-30 17:55:02 +00:00
</war>
</target>
<target name="deploy" depends="main">
<copy file="${target}/plantuml.war" todir="${tomcat-home}/webapps" overwrite="true" />
</target>
2011-01-30 17:55:02 +00:00
</project>