You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.7 KiB
59 lines
2.7 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- WARNING: Eclipse auto-generated file.
|
|
Any modifications will be overwritten.
|
|
To include a user specific buildfile here, simply create one in the same
|
|
directory with the processing instruction <?eclipse.ant.import?>
|
|
as the first entry and export the buildfile again. -->
|
|
<project basedir="." default="build" name="SimpleCaptcha">
|
|
<property environment="env"/>
|
|
<property name="ECLIPSE_HOME" value="/Applications/Eclipse/"/>
|
|
<property name="junit.output.dir" value="junit"/>
|
|
<property name="debuglevel" value="source,lines,vars"/>
|
|
<property name="target" value="1.6"/>
|
|
<property name="source" value="1.6"/>
|
|
<property name="version.num" value="1.2.1" />
|
|
|
|
<path id="SimpleCaptcha.classpath">
|
|
<pathelement location="bin"/>
|
|
<pathelement location="/usr/apache-tomcat-6.0.18/lib/servlet-api.jar"/>
|
|
<pathelement location="lib/imaging.jar"/>
|
|
</path>
|
|
<target name="init">
|
|
<mkdir dir="bin"/>
|
|
<copy includeemptydirs="false" todir="bin">
|
|
<fileset dir="Java/src" excludes="**/*.launch, **/*.java"/>
|
|
<fileset dir="Java/test" excludes="**/*.launch, **/*.java"/>
|
|
</copy>
|
|
</target>
|
|
<target name="clean">
|
|
<delete dir="bin"/>
|
|
</target>
|
|
<target depends="clean" name="cleanall"/>
|
|
<target depends="build-subprojects,build-jar" name="build"/>
|
|
<target name="build-subprojects"/>
|
|
<target depends="init" name="build-project">
|
|
<echo message="${ant.project.name}: ${ant.file}, target: ${target}"/>
|
|
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
|
|
<src path="Java/src"/>
|
|
<classpath refid="SimpleCaptcha.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="build-jar" depends="build-project">
|
|
<jar destfile="dist/simplecaptcha-${version.num}.jar" basedir="bin" />
|
|
</target>
|
|
|
|
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
|
|
<copy todir="${ant.library.dir}">
|
|
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
|
|
</copy>
|
|
<unzip dest="${ant.library.dir}">
|
|
<patternset includes="jdtCompilerAdapter.jar"/>
|
|
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
|
|
</unzip>
|
|
</target>
|
|
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
|
|
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
|
<antcall target="build"/>
|
|
</target>
|
|
</project>
|