allow the scope to be passed in, so we can support narwhal more easily
[rhinodom.git] / build.xml
blob4c2e7748ec8450260e7279a66f82dadb1c37f4c2
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="rhinoDOM" default="compile" basedir=".">
3     <property name="build.dir" value="${basedir}/build" />
4     <property name="lib.dir" value="/home/alex/acre/webapp/WEB-INF/lib" />
5     <property name="version" value="0.1" />
7     <path id="class.path">
8         <fileset dir="${lib.dir}">
9             <include name="**/*.jar" />
10         </fileset>
11     </path>
13     <target name="compile" description="Compile rhinoDOM">
14         <mkdir dir="${build.dir}" />
15         <javac srcdir="${basedir}" destdir="${build.dir}">
16             <classpath refid="class.path" />
17         </javac>
18     </target>
20     <target name="dist" depends="compile" description="generate rhinoDOM jar file">
21         <jar jarfile="${basedir}/rhinoDOM-${version}.jar" basedir="${build.dir}"/>
22     </target>
24     <target name="clean" description="Cleanup build directory">
25         <delete dir="${build.dir}" />
26         <delete file="${basedir}/rhinoDOM-${version}.jar" />
27     </target>
28 </project>