Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (30 sloc) 1.32 kB
<project name="ProtonDb" basedir="." default="all">
<target name="all" depends="clean,build,minify,test,metrics" />
<target name="clean">
<delete dir="dist"/>
<delete dir="metrics/output"/>
</target>
<target name="build">
<concat destfile="${basedir}/dist/proton.js" fixlastline="yes">
<filelist dir="${basedir}/src" files="json.js proton.core.js proton.array.js proton.comparators.js proton.sorters.js proton.match.js proton.db.js" />
</concat>
</target>
<target name="test">
<exec executable="jspec.bat" osfamily="windows" failonerror="true">
<arg line="run --rhino" />
</exec>
<exec executable="jspec" osfamily="unix" failonerror="true">
<arg line="run --rhino" />
</exec>
</target>
<target name="metrics">
<mkdir dir="${basedir}/metrics/output" />
<exec executable="rhino" osfamily="unix" output="${basedir}/metrics/output/jslint.txt">
<arg line="${basedir}/metrics/helper/jslint.js ${basedir}/dist/proton.js" />
</exec>
</target>
<target name="minify" depends="build">
<exec executable="${basedir}/minify/jsmin" osfamily="unix" input="${basedir}/dist/proton.js" output="${basedir}/dist/proton-min.js" />
<exec executable="${basedir}/minify/jsmin.exe" osfamily="windows" input="${basedir}/dist/proton.js" output="${basedir}/dist/proton-min.js" />
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.