Title: [841] trunk/jopenssl: Bring back ant files; makes working in an IDE easier
- Revision
- 841
- Author
- nicksieger
- Date
- 2007-12-14 03:45:53 -0500 (Fri, 14 Dec 2007)
Log Message
Bring back ant files; makes working in an IDE easier
Added Paths
Diff
Copied: trunk/jopenssl/build.properties.SAMPLE (from rev 839, trunk/jopenssl/build.properties.SAMPLE) (0 => 841)
--- trunk/jopenssl/build.properties.SAMPLE (rev 0)
+++ trunk/jopenssl/build.properties.SAMPLE 2007-12-14 08:45:53 UTC (rev 841)
@@ -0,0 +1,7 @@
+version.target=1.5
+version.source=1.5
+# jruby.home=/path/to/a/jruby/install
+# jruby.jar=${jruby.home}/lib/jruby.jar
+# set this to an alternate location to compile against a different jruby.jar
+jruby.jar=lib/jruby.jar
+
Copied: trunk/jopenssl/build.xml (from rev 839, trunk/jopenssl/build.xml) (0 => 841)
--- trunk/jopenssl/build.xml (rev 0)
+++ trunk/jopenssl/build.xml 2007-12-14 08:45:53 UTC (rev 841)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="build" name="jopenssl">
+ <property environment="env"/>
+ <property file="build.properties"/>
+
+ <property name="src.java" value="src/java"/>
+ <property name="target" value="target"/>
+ <property name="target.classes" value="${target}/classes"/>
+ <property name="target.classes.test" value="${target}/test-classes"/>
+ <property name="lib.dir" value="lib"/>
+ <property name="jruby.jar" value="${jruby.home}/lib/jruby.jar"/>
+ <property name="version.source" value="1.4"/>
+ <property name="version.target" value="1.4"/>
+
+ <path id="build.classpath">
+ <fileset dir="${lib.dir}" includes="*.jar" excludes="jopenssl.jar,jruby.jar"/>
+ <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" 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">
+ <path id="bcpath">
+ <fileset dir="${lib.dir}" includes="bc*.jar"/>
+ </path>
+ <pathconvert property="bcjars" pathsep=" " refid="bcpath">
+ <map from="${basedir}/${lib.dir}/" to=""/>
+ </pathconvert>
+ <jar destfile="${lib.dir}/jopenssl.jar" basedir="${target.classes}">
+ <manifest>
+ <attribute name="Built-By" value="${user.name}"/>
+ <attribute name="Class-Path" value="${bcjars}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="test" depends="jar">
+ <exec executable="${jruby.home}/bin/jruby" failonerror="true">
+ <arg value="-Ilib:test"/>
+ <arg value="test/test_openssl.rb"/>
+ </exec>
+ </target>
+</project>
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel