forked from nilsschmidt1337/ldparteditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJar_Export.xml
100 lines (96 loc) · 5.56 KB
/
Jar_Export.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project LDPartEditor_linux">
<!--ANT 1.7 is required -->
<target name="create_run_jar">
<property name="os" value="linux"/> <!-- linux, win32, mac-->
<property name="arc" value="x86"/> <!-- x86, x64-->
<property name="src" value="linux"/> <!-- for 64-bit architecture append '_x64' here-->
<property name="ws" value="/home/nils/workspace"/>
<property name="eclipsePlugin" value="/usr/share/eclipse/plugins"/>
<pathconvert property="core.commands">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.core.commands_*.jar"/>
</pathconvert>
<pathconvert property="core.databinding">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.core.databinding_*.jar"/>
</pathconvert>
<pathconvert property="core.databinding.beans">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.core.databinding.beans_*.jar"/>
</pathconvert>
<pathconvert property="core.databinding.observable">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.core.databinding.observable_*.jar"/>
</pathconvert>
<pathconvert property="core.databinding.property">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.core.databinding.property_*.jar"/>
</pathconvert>
<pathconvert property="equinox.common">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.equinox.common_*.jar"/>
</pathconvert>
<pathconvert property="jface">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.jface_*.jar"/>
</pathconvert>
<pathconvert property="jface.databinding">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.jface.databinding_*.jar"/>
</pathconvert>
<pathconvert property="jface.text">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.jface.text_*.jar"/>
</pathconvert>
<pathconvert property="osgi">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.osgi_*.jar"/>
</pathconvert>
<pathconvert property="ui.workbench">
<fileset dir="${eclipsePlugin}" includes="org.eclipse.ui.workbench_*.jar"/>
</pathconvert>
<pathconvert property="icu">
<fileset dir="${eclipsePlugin}" includes="com.ibm.icu_*.jar"/>
</pathconvert>
<!-- Do some echo for the important paths -->
<echo message="${core.commands}"/>
<echo message="${core.databinding}"/>
<echo message="${core.databinding.beans}"/>
<echo message="${core.databinding.observable}"/>
<echo message="${core.databinding.property}"/>
<echo message="${equinox.common}"/>
<echo message="${jface}"/>
<echo message="${jface.databinding}"/>
<echo message="${jface.text}"/>
<echo message="${osgi}"/>
<echo message="${ui.workbench}"/>
<echo message="${icu}"/>
<!-- Copy resource files (txt) -->
<copy file="${ws}/LDPartEditor_linux/categories.txt" overwrite="true" todir="${ws}/LDPartEditor/LDPartEditor_${os}_${arc}"/>
<copy file="${ws}/LDPartEditor_linux/primitive_rules.txt" overwrite="true" todir="${ws}/LDPartEditor/LDPartEditor_${os}_${arc}"/>
<!-- Create JAR file -->
<jar destfile="${ws}/LDPartEditor/LDPartEditor_${os}_${arc}/LDPartEditor.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="org.nschmidt.ldparteditor.main.LDPartEditor"/>
<!-- Modified Classpath -->
<attribute name="Class-Path" value=". plugin/"/>
</manifest>
<fileset dir="${ws}/LDPartEditor_${src}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/lwjgl/recent/jar/lwjgl_util.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/lwjgl/recent/jar/lwjgl.jar"/>
<fileset dir="${ws}/org.eclipse.swt_${src}"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/org.eclipse.swt_${src}/swt.jar"/>
<fileset dir="${ws}/com.sun.tools/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/runtime_compiler/tools.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/LDPartEditor_linux/libs/swt-grouplayout.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${ws}/LDPartEditor_linux/libs/swing2swt.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${core.commands}"/>
<zipfileset excludes="META-INF/*.SF" src="${core.databinding}"/>
<zipfileset excludes="META-INF/*.SF" src="${core.databinding.beans}"/>
<zipfileset excludes="META-INF/*.SF" src="${core.databinding.observable}"/>
<zipfileset excludes="META-INF/*.SF" src="${core.databinding.property}"/>
<zipfileset excludes="META-INF/*.SF" src="${equinox.common}"/>
<zipfileset excludes="META-INF/*.SF" src="${jface}"/>
<zipfileset excludes="META-INF/*.SF" src="${jface.databinding}"/>
<zipfileset excludes="META-INF/*.SF" src="${jface.text}"/>
<zipfileset excludes="META-INF/*.SF" src="${ui.workbench}"/>
<zipfileset excludes="META-INF/*.SF" src="${osgi}"/>
<zipfileset excludes="META-INF/*.SF" src="${icu}"/>
</jar>
<!-- Create complete archive -->
<zip destfile="${ws}/LDPartEditor/binary/LDPartEditor_${os}_${arc}.zip"
basedir="${ws}/LDPartEditor/LDPartEditor_${os}_${arc}"
/>
</target>
</project>