-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.xml
75 lines (58 loc) · 2.39 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
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
<?xml version="1.0" ?>
<project name="jars" default="main">
<property name="message" value="Building proparse..."/>
<property name="core_xclds" value="**/*.g,**/*.smap,**/*.SF,**/*.launch,**/*.testsuite,**/*.deploy,**/*.location,**/*.execution,**/*.datapool,**/*.artifact,**/*.html,**/*.svg,**/*.groovy" />
<target name="main" depends="makeproparsejar, makeproparsezip, make_dotnet">
<echo>
${message}
</echo>
</target>
<target name="makeproparsejar">
<tstamp/>
<buildnumber/>
<path id="build-classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<manifestclasspath property="lib.list" jarfile="proparse.jar">
<classpath refid="build-classpath" />
</manifestclasspath>
<jar jarfile="proparse.jar" >
<manifest>
<attribute name="Author" value="Joanju Software"/>
<attribute name="Class-Path" value=". ${lib.list}"/>
<section name="Proparse">
<attribute name="Author" value="Joanju Software" />
<attribute name="Home" value="joanju.com, oehive.org"/>
<attribute name="Build" value="${build.number}"/>
<attribute name="Date" value="${TODAY}"/>
</section>
<section name="Copyright">
<attribute name="Copy" value="(C) Joanju Software 2002-2015"/>
<attribute name="License" value="Eclipse Public License version 1.0"/>
</section>
</manifest>
<zipfileset dir="bin" excludes="${core_xclds}" />
</jar>
</target>
<target name="makeproparsezip">
<delete dir="prorefactor/projects/unittest/pubs" />
<zip destfile="proparse.java.zip">
<zipfileset dir="lib" prefix="proparse.java/lib" />
<zipfileset file="proparse.jar" prefix="proparse.java" />
<zipfileset file="build.number" prefix="proparse.java" />
</zip>
</target>
<target name="make_dotnet">
<exec executable="${basedir}/ikvmbin/ikvmc.exe" dir="." failonerror="true">
<arg line="-out:proparse.net.dll -version:4.0.1.${build.number} -keyfile:proparse.snk proparse.jar lib\*.jar"/>
</exec>
<delete dir="prorefactor/projects/unittest/pubs" />
<zip destfile="proparse.assemblies.zip">
<zipfileset file="proparse.net.dll" prefix="proparse.assemblies" />
<zipfileset file="ikvmbin/IKVM.OpenJDK.Core.dll" prefix="proparse.assemblies" />
<zipfileset file="ikvmbin/IKVM.Runtime.dll" prefix="proparse.assemblies" />
</zip>
</target>
</project>