This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
create_runnable_jar.xml
52 lines (45 loc) · 1.87 KB
/
create_runnable_jar.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
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project giswater with libraries in sub-folder">
<property name="version" value="2.0" />
<property name="main-class" value="org.giswater.gui.MainClass"/>
<property name="class-path" value=". lib/commons-io-2.4.jar lib/commons-net-3.3.jar lib/formsrt.jar lib/jcalendar-1.4.jar lib/miglayout15-swing.jar lib/postgresql-9.1-901.jdbc4.jar lib/sqlitejdbc-v056.jar"/>
<target name="create_run_jar">
<buildnumber file="build.num"/>
<property name="jar_folder" location="C:/folder_to_save_giswater_versions/${version}.${build.number}"/>
<jar destfile="${jar_folder}/giswater.jar">
<manifest>
<attribute name="Implementation-Version" value="${version}.${build.number}"/>
<attribute name="Main-Class" value="${main-class}"/>
<attribute name="Class-Path" value="${class-path}"/>
</manifest>
<fileset dir="bin"/>
</jar>
<copy todir="${jar_folder}/config">
<fileset dir="config/" includes="*.*" />
</copy>
<copy todir="${jar_folder}/epa">
<fileset dir="epa" />
</copy>
<copy todir="${jar_folder}/gis">
<fileset dir="gis"/>
</copy>
<copy todir="${jar_folder}/images">
<fileset dir="images/" includes="*" />
</copy>
<copy todir="${jar_folder}/inp">
<fileset dir="inp/" includes="*" />
</copy>
<copy todir="${jar_folder}/legal">
<fileset dir="legal/" includes="*.*" />
</copy>
<copy todir="${jar_folder}/lib">
<fileset dir="lib/" includes="*.jar" />
</copy>
<copy todir="${jar_folder}/samples">
<fileset dir="samples/" includes="*.*" />
</copy>
<copy todir="${jar_folder}/sql">
<fileset dir="sql" includes="**" />
</copy>
</target>
</project>