Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (54 sloc) 1.97 KB
<project name="JsTestEnv" default="assemble">
<property name="build" value="${basedir}/build"/>
<property name="dist" value="${basedir}/dist"/>
<property name="libs" value="${basedir}/libs"/>
<property name="production-libs" value="${libs}/production"/>
<property name="test-libs" value="${libs}/test"/>
<property name="user.name" value="chilicat"/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="assemble">
<ant dir="JsChilicatParser" target="assemble"/>
<ant dir="JsChilicatServer" target="assemble"/>
<ant dir="JsChilicat" target="assemble"/>
</target>
<target name="test">
<mkdir dir="${build}/junit"/>
<ant dir="JsChilicatParser" target="test"/>
<ant dir="JsChilicatServer" target="test"/>
<ant dir="JsChilicat" target="test"/>
</target>
<target name="report" depends="test">
<junitreport todir="${build}/junit">
<fileset dir="${build}/junit">
<include name="**/TEST-*.xml"/>
</fileset>
<report format="frames" todir="${dist}/junit/html"/>
</junitreport>
</target>
<target name="sf-dist" depends="clean, assemble, report, sf-dist-clean">
<copy todir="sf-dist/libs/">
<fileset dir="${dist}/production">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy todir="sf-dist/libs/external">
<fileset dir="${production-libs}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="sf-dist/libs/external">
<fileset dir="${production-libs}/selenium">
<include name="*.jar"/>
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="sf-dist-clean">
<delete dir="sf-dist/libs/" />
</target>
</project>