Permalink
Browse files

Move build.xml

git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@5520 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 4f7605b commit b30518ddc240db3bafcd585db81e4652f3f0fb01 @nicksieger nicksieger committed Jan 7, 2008
Showing with 39 additions and 0 deletions.
  1. +39 −0 build.xml
View
@@ -0,0 +1,39 @@
+<?xml version="1.0" ?>
+<project name="Joni" default="build">
+
+ <property name="src.dir" value="src" />
+ <property name="bin.dir" value="target/classes" />
+ <property name="dist.dir" value="target" />
+ <property name="jar.name" value="joni.jar" />
+
+ <target name="clean">
+ <delete dir="${bin.dir}" />
+ <delete dir="${dist.dir}" />
+
+ </target>
+
+ <target name="compile">
+ <mkdir dir="${bin.dir}" />
+ <javac srcdir="${src.dir}" destdir="${bin.dir}"/>
+ </target>
+
+ <target name="build" depends="compile">
+ <mkdir dir="${dist.dir}" />
+
+ <tstamp>
+ <format property="buildDate" pattern="yyyy-MM-dd" />
+ <format property="buildTime" pattern="HH:mm:ss" />
+ </tstamp>
+
+ <jar destfile="${dist.dir}/${jar.name}" manifest="MANIFEST.MF">
+ <fileset dir="${bin.dir}" />
+
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <attribute name="Built-Date" value="${buildDate}" />
+ <attribute name="Built-Time" value="${buildTime}" />
+ </manifest>
+ </jar>
+
+ </target>
+</project>

0 comments on commit b30518d

Please sign in to comment.