-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
102 lines (90 loc) · 3.53 KB
/
Copy pathbuild.xml
File metadata and controls
102 lines (90 loc) · 3.53 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<project name="Teaching Kids Programming" basedir="." default="Publish TeachingKidsProgramming">
<target name="compile" depends="cleanUp">
<mkdir dir="${build}" />
<delete dir="${build}/com/spun" />
<echo>${targetJavaClass}</echo>
<javac srcdir="${src}:${additonal_java_sources}" destdir="${build}" debug="true" includes="${targetJavaClass}" target="1.6" source="1.6" listfiles="true">
<exclude name="**/tests/**" if="excludeTests" />
<classpath>
<fileset dir="${src}/jars">
<include name="**/*.jar" />
</fileset>
<fileset dir="${additonal_java_sources}/jars">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="cleanUp">
<delete dir="${build}" />
</target>
<target name="buildJarFile" depends="compile">
<mkdir dir="${build}/src" />
<copy todir="${build}/src">
<fileset dir="${src}" includes="${targetJavaClass}/*.java">
<exclude name="**/tests/**" if="excludeTests" />
</fileset>
</copy>
<copy todir="${build}">
<fileset dir="${src}" includes="${targetJavaClass}/*.png" />
</copy>
<delete file="${jar}" failonerror="false" />
<jar destfile="${jar}" update="false">
<fileset dir="${build}" includes="**" />
</jar>
</target>
<target name="createDownload" depends="buildJarFile">
<zip destfile="${zip}" basedir="${build}" includes="*.jar,*.txt">
<fileset dir="${documentation}" includes="**" />
</zip>
</target>
<target name="Publish TeachingKidsProgramming">
<property file="properties/teaching_kids_programming.properties" />
<antcall target="createTeachingKidsProgramming" />
</target>
<target name="cleanTeachingKidsProgramming">
<delete dir="${tkp_project}/bin" failonerror="false" />
<delete dir="${tkp_project}/src" failonerror="false" />
<delete dir="${tkp_project}/build" failonerror="false" />
</target>
<target name="createTeachingKidsProgramming" depends="cleanTeachingKidsProgramming, buildJarFile">
<copy file="${build}/TeachingKidsProgramming.jar" todir="${tkp_project}/src/jars" />
<copy file="${documentation}/build.xml" todir="${tkp_project}/build" />
<copy todir="${tkp_project}/src" verbose="true">
<fileset dir="${src}">
<include name="org/teachingkidsprogramming/**/*.java" />
<include name="org/teachingkidsprogramming/**/*.docx" />
<include name="org/teachingkidsprogramming/**/*.pdf" />
<exclude name="**/tests/**" />
<exclude name="**/completed/**" />
</fileset>
</copy>
<replace dir="${tkp_project}/src" token="@Ignore" value="" />
<zip destfile="${build}/tkp_workspace.v${version}.zip" basedir="${tkp_workspace}" includes="**">
</zip>
</target>
<target name="Publish TKP Launcher">
<property file="properties/tkplauncher.properties" />
<antcall target="buildExecutableTkpJarFile" />
</target>
<target name="buildExecutableTkpJarFile" depends="compile">
<jar destfile="${jar}/TKP_Launcher.jar" update="false">
<fileset dir="${build}" includes="**" />
<manifest>
<attribute name="Main-Class" value="org.teachingextensions.setup.SetupValidator" />
</manifest>
</jar>
</target>
<target name="Publish TKP ThumbDriveInstaller">
<property file="properties/tkplauncher.properties" />
<antcall target="buildThumbDriveInstaller" />
</target>
<target name="buildThumbDriveInstaller" depends="compile">
<jar destfile="${jar}/TKP_Installer.jar" update="false">
<fileset dir="${build}" includes="**" />
<manifest>
<attribute name="Main-Class" value="org.teachingextensions.setup.ThumbDriveInstaller" />
</manifest>
</jar>
</target>
</project>