forked from pentaho/pentaho-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_build.xml
102 lines (85 loc) · 3.7 KB
/
dev_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
<project name="pentaho-platform-dev" basedir="." default="help">
<description>
</description>
<!-- This file inherits from the open assembly project -->
<property name="assembly.dir" location="assembly" />
<property file="dev_override.properties" />
<property file="dev_build.properties" />
<property file="${assembly.dir}/override.properties" />
<property file="${assembly.dir}/assembly.properties" />
<property name="ivy.use.symlinks" value="false" description="Flag indicating if Ivy should create symlinks when retrieving artifacts."/>
<!--Import Open Assembly ant file -->
<import file="${assembly.dir}/assembly.xml" />
<!-- These are the projects that will be compiled to class files and placed in WEB-INF/classes -->
<property name="dev-project.list" value="api,core,build-utils,repository,scheduler,extensions,user-console" />
<target name="dev-rebuild"
description="Creates a Pentaho-ready Tomcat instance."
depends="clean-all, dev-update" />
<target name="dev-rebuild-merged-server"
description="Creates a Pentaho (merged) Server ready Tomcat instance."
depends="clean-all, dev-update-merged-server" />
<target name="dev-update"
description="Copy changed artifacts into Tomcat instance."
depends="install-antcontrib">
<for list="${dev-project.list}" param="module" trim="true">
<sequential>
<ant antfile="build.xml" dir="@{module}" inheritall="false" >
<property name="ivy.use.symlinks" value="false"/>
<target name="resolve" />
<target name="compile" />
<target name="publish-local" />
</ant>
</sequential>
</for>
<ant antfile="assembly.xml" dir="${assembly.dir}" inheritall="false">
<target name="clean-all" />
<target name="resolve" />
<target name="assemble" />
</ant>
</target>
<target name="dev-update-merged-server"
description="Copy changed artifacts into Tomcat instance."
depends="install-antcontrib">
<for list="${dev-project.list}" param="module" trim="true">
<sequential>
<ant antfile="build.xml" dir="@{module}" inheritall="false" >
<property name="ivy.use.symlinks" value="false"/>
<target name="resolve" />
<target name="compile" />
<target name="publish-local" />
</ant>
</sequential>
</for>
<ant antfile="assembly.xml" dir="${assembly.dir}" inheritall="false">
<target name="clean-all" />
<target name="resolve" />
<target name="assemble-merged-server" />
</ant>
</target>
<target name="dev-resolve"
description="Call resolve on all modules to easily populate the lib-directories of all sub-modules."
depends="install-antcontrib">
<for list="${dev-project.list}" param="module" trim="true">
<sequential>
<ant antfile="build.xml" dir="@{module}" inheritall="false" >
<property name="ivy.use.symlinks" value="false"/>
<target name="resolve" />
</ant>
</sequential>
</for>
<ant antfile="assembly.xml" dir="${assembly.dir}" inheritall="false">
<target name="resolve" />
</ant>
</target>
<target name="clean-all" depends="install-antcontrib">
<for list="${dev-project.list}" param="module" trim="true">
<sequential>
<ant antfile="build.xml" dir="@{module}" target="clean-all" inheritall="false" />
</sequential>
</for>
<ant antfile="assembly.xml" dir="${assembly.dir}" target="clean-all" inheritall="false" />
</target>
<target name="help" description="Displays help information.">
<echo level="info">Run 'ant -f dev_build.xml -projecthelp' for more information.</echo>
</target>
</project>