-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
71 lines (63 loc) · 1.82 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
<project name="tm2i" default="all">
<property environment="ENV" />
<condition property="version" value="${ENV.TEXTMATE_TO_INTYPE_VERSION}" else="dev">
<isset property="ENV.TEXTMATE_TO_INTYPE_VERSION" />
</condition>
<property name="jar.name" value="tm2i-${version}.jar" />
<!-- <target name="all" depends="jars, test" /> -->
<target name="all" depends="jars" />
<target name="clean">
<delete dir="build" />
</target>
<target name="compile">
<mkdir dir="build/classes" />
<javac srcdir="src" destdir="build/classes" debug="true" encoding="UTF-8">
<classpath>
<path path="lib/dd-plist.jar" />
<path path="lib/jasmine-dev.jar" />
</classpath>
</javac>
<copy todir="build/classes">
<fileset dir="src">
<exclude name="*.java" />
</fileset>
</copy>
</target>
<target name="jars" depends="compile">
<jar destfile="build/${jar.name}" >
<fileset dir="build/classes">
</fileset>
<manifest>
<attribute name="Built-By" value="Inotai Team"/>
<attribute name="Main-Class" value="com.inotai.convertor.textmate.Main"/>
</manifest>
</jar>
</target>
<!--
<target name="compile-tests" depends="compile">
<mkdir dir="build/test" />
<javac srcdir="src/test" destdir="build/test" debug="true">
<classpath>
<path path="lib/junit-4.10.jar" />
<path path="build/classes" />
</classpath>
</javac>
<copy todir="build/test">
<fileset dir="src/test">
<exclude name="*.java" />
</fileset>
</copy>
</target>
<target name="test" depends="compile-tests">
<junit>
<classpath>
<path path="lib/junit-4.10.jar" />
<path path="build/classes" />
<path path="build/test" />
</classpath>
<formatter type="brief" usefile="false" />
<test name="com.inotai.jasmine.reader.AllTests" />
</junit>
</target>
-->
</project>