removing some unused stuff
This commit is contained in:
parent
a414f42e58
commit
4d5af79eaa
1 changed files with 0 additions and 135 deletions
135
build.xml
135
build.xml
|
|
@ -1,135 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project name="CoderClient" default="buildRelease" >
|
|
||||||
|
|
||||||
<!-- ________________________ PROPERTIES AND SETTINGS ________________________ -->
|
|
||||||
|
|
||||||
<property name="version" value="0.1b" />
|
|
||||||
<property name="title" value="CoderClient" />
|
|
||||||
<property name="vendor" value="" />
|
|
||||||
<property name="build-type" value="black" />
|
|
||||||
|
|
||||||
<!--common properties-->
|
|
||||||
<property name="gitRoot" value="." />
|
|
||||||
<property name="coderServerRoot" value="${gitRoot}/../CoderServer" />
|
|
||||||
<property name="srcDir" value="${gitRoot}/src" />
|
|
||||||
<property name="libDir" value="${gitRoot}/lib" />
|
|
||||||
<property name="buildDir" value="${gitRoot}/build" />
|
|
||||||
<property name="releaseDir" value="${gitRoot}/release"/>
|
|
||||||
|
|
||||||
<!--CodeClient properties-->
|
|
||||||
<property name="coderClientBuildDir" value="${buildDir}/coderClient/classes" />
|
|
||||||
<property name="coderClientJar" value="${releaseDir}/CoderClient.jar" />
|
|
||||||
<property name="coderClientPackage" value="com/coder/client" />
|
|
||||||
|
|
||||||
<!--define standard arduments for javac-->
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac includeantruntime="false" />
|
|
||||||
</presetdef>
|
|
||||||
|
|
||||||
<!-- ________________________ CLASSPATHS ________________________ -->
|
|
||||||
|
|
||||||
<!--classpath included when building-->
|
|
||||||
<path id="classpath.build">
|
|
||||||
<pathelement location="${coderServerRoot}/lib/Zutil.jar" />
|
|
||||||
<pathelement location="${coderServerRoot}/release/CoderServer.jar" />
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<!-- ________________________ PUBLIC TARGETS ________________________ -->
|
|
||||||
|
|
||||||
<target name="runBooth">
|
|
||||||
<parallel>
|
|
||||||
<antcall target="startCoderServer" />
|
|
||||||
<sequential>
|
|
||||||
<sleep seconds="5" />
|
|
||||||
<antcall target="run" />
|
|
||||||
</sequential>
|
|
||||||
</parallel>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="startCoderServer">
|
|
||||||
<ant antfile="${coderServerRoot}/build.xml" dir="${coderServerRoot}" target="run" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--build release and run-->
|
|
||||||
<target name="run" depends="buildRelease">
|
|
||||||
<java fork="true" failonerror="true" dir="${releaseDir}" classname="com.coder.client.CoderClient">
|
|
||||||
<classpath>
|
|
||||||
<pathelement path="${releaseDir}/*"/> <!--wildcard may not be platform independent, ok?-->
|
|
||||||
<pathelement path="${releaseDir}/lib/*"/> <!--wildcard may not be platform independent, ok?-->
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--build all target code and create .jar files -->
|
|
||||||
<target name="buildRelease" depends="buildAll, build-coder-client-jar">
|
|
||||||
<!--create release dir-->
|
|
||||||
<mkdir dir="${releaseDir}" />
|
|
||||||
<!--create release/lib dir-->
|
|
||||||
<mkdir dir="${releaseDir}/lib" />
|
|
||||||
<!--copy libs and related files to release/lib dir-->
|
|
||||||
<copy todir="${releaseDir}/lib" flatten="true">
|
|
||||||
<path refid="classpath.build" />
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--build all product code-->
|
|
||||||
<target name="buildAll" depends="clean, build-coder-client">
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--clean all build paths-->
|
|
||||||
<target name="clean">
|
|
||||||
<delete includeemptydirs="true" failonerror="false">
|
|
||||||
<fileset dir="${buildDir}" includes="**/*"/>
|
|
||||||
</delete>
|
|
||||||
<delete includeemptydirs="true" failonerror="false">
|
|
||||||
<fileset dir="${releaseDir}" includes="**/*"/>
|
|
||||||
</delete>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- ________________________ CODER CLIENT ________________________ -->
|
|
||||||
|
|
||||||
<!--build product code and create jar file-->
|
|
||||||
<target name="build-coder-client-jar" depends="git.revision">
|
|
||||||
<mkdir dir="${releaseDir}" />
|
|
||||||
<jar destfile="${coderClientJar}" baseDir="${coderClientBuildDir}">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-class" value="com.coder.client.CoderClient" />
|
|
||||||
<attribute name="Implementation-Title" value="${title}" />
|
|
||||||
<attribute name="Implementation-Version" value="${version} (${repository.version}) (${build-type})" />
|
|
||||||
<attribute name="Implementation-Vendor" value="${vendor}" />
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--build product code-->
|
|
||||||
<target name="build-coder-client">
|
|
||||||
<delete dir="${coderClientBuildDir}" />
|
|
||||||
<mkdir dir="${coderClientBuildDir}" />
|
|
||||||
<javac srcdir="${srcDir}" destdir="${coderClientBuildDir}" fork="yes">
|
|
||||||
<include name="**/*.java" />
|
|
||||||
<exclude name="**/plugin/**" />
|
|
||||||
<classpath refid="classpath.build" />
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- ________________________ UTILITY ________________________ -->
|
|
||||||
|
|
||||||
<!--find the current GIT commit SHA-->
|
|
||||||
<available file="${gitRoot}/.git" type="dir" property="git.present" />
|
|
||||||
<target name="git.revision" if="git.present">
|
|
||||||
<exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
|
|
||||||
<arg value="describe" />
|
|
||||||
<arg value="--tags" />
|
|
||||||
<arg value="--always" />
|
|
||||||
<arg value="HEAD" />
|
|
||||||
</exec>
|
|
||||||
<condition property="repository.version" value="${git.revision}" else="unknown">
|
|
||||||
<and>
|
|
||||||
<isset property="git.revision" />
|
|
||||||
<length string="${git.revision}" trim="yes" length="0" when="greater" />
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<echo message="Current commit SHA is ${git.revision}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue