Browse files

dragonfly: another attempt to fix jar packaging issue.

  • Loading branch information...
1 parent e741669 commit 34f9ae04e2d94e4682c83a51649f543b0bbb8b9a @kgilmer kgilmer committed Aug 4, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 com.buglabs.bug.simulator/build.xml
View
16 com.buglabs.bug.simulator/build.xml
@@ -3,6 +3,22 @@
<!-- 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" manifest="${manifest.location}">
+ <fileset dir="${buildDirectory}" excludes="**/*.java,build/**,**/.settings/**,**/build.xml/**,**/build.properties/**,**/.classpath,**/.project,src/**,test/**,junit-reports/**,.git/**,**.gitignore,**/.checkstyle,**/README.*,**/build*.sh,checkstyle-reports/**" />
+ <fileset dir="${srcDirectory}" includes="**/*.out" />
+ </jar>
+ </target>
+
<!-- PROJECT IMPORTS -->
<property name="common.ant.file" location="${base.build.dir}/toolbox/common-osgi.xml" />
<import file="${common.ant.file}" />

0 comments on commit 34f9ae0

Please sign in to comment.