forked from caelum/vraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
96 lines (80 loc) · 3.23 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
VRaptor 3 full build
====================================================================== -->
<project name="VRaptor 3" default="all">
<description>VRaptor 3 Root Buildfile</description>
<property file="vraptor-core/build.properties" />
<property name="vraptor.version" value="${version}" />
<target name="clean" description="delete target directory">
<delete dir="target" />
</target>
<target name="core-tests" description="core 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">
<ant dir="vraptor-core" target="artifacts"/>
<ant dir="vraptor-example-compatibility" target="update-jars"/>
<ant dir="vraptor-blank-project" target="update-jars"/>
<ant dir="vraptor-plugin-gae" target="artifacts"/>
<ant dir="vraptor-blank-project-gae" target="update-jars"/>
<ant dir="vraptor-mydvds" target="update-jars"/>
</target>
<target name="test" depends="core-tests, deploy-to-examples">
</target>
<target name="all" depends="test" />
<target name="zips-site">
<ant dir="vraptor-site" target="assembly"/>
<mkdir dir="target"/>
<move file="vraptor-site/site.war" tofile="target/vraptor-site-${vraptor.version}.war" />
</target>
<target name="zips-vraptor" depends="zips-site">
<mkdir dir="target"/>
<move file="vraptor-core/target/vraptor-${vraptor.version}.jar" tofile="target/vraptor-${vraptor.version}.jar" />
<zip destfile="target/vraptor-${vraptor.version}.zip">
<zipfileset dir="vraptor-site/src/content/documentacao" prefix="docs"/>
<zipfileset dir="vraptor-site/src/content/javadoc" prefix="javadoc"/>
<fileset file="target/vraptor-${vraptor.version}.jar" />
<zipfileset dir="vraptor-core/src" prefix="src"/>
<zipfileset dir="vraptor-core/lib" prefix="lib"/>
<zipfileset file="LICENSE" />
</zip>
</target>
<target name="zips-blank-project">
<mkdir dir="target"/>
<zip destfile="target/vraptor-blank-project-${vraptor.version}.zip">
<fileset dir="vraptor-blank-project/" excludes="*.zip">
<exclude name="build.xml"/>
</fileset>
</zip>
</target>
<target name="zips-blank-project-gae">
<mkdir dir="target"/>
<zip destfile="target/vraptor-blank-project-gae-${vraptor.version}.zip">
<fileset dir="vraptor-blank-project-gae/" excludes="*.zip">
<exclude name="build.xml"/>
<exclude name="**/*.zip"/>
<exclude name="lib/**/*"/>
</fileset>
</zip>
</target>
<target name="zips-mydvds">
<ant dir="vraptor-mydvds" target="clean" />
<mkdir dir="target" />
<zip destfile="target/vraptor-mydvds-${vraptor.version}.zip">
<fileset dir="vraptor-mydvds/">
<exclude name="build.xml"/>
<exclude name="**/*.zip"/>
<exclude name="**/*.war"/>
<exclude name="bin/**/*"/>
</fileset>
</zip>
</target>
<target name="zips" depends="clean,deploy-to-examples,zips-vraptor,zips-blank-project,zips-site,zips-mydvds,zips-blank-project-gae"/>
</project>