-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
113 lines (79 loc) · 4.37 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<project name="applications" default="package">
<property name="release.version" value="8.5" />
<description>
Script to package and clean the applications/modules.
</description>
<!-- ===================================================================
- Template target. Never called explicitly, only used to pass target
- calls to the underlying children builds.
- =================================================================== -->
<target name="-template">
<!--
This section defines the applications and the order in which they are
executed for any given target.
-->
<echo message="Executing "${target}" target for the assembly-documentburster-server application..." />
<ant target="${target}" dir="assembly-documentburster-server" inheritAll="false">
<property name="release.version" value="${release.version}" />
</ant>
<!-- add more applications as necessary... -->
</target>
<!-- ===================================================================
- clean each of the applications
- =================================================================== -->
<target name="clean" description="Deletes output artifacts for all applications">
<antcall target="-template">
<param name="target" value="clean" />
</antcall>
</target>
<!-- ===================================================================
- package each of the applications
- =================================================================== -->
<target name="package" depends="package-src" description="Package each of the applications">
<antcall target="-template">
<param name="target" value="package" />
</antcall>
</target>
<!-- ===================================================================
- package the source code
- =================================================================== -->
<target name="package-src" depends="clean, format-src" description="Package the source code">
<echo message="Deleting previously generated website ..." />
<ant target="clean" dir="website" inheritAll="false"/>
<echo message="Deleting previously generated src package..." />
<delete file="${ant.project.name}-src.zip" />
<echo message="Clean the target folder..." />
<delete dir="target" />
<echo message="Package all the sources..." />
<zip basedir="." destfile="${ant.project.name}-src.zip" excludes="**/*junit.properties, gui-js/node_modules/**/*, gui-js/dist/**/*, gui-js/playground/**/*, burst/target/**/*, burst/lib/**/*, batch/target/**/*, batch/lib/**/*, batch-web-admin/target/**/*, batch-web-admin/lib/**/*, documentation-documentburster/target/**/*, gui-typescript-angular/node_modules/**/*, gui-typescript-angular/dist/**/*, gui-typescript-angular/playground/**/*, gui-typescript-angular/release/**/*,"/>
</target>
<!-- ===================================================================
- format the source code
- =================================================================== -->
<target name="format-src" description="Format the source code">
<echo message="Formatting the source code..." />
<java jar="./src/etc/formatter/plugins/org.eclipse.osgi_3.6.1.R36x_v20100806.jar" fork="true">
<arg value="-verbose" />
<arg value="-config" />
<arg value="./src/etc/formatter/sun_fmt.ini" />
<arg value="." />
</java>
<echo message="Clean the temporary files created by the Eclipse code formatter..." />
<delete dir="./workspace" />
<delete includeemptydirs="true">
<fileset dir="./src/etc/formatter/plugins/configuration" excludes="config.ini" />
</delete>
</target>
<!-- ===================================================================
- backup the source code -=================================================================== -->
<target name="backup-src" depends="package-src" description="Backup the source code">
<!--Prevent new disasters - Backup the source files to a different drive -->
<echo message="Backup the source files to a different drive..." />
<!--
<copy file="${ant.project.name}-src.zip" todir="D:\\" overwrite="true" />
-->
<copy file="${ant.project.name}-src.zip" todir= "C:/Users/vir" overwrite="true" />
<delete file="${ant.project.name}-src.zip" />
</target>
</project>