This repository was archived by the owner on May 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (28 loc) · 1.5 KB
/
build.xml
File metadata and controls
38 lines (28 loc) · 1.5 KB
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
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<project name="ScreenShottr-Java" default="default" basedir=".">
<description>Builds, tests, and runs the project ScreenShottr-Java.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-post-jar">
<echo level="info" message="---- Finalizing Build" />
<!-- Rename unmapped (no libaries) .jar file -->
<copy file="${dist.jar}" tofile="${dist.dir}/${ant.project.name}-unmapped.jar" />
<delete file="${dist.dir}/${ant.project.name}.jar" />
<!-- Generate mapped (with libraries) .jar file -->
<jar compress="${jar.compress}" destfile="${dist.jar}">
<zipfileset src="${dist.dir}/${ant.project.name}-unmapped.jar" excludes="META-INF/*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="httpclient-*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="httpcore-*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="httpmime-*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="commons-*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="json-simple*" />
<manifest>
<attribute name="Main-Class" value="${main.class}" />
</manifest>
</jar>
<!-- Delete /dist/README.txt -->
<delete file="${dist.dir}/README.TXT" />
<!-- Delete /dist/lib folder -->
<delete dir="${dist.dir}/lib/" />
<echo level="info" message="---- Done" />
</target>
</project>