-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
95 lines (84 loc) · 2.72 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<project name="StarORF" default="build" basedir=".">
<taskdef name="jreleaseinfo" classname="ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask" />
<property name="src" value="${basedir}/src" />
<property name="build" value="${basedir}/build" />
<path id="apt.classpath">
<pathelement path="${basedir}/bin" />
<pathelement path="${basedir}/lib/miglayout15-swing.jar" />
<pathelement path="../STAR_SignalSystem" />
</path>
<condition property="scp" value="C:\\Progra~2\\putty\\pscp.EXE" else="scp">
<os family="windows" />
</condition>
<condition property="ssh" value="C:\\Progra~2\\putty\\plink.exe" else="ssh">
<os family="windows" />
</condition>
<target name="build" depends="clean,compile,jar">
</target>
<target name="clean" depends="">
<echo>Deleting</echo>
<mkdir dir="${build}" />
<delete>
<fileset dir="${src}">
<include name="**/*.class" />
</fileset>
<fileset dir="${build}">
<include name="**/*.class" />
</fileset>
</delete>
</target>
<target name="publish" depends="build">
<echo>Publishing and signing</echo>
<exec executable="${scp}">
<arg value="StarORF.jar" />
<arg value="[email protected]:/home/star/star/media/uploads/star/jar/orf2/StarORF.jar" />
</exec>
<!--
<exec executable="${ssh}">
<arg value="-ssh" />
<arg value="starapp.mit.edu" />
<arg value="-l" />
<arg value="ceraj" />
<arg value="/home/star/build/sign_orf.sh" />
</exec>
-->
<exec executable="${ssh}">
<arg value="[email protected]" />
<arg value="/home/star/build/sign_orf_beta.sh" />
</exec>
</target>
<target name="compile" depends="">
<echo>Updating build date</echo>
<jreleaseinfo targetDir="src" packagename="star.orf.app" classname="Version" project="StarORF">
</jreleaseinfo>
<echo>Compiling</echo>
<javac srcdir="${src}" classpathref="apt.classpath" destdir="${build}" debug="on" includes="**/*.java" optimize="on" target="1.5" />
</target>
<target name="jar" depends="">
<echo>Creating JAR</echo>
<jar destfile="StarORF.jar">
<fileset dir="build" id="build">
<include name="**" />
<exclude name=".classpath" />
<exclude name=".project" />
<exclude name=".settings" />
</fileset>
<fileset dir="src" id="pref">
<include name="preferences/**" />
<include name="resources/**" />
<exclude name=".settings/**" />
</fileset>
<fileset dir="../STAR_SignalSystem" id="SignalSystem">
<include name="**" />
<exclude name="**/*.jar*" />
<exclude name=".classpath" />
<exclude name=".project" />
<exclude name=".settings" />
<exclude name="**/*.java" />
<exclude name="star/junit/**" />
<exclude name=".settings/**" />
</fileset>
</jar>
</target>
</project>