This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
164 lines (125 loc) · 5.01 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!--
This file is for building Workbrain 5.0 (build #90).
To prepare the build the following folder structure needs to be created.
1. ant_build folder contains ant scripts and the build target folder for .class files
2.core\lib folder contrains all the Workbrain dependencies(all the jar files from Workbrain server - including customer.jar or excluding customer jar, doesn't matter),
and J2EE servlet.jar file for some class to compile.
3. etc, J2EE, Java folders are checked out from SVN repository, without any modifications.
4. need Java 1.4 installed C:\Java\j2sdk1.4.2_19. and apache ant installed
5. to do checkout, we need tortoiseSVN installed.
C:\Users\mark.zhang\EclipseWorkspace\createBuild>copy .\target\createBuild-0.0.2-SNAPSHOT.jar c:\temp\WB_5.0_BUILD_90\ant-lib\
-->
<!--
├───ant_build
│
├───core
│ └───lib
├───etc
│ ├───data_files
│ ├───migration
│ ├───reports
│ └───sql
├───J2EE
│ └───workbrain
│ ├───lib
│ └───workbrain
└───Java
├───images
├───lib
└───src
-->
<!--
##############################################################################
## SVN command get the list of the changed files between two revisions
## svn diff - -summarize -r<rev-of-commit>:<rev-of-commit - 1>
## example: svn diff - -summarize -r2264:2255
##############################################################################
## SVN command to get the list of changed files from a given revision
## example to get changed files from revision 2264:
## svn log - -verbose -r2264
##############################################################################
## SVN command to get the changes from last update
## svn status - -show-updates
## or svn status -u
##
############################################################################
##So svn log <url> -r
## {2008-09-19}:{2008-09-26} will get all changes for the past week, including today
############################################################################
##SVN command to checkout source code
##svn checkout https://subversion.assembla.com/svn/rakeshmoddi%5Ephsa/
##branches/WB_5.0_BUILD_90/ .
-->
<project name="build-${app.name}" default="help" basedir="."
xmlns:if="ant:if" xmlns:unless="ant:unless">
<echoproperties/>
<target name="help">
<echo message="This build shows how to get help."/>
<echo>
ant all -DFrom='From Revision' -DTo='To Revision'
ant checkout -Checkout WB source code from SVN
ant clean -Delete build\classes folder
ant cleanall -Delete build\classes folder, and source code folders(etc, Java, J2EE folders)
ant getchanges -Get list of files changed from Revision #### to Revision ####, result will be saved in build/file_changes_yyyyMMDD.txt
ant createdailybuild create daily build
</echo>
</target>
<target name="all">
<input unless:set="From" message="Please Input From Revision (Exclusive) :" addproperty="From" />
<input unless:set="To" message="Please Input To Revision (Inclusive) :" addproperty="To" />
<ant antfile="build-make-vss.xml" target="cleanall" />
<ant antfile="build-make-vss.xml" target="checkout" />
<ant antfile="build-make-vss.xml" target="getchanges" />
<ant antfile="build-make-vss.xml" target="createdailybuild" />
</target>
<target name="compile" depends="clean">
<ant antfile="build-make-vss.xml"
target="updatebuildinfo" />
<ant antfile="build-make-vss.xml"
target="compile" />
</target>
<target name="clean">
<ant antfile="build-make-vss.xml"
target="clean" />
</target>
<target name="cleanall">
<ant antfile="build-make-vss.xml"
target="cleanall" />
</target>
<target name="checkout">
<ant antfile="build-make-vss.xml"
target="checkout" />
</target>
<target name="getchanges">
<ant antfile="build-make-vss.xml"
target="getchanges" />
</target>
<target name="unzip">
<ant antfile="build-make-vss.xml"
target="unzip" />
</target>
<target name="jar">
<ant antfile="build-make-vss.xml"
target="jar" />
</target>
<target name="zip">
<ant antfile="build-make-vss.xml"
target="zip" />
</target>
<target name="copyjar">
<ant antfile="build-make-vss.xml"
target="getLatestCustomerJar" />
</target>
<target name="createdailybuild">
<ant antfile="build-make-vss.xml"
target="createdailybuild" />
</target>
<target name="mytest">
<if>
<isset property="To" />
<then>
<ant antfile="build-make-vss.xml" target="mytest" />
</then>
</if>
</target>
</project>