-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
74 lines (74 loc) · 3.74 KB
/
build.xml
File metadata and controls
74 lines (74 loc) · 3.74 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
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="sra" name="SIMRacingApps-SIMPlugin-Template">
<property name="plugin.name" value="Template" />
<tstamp>
<format property="build.time" pattern="yyyy.MM.dd.HH.mm.ss" />
</tstamp>
<tstamp>
<format property="build.date" pattern="yyyy.MM.dd" />
</tstamp>
<tstamp>
<format property="build.year" pattern="yyyy" />
</tstamp>
<property name="version.properties" value="src/com/SIMRacingApps/SIMPlugins/${plugin.name}/version.properties" />
<property environment="env"/>
<property name="ECLIPSE_HOME" value="../../../../PortableApps/EclipsePortable/App/Eclipse/"/>
<property name="SIMRacingAppsServer.location" value="../SIMRacingAppsServer"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="Web App Libraries.libraryclasspath">
<pathelement location="${SIMRacingAppsServer.location}/WebContent/WEB-INF/lib/snakeyaml-1.13.jar"/>
<pathelement location="${SIMRacingAppsServer.location}/WebContent/WEB-INF/lib/genson-1.3.jar"/>
</path>
<path id="SIMRacingAppsServer.classpath">
<pathelement location="${SIMRacingAppsServer.location}/WebContent/WEB-INF/classes"/>
<path refid="Web App Libraries.libraryclasspath"/>
</path>
<path id="SIMRacingAppsSIMPlugin.classpath">
<pathelement location="classes"/>
<path refid="SIMRacingAppsServer.classpath"/>
</path>
<target name="init">
<mkdir dir="classes"/>
<copy includeemptydirs="false" todir="classes">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="classes"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="classes" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="SIMRacingAppsSIMPlugin.classpath"/>
</javac>
</target>
<target name="version">
<sequential>
<propertyfile file="${version.properties}">
<entry key="major" type="int" value="1" />
<entry key="minor" type="int" value="0" />
<entry key="build" type="string" value="BETA-${build.date}" />
<entry key="built-by" type="string" value="Jeffrey Gilliam" />
<entry key="copyright" type="string" value="Copyright (C) ${build.year} Jeffrey Gilliam" />
<entry key="license" type="string" value="Apache License, Version 2.0, January 2004" />
</propertyfile>
<replaceregexp match="^#.*$" replace="#Sat, 01 Jan 2000 00:00:00 -0000" byline="true">
<fileset dir="." includes="${version.properties}" />
</replaceregexp>
<property file="${version.properties}" prefix="version" />
<property name="version" value="${version.major}.${version.minor}_Build_${version.build}" />
<echo message="${version.properties} Remember to Tag Git with Version: ${version}" />
</sequential>
</target>
<target name="sra" depends="build">
<property file="${version.properties}" prefix="version" />
<property name="version" value="${version.major}.${version.minor}_Build_${version.build}" />
<zip destfile="${java.io.tmpdir}/SIMRacingAppsPlugin-${plugin.name}.sra" basedir="classes" />
</target>
</project>