Skip to content

Commit

Permalink
dragonfly: another attempt to fix jar packaging issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilmer committed Aug 4, 2011
1 parent e741669 commit 34f9ae0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions com.buglabs.bug.simulator/build.xml
Expand Up @@ -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}" />
Expand Down

0 comments on commit 34f9ae0

Please sign in to comment.