-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
27 lines (20 loc) · 1.31 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0"?>
<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" 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}" />
</project>