|
@@ -17,6 +17,39 @@
|
17
|
17
|
<mkdir dir="${parsers.dist}"/>
|
18
|
18
|
</target>
|
19
|
19
|
|
|
20
|
+ <target name="-retrieve-versions">
|
|
21
|
+ <exec executable="git" outputproperty="parsers.lastcommit.main">
|
|
22
|
+ <arg value="rev-list"/>
|
|
23
|
+ <arg value="--max-count=1"/>
|
|
24
|
+ <arg value="HEAD"/>
|
|
25
|
+ <arg value="--"/>
|
|
26
|
+ <arg value="${parsers.src}/com/dmdirc/parser/common/"/>
|
|
27
|
+ <arg value="${parsers.src}/com/dmdirc/parser/interfaces/"/>
|
|
28
|
+ </exec>
|
|
29
|
+
|
|
30
|
+ <exec executable="git" outputproperty="parsers.version.main">
|
|
31
|
+ <arg value="describe"/>
|
|
32
|
+ <arg value="--tags"/>
|
|
33
|
+ <arg value="--always"/>
|
|
34
|
+ <arg value="${parsers.lastcommit.main}"/>
|
|
35
|
+ </exec>
|
|
36
|
+
|
|
37
|
+ <exec executable="git" outputproperty="parsers.lastcommit.irc">
|
|
38
|
+ <arg value="rev-list"/>
|
|
39
|
+ <arg value="--max-count=1"/>
|
|
40
|
+ <arg value="HEAD"/>
|
|
41
|
+ <arg value="--"/>
|
|
42
|
+ <arg value="${parsers.src}/com/dmdirc/parser/irc/"/>
|
|
43
|
+ </exec>
|
|
44
|
+
|
|
45
|
+ <exec executable="git" outputproperty="parsers.version.irc">
|
|
46
|
+ <arg value="describe"/>
|
|
47
|
+ <arg value="--tags"/>
|
|
48
|
+ <arg value="--always"/>
|
|
49
|
+ <arg value="${parsers.lastcommit.irc}"/>
|
|
50
|
+ </exec>
|
|
51
|
+ </target>
|
|
52
|
+
|
20
|
53
|
<target name="compile" depends="-init-compile">
|
21
|
54
|
<javac srcdir="${parsers.src}" destdir="${parsers.build.main}"
|
22
|
55
|
includeantruntime="false" excludes="com/dmdirc/parser/irc/**"/>
|
|
@@ -25,9 +58,23 @@
|
25
|
58
|
classpath="${parsers.build.main}"/>
|
26
|
59
|
</target>
|
27
|
60
|
|
28
|
|
- <target name="jar" depends="compile,-init-jar">
|
29
|
|
- <jar destfile="${parsers.dist}/parser.common.jar" basedir="${parsers.build.main}"/>
|
30
|
|
- <jar destfile="${parsers.dist}/parser.irc.jar" basedir="${parsers.build.irc}"/>
|
|
61
|
+ <target name="jar" depends="compile,-init-jar,-retrieve-versions">
|
|
62
|
+ <jar destfile="${parsers.dist}/parser.common.jar" basedir="${parsers.build.main}">
|
|
63
|
+ <manifest>
|
|
64
|
+ <section name="com.dmdirc.parser">
|
|
65
|
+ <attribute name="Implementation-Title" value="Common parser files"/>
|
|
66
|
+ <attribute name="Implementation-Version" value="${parsers.version.main}"/>
|
|
67
|
+ </section>
|
|
68
|
+ </manifest>
|
|
69
|
+ </jar>
|
|
70
|
+ <jar destfile="${parsers.dist}/parser.irc.jar" basedir="${parsers.build.irc}">
|
|
71
|
+ <manifest>
|
|
72
|
+ <section name="com.dmdirc.parser.irc">
|
|
73
|
+ <attribute name="Implementation-Title" value="IRC Parser"/>
|
|
74
|
+ <attribute name="Implementation-Version" value="${parsers.version.irc}"/>
|
|
75
|
+ </section>
|
|
76
|
+ </manifest>
|
|
77
|
+ </jar>
|
31
|
78
|
</target>
|
32
|
79
|
|
33
|
80
|
<target name="clean">
|