consolechat-server/build.xml

28 lines
847 B
XML
Raw Normal View History

2014-11-18 03:02:39 +00:00
<project name="ConsoleChat-Server" basedir="." default="main" >
2014-09-21 00:18:49 +00:00
<property name="src.dir" value="src" />
<property name="bin.dir" value="bin" />
<property name="classes.dir" value="${bin.dir}/classes" />
<property name="jar.dir" value="${bin.dir}/jar" />
2014-11-18 03:02:39 +00:00
<property name="main-class" value="consolechat.server.Server" />
2014-09-21 00:18:49 +00:00
<target name="clean" >
<delete dir="bin" />
</target>
<target name="compile" >
<mkdir dir="${classes.dir}" />
2014-10-10 16:54:52 +00:00
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
2014-09-21 00:18:49 +00:00
</target>
<target name="jar" depends="compile" >
<mkdir dir="${jar.dir}" />
2014-11-18 03:02:39 +00:00
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}" >
2014-09-21 00:18:49 +00:00
<manifest>
2014-11-18 03:02:39 +00:00
<attribute name="Main-Class" value="${main-class}" />
2014-09-21 00:18:49 +00:00
</manifest>
</jar>
</target>
2014-10-09 00:46:24 +00:00
<target name="main" depends="jar" />
2014-09-21 00:18:49 +00:00
</project>