Skip to content
Browse files

dragonfly: update build to include static files in jar for simulator.

  • Loading branch information...
1 parent 3f156b4 commit 6082ad12d5ae7aa9c0f80eab48951a94a1a6fd9e @kgilmer kgilmer committed Aug 4, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 com.buglabs.bug.simulator/build.xml
View
13 com.buglabs.bug.simulator/build.xml
@@ -2,6 +2,19 @@
<project name="com.buglabs.bug.simulator" basedir=".">
<!-- PROJECT CONSTANTS -->
<property name="project" value="com.buglabs.bug.simulator" />
+
+ <!-- target: build.jars Build jars intended for production distribution -->
+ <target name="build.jars" depends="build, document" description="Package the java class files into a jar.">
+ <echo message="## PROJECT: ${ant.project.name} ## TARGET: build.jars" />
+
+ <property name="dist.jar.name" value="${ant.project.name}" />
+ <property name="manifest.location" location="${basedir}/META-INF/MANIFEST.MF"/>
+
+ <fail unless="distDirectory" message="distDirectory must be defined." />
+ <fail unless="buildDirectory" message="buildDirectory must be defined." />
+
+ <jar destfile="${distDirectory}/${dist.jar.name}.jar" basedir="${buildDirectory}" manifest="${manifest.location}"/>
+ </target>
<!-- PROJECT IMPORTS -->
<property name="common.ant.file" location="${base.build.dir}/toolbox/common-osgi.xml" />

0 comments on commit 6082ad1

Please sign in to comment.
Something went wrong with that request. Please try again.