Skip to content

Commit

Permalink
Add build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshi Nakamura committed Jun 7, 2011
1 parent 68f4f4c commit 41f77ce
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions build.xml
@@ -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>
1 change: 1 addition & 0 deletions default.build.properties
@@ -0,0 +1 @@
jruby.home=../jruby

0 comments on commit 41f77ce

Please sign in to comment.