forked from AlloyTools/org.alloytools.alloy
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
77 lines (60 loc) · 2.78 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
76
77
<!--
required environment properties:
VERSION - version number (e.g., 4.2),
jarName - jar file name inside the 'dist' folder (e.g., alloy4.2.jar)
-->
<project name="Alloy" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<!-- xmlns:artifact - for support downloading from Maven -->
<description>ANT build file for Alloy; Currently only for building OSX .app file.</description>
<target name="javadoc">
<javadoc access="protected" author="true"
classpathref="lib.class.path"
destdir="deploy/doc" doctitle="Alloy4.2 Documentation"
nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false"
notree="false"
source="1.5" sourcepath="src" splitindex="true"
stylesheetfile="/home/aleks/work/projects/relations/src/kodkod/util/taglet/kodkod.css"
use="true" version="true"
>
<classpath>
<path refid="lib.class.path"/>
<path refid="dependency.download"/>
<path location="/home/aleks/work/projects/kodkod/bin"/>
</classpath>
<!-- got rid of that huge one liner string -->
<!-- ignore runtime, tmp" -->
<packageset defaultexcludes="yes" dir="src">
<include name="edu.mit.csail.sdg.*"/>
</packageset>
</javadoc>
</target>
<target name="buildjar" depends="mkdir">
<taskdef name="jarbundler" classpath="./lib/jarbundler-2.4.0.jar" classname="net.sourceforge.jarbundler.JarBundler" />
<jarbundler dir="dist" name="Alloy${env.VERSION}" mainclass="edu.mit.csail.sdg.alloy4whole.SimpleMain" jar="dist/${env.jarName}" jvmversion="1.6+" vmoptions="-Xmx1024m -Xdock:name=Alloy${env.VERSION}" signature="AA42" build="${env.VERSION}" bundleid="edu.mit.csail.sdg.alloy4whole.SimpleMain" stubfile="OSX-JavaStub/JavaApplicationStub" icon="OSX-icons/AlloyLogo.icns" copyright="Alloy Analyzer by SDG group, MIT" shortname="Alloy">
<javaproperty name="apple.laf.useScreenMenuBar" value="true" />
<javaproperty name="apple.awt.antialiasing" value="true" />
<javaproperty name="apple.awt.graphics.UseQuartz" value="true" />
<documenttype name="Alloy model file" extensions="als" iconFile="OSX-icons/AlloyFile.icns" role="Editor" />
</jarbundler>
</target>
<target name="mkdir">
<mkdir dir="dist/" />
</target>
<property environment="env" />
<path id="lib.class.path">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<artifact:dependencies pathId="dependency.download">
<dependency groupId="junit" artifactId="junit" version="4.8.2" scope="test"/>
</artifact:dependencies>
<ivy:cachepath pathid="ant.git.tasks.classpath" conf="YOUR_IVY_CONFIGURATION"/>
<taskdef uri="antlib:com.rimerosolutions.ant.git"
resource="com/rimerosolutions/ant/git/jgit-ant-lib.xml">
<classpath>
<path refid="ant.git.tasks.classpath"/>
</classpath>
</taskdef>
</project>