forked from apache/struts1
-
Notifications
You must be signed in to change notification settings - Fork 21
/
build-all-clean.bat.sample
72 lines (56 loc) · 1.6 KB
/
build-all-clean.bat.sample
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
@echo off
rem This is an example "build-all-clean.bat" file, used to build struts from
rem a clean commons.
rem What is needed is a good top level commons build.xml for ant/maven.
rem I know I could submit a patch.
rem
rem This bat file uses Cygwin to remove build directories since
rem commons doesn't have an ant clean target. (HINT for COMMONS COMITTERS!)
rem Make any changes you need, and rename this file
rem to "build-all-clean.bat" and place it in the same directory that
rem contains the Struts "build.xml" file.
rem
rem assumes jakarta-commons,
rem jakarta-commons-sandbox,
rem struts
rem in the same directory.
rem Also assumes uses of
rem maven beta 10 or above,
rem ant 1.5.2
rem cactus v 1.4.1 & v1.2
rem v 1.2 Because the commons (resources) use an old version
rem of cactus for units test, that maven doesn't precompile
rem anymore. You'll need to copy the cactus.jar into the
rem maven repository directory. I filed a bug report for this.
rem
rem
rem $Id$
cd ..
rem goto manualbuild
rm -rf */*/dist
rm -rf */*/target
rm -rf */*/build
rm -rf struts/dist
rm -rf struts/target
:manualbuild
SET CLEAN=clean
cd jakarta-commons
cd logging
call ant %CLEAN% dist
cd ..\collections
call ant %CLEAN% dist
cd ..\beanutils
call ant %CLEAN% dist
cd ..\lang
call ant %CLEAN% dist
cd ..\digester
call ant %CLEAN% dist
cd ..\discovery
call ant %CLEAN% dist
cd ..\validator
call ant %CLEAN% dist
cd ..\fileupload
call ant %CLEAN% dist
cd ..\..\jakarta-struts
call ant %CLEAN% dist
pause