Permalink
Browse files

Add build.xml

  • Loading branch information...
nahi committed Jun 7, 2011
1 parent 68f4f4c commit 41f77ce758249aaffa607929637c33f47a27a9e1
Showing with 39 additions and 0 deletions.
  1. +38 −0 build.xml
  2. +1 −0 default.build.properties
View
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="forkjoin.rb">
<property file="build.properties"/>
<property name="src.java" value="src"/>
<property name="target" value="target"/>
<property name="target.classes" value="${target}/classes"/>
<property name="jruby.jar" value="${jruby.home}/lib/jruby.jar"/>
<property name="version.source" value="1.7"/>
<property name="version.target" value="1.7"/>
<path id="build.classpath">
<pathelement location="${jruby.jar}"/>
</path>
<target name="init">
<mkdir dir="${target}"/>
<mkdir dir="${target.classes}"/>
</target>
<target name="clean">
<delete dir="target"/>
</target>
<target depends="init" name="build" description="Compiles Java source files">
<javac debug="true" includeAntRuntime="false" destdir="${target.classes}" source="${version.source}" target="${version.target}">
<classpath refid="build.classpath"/>
<src path="${src.java}"/>
</javac>
</target>
<target depends="build" name="jar" description="Build a JAR file with the generated Java class files">
<jar destfile="${target}/forkjoin.jar" basedir="${target.classes}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
</target>
</project>
View
@@ -0,0 +1 @@
jruby.home=../jruby

0 comments on commit 41f77ce

Please sign in to comment.