-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.xml
43 lines (37 loc) · 1.88 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<!-- You can set the version of Analyster here and then build the new jar.-->
<project name="Analyster" default="dist" basedir=".">
<description>Builds, tests, and runs the project Analyster.</description>
<!-- this is netbeans generated code -->
<import file="nbproject/build-impl.xml"/>
<!-- set the date and version here -->
<property name="version-date" value="2021-03-06"/>
<property name="version" value="1.6.6L"/>
<!-- this is the jar name when it is created -->
<property name="jarname" value="Analyster-${version}"/>
<!-- this creates a manifest to get the date and version of the jar -->
<target name="-post-init">
<manifest file="src/com/elle/analyster/MANIFEST.MF">
<attribute name="version-date" value="${version-date}" />
<attribute name="version" value="${version}" />
</manifest>
</target>
<!-- This creates the jar that we want with the included dependencies -->
<!-- There should be no need to edit this code -->
<!-- other than adding or removing dependencies-->
<!-- Dependencies are kept in the lib folder in Analyster-->
<!-- The new jar will be in the target folder in Analyster -->
<target name="-post-jar">
<delete dir="target"/>
<jar jarfile="target/${jarname}.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipgroupfileset dir="lib" excludes="META-INF/*" />
<manifest>
<attribute name="Main-Class" value="com.elle.analyster.Analyster"/>
<!-- added this attribute so that splash Image will show and the jar will run by Tom Tran 2018-05-15-->
<attribute name="SplashScreen-Image" value="com/elle/analyster/splashImage.png"/>
</manifest>
</jar>
<delete dir="dist"/>
</target>
</project>