forked from caelum/vraptor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
65 lines (51 loc) · 2.42 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
VRaptor 3 full build
====================================================================== -->
<project name="VRaptor 3" default="all">
<description>VRaptor 3 Root Buildfile</description>
<target name="core-tests" description="core module tests">
<ant dir="vraptor-core" target="test" />
</target>
<target name="core" description="core module build">
<ant dir="vraptor-core" />
</target>
<target name="site" description="site module">
<ant dir="vraptor-site" />
</target>
<target name="deploy-to-examples" description="copy the vraptor build to examples lib dir" depends="core">
<property file="vraptor-core/build.properties" />
<delete file="vraptor-example/src/main/webapp/WEB-INF/lib/vraptor3-*.jar" />
<delete file="vraptor-example-compatibility/src/main/webapp/WEB-INF/lib/vraptor3-*.jar" />
<delete file="vraptor-spring-example/src/main/webapp/WEB-INF/lib/vraptor3-*.jar" />
<delete file="vraptor-blank-project/WebContent/WEB-INF/lib/vraptor3-*.jar" />
<copy file="vraptor-core/${jar.file}" todir="vraptor-example/src/main/webapp/WEB-INF/lib" />
<copy file="vraptor-core/${jar.file}" todir="vraptor-example-compatibility/src/main/webapp/WEB-INF/lib" />
<copy file="vraptor-core/${jar.file}" todir="vraptor-spring-example/src/main/webapp/WEB-INF/lib" />
<copy file="vraptor-core/${jar.file}" todir="vraptor-blank-project/WebContent/WEB-INF/lib" />
</target>
<target name="test" depends="core-tests" />
<target name="all" depends="deploy-to-examples" />
<target name="zips-site">
<mkdir dir="target"/>
<zip destfile="target/vraptor-3.0.0-site-2.zip">
<fileset dir="vraptor-site/src/content/"/>
</zip>
</target>
<target name="zips-vraptor">
<mkdir dir="target"/>
<zip destfile="target/vraptor-3.0.0-beta-2.zip">
<zipfileset dir="vraptor-site/src/content/htmlflat/documentacao" prefix="docs"/>
<fileset file="vraptor-core/target/vraptor3-3.0.0-SNAPSHOT.jar"/>
<zipfileset dir="vraptor-core/src" prefix="src"/>
<zipfileset dir="vraptor-core/lib" prefix="lib"/>
</zip>
</target>
<target name="zips-blank-project">
<mkdir dir="target"/>
<zip destfile="target/vraptor-3.0.0-blank-project-beta2.zip">
<fileset dir="vraptor-blank-project/" excludes="*.zip"/>
</zip>
</target>
<target name="zips" depends="zips-vraptor,zips-blank-project,zips-site"/>
</project>