-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
49 lines (41 loc) · 1.52 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
<project name="vinja" basedir="." default="jar">
<property name="src" value="vinja/java" />
<property name="dist" value="vinja/classes" />
<property name="lib" value="vinja/lib" />
<property name="rootDir" value="." />
<property environment="env"/>
<path id="class.path">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<pathelement location="${dist}" />
<fileset dir="${env.JAVA_HOME}/lib">
<include name="tools.jar" />
</fileset>
</path>
<target name="build">
<javac classpathref="class.path" srcdir="${src}" destdir="${dist}" includeantruntime="false"
source="1.6" target="1.6" />
<copy todir="${dist}">
<fileset dir="${src}">
<exclude name="**/*.java" />
<exclude name="**/*.swp" />
</fileset>
</copy>
</target>
<target name="jar" depends="build">
<jar jarfile="${lib}/vinja.jar" basedir="${dist}" />
</target>
<target name="release" depends="jar">
<tstamp>
<format property="builtat" pattern="yyyy-MM-dd" />
</tstamp>
<zip zipfile="${rootDir}/vinja-${builtat}.zip" basedir="${rootDir}" >
<include name="doc/*.pdf"/>
<include name="ftplugin/**" />
<include name="syntax/**" />
<include name="plugin/**"/>
<include name="vinja/**"/>
</zip>
</target>
</project>