Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (59 sloc) 2.48 KB
<project name="node.x" default="jar-core" basedir=".">
<description>
Build script for node.x
</description>
<!-- set global properties for this build -->
<property name="target" location="target"/>
<property name="core-src" location="src/main/java"/>
<property name="core-target" location="target/core/classes"/>
<property name="core-lib" location="src/main/resources/jars"/>
<property name="rabbit-lib" location="src/main/resources/jars/rabbit"/>
<property name="jedis-lib" location="src/main/resources/jars/jedis"/>
<property name="test-lib" location="src/tests/resources/jars"/>
<property name="tests-target" location="target/tests/classes"/>
<property name="tests-src" location="src/tests"/>
<path id="core-lib-classpath">
<fileset dir="${core-lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${rabbit-lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${jedis-lib}">
<include name="*.jar"/>
</fileset>
</path>
<path id="test-classpath">
<path refid="core-lib-classpath"/>
<fileset dir="${test-lib}">
<include name="*.jar"/>
</fileset>
<pathelement location="${tests-target}"/>
<pathelement location="target/node.x.jar"/>
</path>
<taskdef name="testng" classpathref="test-classpath"
classname="org.testng.TestNGAntTask"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<target name="compile-core" depends="init" description="compile the source for the core">
<mkdir dir="${core-target}"/>
<javac srcdir="${core-src}" destdir="${core-target}" classpathref="core-lib-classpath" debug="on"/>
</target>
<target name="jar-core" depends="compile-core" description="generate the core jar">
<jar jarfile="target/node.x.jar" basedir="${core-target}" includes="**/*.class"/>
</target>
<target name="clean" description="clean up">
<delete dir="${target}"/>
</target>
<target name="compile-tests" depends="jar-core">
<mkdir dir="${tests-target}"/>
<javac srcdir="${tests-src}" destdir="${tests-target}" classpathref="test-classpath" debug="on"/>
</target>
<target name="tests" depends="compile-tests">
<testng classpathref="test-classpath">
<classfileset dir="${tests-target}" includes="**/*.class"/>
</testng>
</target>
</project>
Something went wrong with that request. Please try again.