-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
47 lines (40 loc) · 1.51 KB
/
build.xml
File metadata and controls
47 lines (40 loc) · 1.51 KB
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
<?xml version="1.0" encoding="utf-8"?>
<project default="all">
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="resources" location="resources"/>
<property name="jarfile" location= "DataSourcesChecker.jar"/>
<fileset id="libfiles" dir="./">
<include name="lib/**/*.jar"/>
</fileset>
<target name="clean">
<delete dir="${bin}"/>
<delete file="${jarfile}"/>
</target>
<target name="compile">
<mkdir dir="${bin}"/>
<javac srcdir="${src}" destdir="${bin}" target="1.8" source="1.8" debug="on" debuglevel="source,lines,vars" includeantruntime="false" encoding="utf-8">
<compilerarg value="-Xlint:all"/>
<classpath>
<fileset refid="libfiles"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${jarfile}">
<fileset dir="${bin}"/>
<fileset dir="${resources}"/>
<manifest>
<attribute name="Main-Class" value="org.helioviewer.jhv.DataSourcesChecker"/>
<attribute name="Class-Path" value="."/>
<attribute name="version" value="1.0"/>
<attribute name="revision" value="0"/>
</manifest>
<zipgroupfileset refid="libfiles"/>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jarfile}" fork="true"/>
</target>
<target name="all" depends="jar"/>
</project>