-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
65 lines (58 loc) · 2.09 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
<!--
========================================================================
PlantUML : a free UML diagram generator
========================================================================
(C) Copyright 2009-2013, Arnaud Roques
Project Info: http://plantuml.sourceforge.net
This file is part of PlantUML.
Original Author: Arnaud Roques
Script Author: Ilya V. Paramonov
-->
<project name="PlantUML" default="dist" basedir=".">
<description>
PlantUML Build File
</description>
<!-- mar9000: add Salt9000 to the build. -->
<property name="lib.dir" value="${basedir}/lib"/>
<path id="compile.classpath">
<pathelement location="${lib.dir}/antlr-runtime-4.4.jar"/>
</path>
<!-- End mar9000. -->
<target name="compile">
<delete dir="build" />
<mkdir dir="build" />
<!-- mar9000: add Salt9000 to the build. -->
<javac target="1.5" destdir="build">
<src path="src"/>
<src path="../salt9000/src"/>
<classpath refid="compile.classpath" />
</javac>
<!-- End mar9000. -->
<copy file="src/net/sourceforge/plantuml/version/logo.png"
todir="build/net/sourceforge/plantuml/version" />
<copy file="src/net/sourceforge/plantuml/version/favicon.png"
todir="build/net/sourceforge/plantuml/version" />
<copy todir="build/net/sourceforge/plantuml/openiconic/data">
<fileset dir="src/net/sourceforge/plantuml/openiconic/data">
<include name="*.txt" />
<include name="*.svg" />
</fileset>
</copy>
</target>
<target name="dist" depends="compile">
<!-- mar9000: add required libraries to the build. -->
<unzip src="lib/antlr-runtime-4.4.jar" dest="build" />
<unzip src="lib/jgoodies-common-1.8.0.jar" dest="build" />
<unzip src="lib/jgoodies-looks-2.6.0.jar" dest="build" />
<!-- End mar9000. -->
<delete dir="dist" />
<mkdir dir="dist" />
<jar jarfile="plantuml9000.jar" basedir="build">
<manifest>
<attribute name="Main-Class" value="net.sourceforge.plantuml.Run" />
</manifest>
</jar>
<delete dir="build" />
<delete dir="dist" />
</target>
</project>