blob: 3013ae3552ae826914ff026d4b07676715412c26 [file] [log] [blame]
Xiaoying Gu2d441e62009-10-21 07:09:24 +00001<!-- ===================================================================== -->
2<!-- Custom targets called from a project's generated build.xml -->
3<!-- Set customBuildCallbacks=<path/to/this/file> in your build.properties.-->
4<!-- ===================================================================== -->
5<project name="Build specific targets and properties" default="noDefault">
6
7 <!-- ===================================================================== -->
8 <!-- Default target -->
9 <!-- ===================================================================== -->
10 <target name="noDefault">
11 <echo message="This file must be called with explicit targets" />
12 </target>
13 <!-- ===================================================================== -->
14 <!-- Steps to do before the target build.jars -->
15 <!-- Available parameters : -->
16 <!-- build.result.folder - folder to contain the build results -->
17 <!-- ===================================================================== -->
18 <target name="pre.viewer.jar">
19
20 <property name="basedir" location="." />
21 <property name="birt.dir" value="birt" />
22 <property name="build.result.folder" value="${basedir}" />
23
24 <mkdir dir="${build.result.folder}/viewerservletssrc"/>
25 <copy todir="${build.result.folder}/viewerservletssrc" overwrite="true">
26 <fileset dir="${birt.dir}/WEB-INF/classes/" includes="**/*.java" />
27 </copy>
28 </target>
29
30 <target name="pre.build.jars">
31 <!--Execute native2ascii for *.msg files-->
32 <property name="dir.src" value="src"/>
33
34 <native2ascii encoding="Cp1252"
35 src="."
36 dest="."
37 ext=".properties"
38 includes="**/*_de_DE.msg, **/*_fr_FR.msg, **/*_es_ES.msg"/>
39 <native2ascii encoding="GBK"
40 src="."
41 dest="."
42 ext=".properties"
43 includes="**/*_zh_CN.msg"/>
44 <native2ascii encoding="SJIS"
45 src="."
46 dest="."
47 ext=".properties"
48 includes="**/*_ja_JP.msg"/>
49 <native2ascii encoding="MS949"
50 src="."
51 dest="."
52 ext=".properties"
53 includes="**/*_ko_KR.msg"/>
54
55 </target>
56
57 <!-- ===================================================================== -->
58 <!-- Steps to do after the target build.jars -->
59 <!-- Available parameters : -->
60 <!-- build.result.folder - folder to contain the build results -->
61 <!-- ===================================================================== -->
62 <target name="post.build.jars">
63
64 </target>
65
66 <!-- ===================================================================== -->
67 <!-- Steps to do before the target build.sources -->
68 <!-- Available parameters : -->
69 <!-- build.result.folder - folder to contain the build results -->
70 <!-- ===================================================================== -->
71 <target name="pre.build.sources">
72
73 </target>
74
75 <!-- ===================================================================== -->
76 <!-- Steps to do after the target build.sources -->
77 <!-- Available parameters : -->
78 <!-- build.result.folder - folder to contain the build results -->
79 <!-- ===================================================================== -->
80 <target name="post.build.sources">
81
82 </target>
83
84 <!-- ===================================================================== -->
85 <!-- Steps to do before the compilation target <name> -->
86 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
87 <!-- Available parameters : -->
88 <!-- source.foldern : n = 1 ... N, the source folders -->
89 <!-- target.folder : where the results of the compilation go -->
90 <!-- <name>.classpath : name = name of the compilation target. A -->
91 <!-- reference to the classpath structure. -->
92 <!-- ===================================================================== -->
93 <target name="pre.name">
94 </target>
95
96 <target name="pre.@dot">
97 </target>
98
99 <!-- ===================================================================== -->
100 <!-- Steps to do during the compilation target <name>, after the compile -->
101 <!-- but before jaring. Substitute "name" with the name of the compilation-->
102 <!-- target, eg @dot -->
103 <!-- Available parameters : -->
104 <!-- source.foldern : n = 1 ... N, the source folders -->
105 <!-- target.folder : where the results of the compilation go -->
106 <!-- <name>.classpath : name = name of the compilation target. A -->
107 <!-- reference to the classpath structure. -->
108 <!-- ===================================================================== -->
109 <target name="post.compile.name">
110 </target>
111
112 <target name="post.compile.@dot">
113 </target>
114
115 <!-- ===================================================================== -->
116 <!-- Steps to do after the compilation target <name> -->
117 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
118 <!-- Available parameters : -->
119 <!-- jar.location - the location of the compilation results -->
120 <!-- <name>.classpath : name = name of the compilation target. A -->
121 <!-- reference to the classpath structure. -->
122 <!-- ===================================================================== -->
123 <target name="post.name">
124 </target>
125
126 <target name="post.@dot">
127 </target>
128
129 <!-- ===================================================================== -->
130 <!-- Steps to do before the target gather.bin.parts -->
131 <!-- Available parameters : -->
132 <!-- build.result.folder - folder containing the build results -->
133 <!-- target.folder - destination folder -->
134 <!-- ===================================================================== -->
135 <target name="pre.gather.bin.parts">
136
137
138 </target>
139
140 <!-- ===================================================================== -->
141 <!-- Steps to do after the target gather.bin.parts -->
142 <!-- Available parameters : -->
143 <!-- build.result.folder - folder containing the build results -->
144 <!-- target.folder - destination folder -->
145 <!-- ===================================================================== -->
146 <target name="post.gather.bin.parts">
147 </target>
148
149 <!-- ===================================================================== -->
150 <!-- Steps to do before the target gather.sources -->
151 <!-- Available parameters : -->
152 <!-- destination.temp.folder - destination folder -->
153 <!-- ===================================================================== -->
154 <target name="pre.gather.sources">
155 </target>
156
157 <!-- ===================================================================== -->
158 <!-- Steps to do after the target gather.sources -->
159 <!-- Available parameters : -->
160 <!-- destination.temp.folder - destination folder -->
161 <!-- ===================================================================== -->
162 <target name="post.gather.sources">
163 </target>
164
165 <!-- ===================================================================== -->
166 <!-- Steps to do before the target gather.logs -->
167 <!-- Available parameters : -->
168 <!-- destination.temp.folder - destination folder -->
169 <!-- ===================================================================== -->
170 <target name="pre.gather.logs">
171 </target>
172
173 <!-- ===================================================================== -->
174 <!-- Steps to do after the target gather.logs -->
175 <!-- Available parameters : -->
176 <!-- destination.temp.folder - destination folder -->
177 <!-- ===================================================================== -->
178 <target name="post.gather.logs">
179 </target>
180
181 <!-- ===================================================================== -->
182 <!-- Steps to do before the target clean -->
183 <!-- Available parameters : -->
184 <!-- destination.temp.folder - destination folder -->
185 <!-- ===================================================================== -->
186 <target name="pre.clean">
187 </target>
188
189 <!-- ===================================================================== -->
190 <!-- Steps to do after the target clean -->
191 <!-- Available parameters : -->
192 <!-- plugin.destination - final destination of the build -->
193 <!-- build.result.folder - results of the compilation -->
194 <!-- temp.folder - temporary folder -->
195 <!-- ===================================================================== -->
196 <target name="post.clean">
197 </target>
198</project>