[Assorted-commits] SF.net SVN: assorted: [563] scala-commons/trunk/build.xml
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-03-03 03:23:13
|
Revision: 563 http://assorted.svn.sourceforge.net/assorted/?rev=563&view=rev Author: yangzhang Date: 2008-03-02 19:23:18 -0800 (Sun, 02 Mar 2008) Log Message: ----------- added ant build file Added Paths: ----------- scala-commons/trunk/build.xml Added: scala-commons/trunk/build.xml =================================================================== --- scala-commons/trunk/build.xml (rev 0) +++ scala-commons/trunk/build.xml 2008-03-03 03:23:18 UTC (rev 563) @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<project name="scala-commons" default="jar"> + <property name="version" value="0.1"/> + <property name="src.dir" value="${basedir}/src"/> + <property name="build.dir" value="${basedir}/build"/> + <property name="dist.dir" value="${basedir}/dist"/> + <property name="tmp.dir" value="${basedir}/tmp"/> + + <target name="init"> + <property name="scala-library.jar" value="${scala.home}/share/scala/lib/scala-library.jar"/> + <path id="build.classpath"> + <pathelement location="${scala-library.jar}"/> + <pathelement location="${build.dir}"/> + </path> + <taskdef resource="scala/tools/ant/antlib.xml"> + <classpath> + <pathelement location="${scala.home}/share/scala/lib/scala-compiler.jar"/> + <pathelement location="${scala-library.jar}"/> + </classpath> + </taskdef> + </target> + + <target name="build" depends="init"> + <mkdir dir="${build.dir}"/> + <scalac srcdir="${src.dir}" destdir="${build.dir}" + classpathref="build.classpath" force="changed"> + <exclude name="commons/extras/*.scala"/> + </scalac> + </target> + + <target name="jar" depends="build"> + <mkdir dir="${dist.dir}"/> + <jar basedir="${build.dir}" + jarfile="${dist.dir}/${ant.project.name}-${version}.jar" index="true"/> + </target> + + <target name="clean"> + <delete dir="${build.dir}"/> + <delete dir="${dist.dir}"/> + <delete dir="${tmp.dir}"/> + </target> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |