Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 919 lines (812 sloc) 37.858 kb
65ce347 Add Ant scripts
gkbrown authored
1 <?xml version="1.0" encoding="UTF-8"?>
62d4165 Added license headers
Todd Volkert authored
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to you under the Apache License,
7 Version 2.0 (the "License"); you may not use this file except in
8 compliance with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
19 <project name="pivot" default="environment-info"
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
20 xmlns:artifact="antlib:org.apache.maven.artifact.ant"
21 >
22 <!-- Classpath-related properties -->
23 <property environment="env"/>
24 <path id="classpath.env">
25 <pathelement location="${env.CLASSPATH}"/>
26 </path>
ebb39c4 Updated build file to work with JDK1.7
Todd Volkert authored
27 <path id="classpath.javalib">
2e6f7b7 PIVOT-912: Fix build errors cause by duplicate JSObject classes in both
Roger Lee Whitcomb authored
28 <fileset dir="${java.home}/lib" includes="**/*.jar" excludes="**/jfxrt.jar"/>
ebb39c4 Updated build file to work with JDK1.7
Todd Volkert authored
29 </path>
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
30 <property name="classpath_env" refid="classpath.env"/>
31 <property name="classpath_javalib" refid="classpath.javalib"/>
32 <path id="classpath.general">
33 <pathelement path="${classpath_env}/"/>
34 <pathelement path="${classpath_javalib}"/>
35 </path>
ebb39c4 Updated build file to work with JDK1.7
Todd Volkert authored
36
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
37 <!-- Properties that affect the directories that are created as part of the build -->
ea42472 PIVOT-383
Sandro Martini authored
38 <property name="folder.src" value="src"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
39 <property name="folder.bin" value="ant-bin"/>
815fe53 Updated build.xml file to index jar files and to fail gracefully if the ...
Todd Volkert authored
40 <property name="folder.dist" value="dist"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
41 <property name="folder.doc" value="doc"/>
815fe53 Updated build.xml file to index jar files and to fail gracefully if the ...
Todd Volkert authored
42 <property name="folder.install" value="install"/>
43 <property name="folder.lib" value="lib"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
44 <property name="folder.deploy" value="deploy"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
45
46 <!-- Keystore properties -->
47 <property name="keystore.location" value="etc/pivot.keystore"/>
48 <property name="keystore.alias" value="pivot"/>
49 <property name="keystore.passwd" value="apache"/>
025a00b Add version number to JAR files; add package target to generate release ...
gkbrown authored
50
fa733eb Updated BUILD file to reflect JUnit 4 dependency, updated build.xml file...
Todd Volkert authored
51 <!-- Dynamic properties -->
52 <property file="build.properties"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
53 <property name="release" value="apache-${ant.project.name}-${version}"/>
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
54 <!-- Compiler properties and Test properties have been moved in build.properties -->
815fe53 Updated build.xml file to index jar files and to fail gracefully if the ...
Todd Volkert authored
55
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
56 <!-- Jar file names -->
57 <property name="jar.charts" value="${ant.project.name}-charts-${version}.jar" />
58 <property name="jar.core" value="${ant.project.name}-core-${version}.jar" />
59 <property name="jar.demos" value="${ant.project.name}-demos-${version}.jar" />
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
60 <property name="jar.demos-server" value="${ant.project.name}-demos-server-${version}.jar" />
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
61 <property name="jar.tutorials" value="${ant.project.name}-tutorials-${version}.jar" />
f2fe988 Add tutorials-server project; stub out ExpenseServlet for QueryServlet t...
Gregory K. Brown authored
62 <property name="jar.tutorials-server" value="${ant.project.name}-tutorials-server-${version}.jar" />
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
63 <property name="jar.web" value="${ant.project.name}-web-${version}.jar" />
64 <property name="jar.web-server" value="${ant.project.name}-web-server-${version}.jar" />
65 <property name="jar.wtk" value="${ant.project.name}-wtk-${version}.jar" />
66 <property name="jar.wtk-terra" value="${ant.project.name}-wtk-terra-${version}.jar" />
96a25d2 add package-tests to generate the jar for the tests subproject (usually ...
Sandro Martini authored
67 <property name="jar.tests" value="${ant.project.name}-tests-${version}.jar" />
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
68
ea42472 PIVOT-383
Sandro Martini authored
69 <!-- Maven Sources Jar file names -->
70 <property name="jar.charts.sources" value="${ant.project.name}-charts-${version}-sources.jar" />
71 <property name="jar.core.sources" value="${ant.project.name}-core-${version}-sources.jar" />
72 <property name="jar.web.sources" value="${ant.project.name}-web-${version}-sources.jar" />
f5a0788 Add Web Server project source to Maven targets.
Gregory K. Brown authored
73 <property name="jar.web-server.sources" value="${ant.project.name}-web-server-${version}-sources.jar" />
ea42472 PIVOT-383
Sandro Martini authored
74 <property name="jar.wtk.sources" value="${ant.project.name}-wtk-${version}-sources.jar" />
75 <property name="jar.wtk-terra.sources" value="${ant.project.name}-wtk-terra-${version}-sources.jar" />
76
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
77 <!-- Maven Javadoc Jar file names -->
78 <property name="jar.charts.javadoc" value="${ant.project.name}-charts-${version}-javadoc.jar" />
79 <property name="jar.core.javadoc" value="${ant.project.name}-core-${version}-javadoc.jar" />
80 <property name="jar.web.javadoc" value="${ant.project.name}-web-${version}-javadoc.jar" />
81 <property name="jar.web-server.javadoc" value="${ant.project.name}-web-server-${version}-javadoc.jar" />
82 <property name="jar.wtk.javadoc" value="${ant.project.name}-wtk-${version}-javadoc.jar" />
83 <property name="jar.wtk-terra.javadoc" value="${ant.project.name}-wtk-terra-${version}-javadoc.jar" />
84
85 <!-- Base package, required by Maven Javadoc -->
86 <property name="src.package.base" value="org.apache.pivot" />
87
2551ebc PIVOT-137 :: Add Ant version check in build file
Todd Volkert authored
88 <!-- Ant version check -->
156a37f Minor release-oriented updates
Todd Volkert authored
89 <fail>
2551ebc PIVOT-137 :: Add Ant version check in build file
Todd Volkert authored
90 <condition>
91 <not>
c1da481 PIVOT-895, update requirements in build files and in readme, and cleanup...
Sandro Martini authored
92 <antversion atleast="1.8.0"/>
2551ebc PIVOT-137 :: Add Ant version check in build file
Todd Volkert authored
93 </not>
94 </condition>
156a37f Minor release-oriented updates
Todd Volkert authored
95 <![CDATA[
96 Error:
97
c1da481 PIVOT-895, update requirements in build files and in readme, and cleanup...
Sandro Martini authored
98 Building Pivot requires Apache Ant 1.8 or greater. Please see the BUILD
156a37f Minor release-oriented updates
Todd Volkert authored
99 file for more information.
100 ]]>
2551ebc PIVOT-137 :: Add Ant version check in build file
Todd Volkert authored
101 </fail>
102
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
103 <!-- Compile macro -->
104 <macrodef name="compile">
105 <attribute name="project"/>
938775c Added <project-lib> optional element to <compile> macro in Ant build fil...
Todd Volkert authored
106 <element name="project-lib" implicit="true" optional="true"/>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
107
108 <sequential>
109 <!-- JDK version check -->
156a37f Minor release-oriented updates
Todd Volkert authored
110 <fail>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
111 <condition>
112 <not>
113 <or>
114 <equals arg1="${ant.java.version}" arg2="1.7"/>
115 </or>
116 </not>
117 </condition>
156a37f Minor release-oriented updates
Todd Volkert authored
118 <![CDATA[
119 Error:
120
a919206 PIVOT-895: Update requirements to JDK 1.7 for "trunk" (version 2.1 and l...
Roger Lee Whitcomb authored
121 Building Pivot requires JDK 1.7 or greater. Please see the
156a37f Minor release-oriented updates
Todd Volkert authored
122 BUILD file for more information.
123 ]]>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
124 </fail>
125
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
126 <!-- JUnit check -->
156a37f Minor release-oriented updates
Todd Volkert authored
127 <fail>
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
128 <condition>
129 <not>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
130 <available classname="org.junit.Test">
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
131 <classpath refid="classpath.general" />
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
132 </available>
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
133 </not>
134 </condition>
156a37f Minor release-oriented updates
Todd Volkert authored
135 <![CDATA[
136 Error:
137
138 JUnit 4 was not found on your classpath. Please see the BUILD
139 file for more information.
140 ]]>
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
141 </fail>
142
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
143 <mkdir dir="@{project}/${folder.bin}"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
144 <javac destDir="@{project}/${folder.bin}"
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
145 includejavaruntime="no"
146 includeantruntime="no"
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
147 deprecation="${compiler.deprecation}"
148 debug="${compiler.debug}"
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
149 source="${compiler.source}"
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
150 target="${compiler.target}"
151 encoding="${compiler.encoding}"
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
152 failonerror="true"
153 >
8fa9eaf build.xml clean-up
Todd Volkert authored
154 <src>
155 <dirset dir="@{project}">
156 <include name="src"/>
157 <include name="test"/>
158 </dirset>
159 </src>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
160 <compilerarg line="${compiler.arg}"/>
161 <classpath>
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
162 <path refid="classpath.general"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
163 <dirset dir="${basedir}" includes="**/${folder.bin}"/>
164 <fileset dir="@{project}" includes="lib/**/*.jar"/>
938775c Added <project-lib> optional element to <compile> macro in Ant build fil...
Todd Volkert authored
165 <project-lib/>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
166 </classpath>
167 </javac>
168 </sequential>
169 </macrodef>
170
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
171 <!-- Test macro -->
172 <macrodef name="test">
173 <attribute name="project"/>
174
175 <sequential>
8fa9eaf build.xml clean-up
Todd Volkert authored
176 <echo message="@{project}: Executing test cases..."/>
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
177
178 <condition property="test.formatter">
4bed778 Removed auto-executing of junit tests for WTK project since there aren't...
Todd Volkert authored
179 <istrue value="${test.verbose}"/>
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
180 </condition>
181
182 <junit fork="true">
183 <classpath>
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
184 <path refid="classpath.general"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
185 <dirset dir="${basedir}" includes="**/${folder.bin}"/>
186 <dirset dir="@{project}" includes="test"/>
187 <fileset dir="@{project}" includes="lib/**/*.jar"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
188 </classpath>
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
189
4bed778 Removed auto-executing of junit tests for WTK project since there aren't...
Todd Volkert authored
190 <formatter type="brief" usefile="false" if="test.formatter"/>
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
191
192 <batchtest>
9504343 add all projects under the test ant task (even if most of them currently...
Sandro Martini authored
193 <fileset dir="@{project}/test" includes="**/*Test.java"/>
9ee6cff PIVOT-131 :: Integrate JUnit test into the build
Todd Volkert authored
194 </batchtest>
195 </junit>
196 </sequential>
197 </macrodef>
198
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
199 <!-- Package macro -->
200 <macrodef name="package">
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
201 <attribute name="project"/>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
202 <attribute name="jarFile"/>
203 <attribute name="title"/>
204
205 <sequential>
206 <mkdir dir="${folder.lib}"/>
207 <jar destfile="${folder.lib}/@{jarFile}" index="${compiler.indexJars}">
ee9c147 Clean up collection arg checks.
Gregory K. Brown authored
208 <metainf dir="${basedir}">
209 <include name="LICENSE"/>
210 <include name="NOTICE"/>
211 <include name="README"/>
212 </metainf>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
213 <manifest>
214 <attribute name="Sealed" value="true"/>
215 <attribute name="Implementation-Vendor-Id" value="org.apache"/>
216 <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
2551ebc PIVOT-137 :: Add Ant version check in build file
Todd Volkert authored
217 <attribute name="Implementation-Title" value="Apache Pivot @{title}"/>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
218 <attribute name="Implementation-Version" value="${version}"/>
2ae0ca3 Update the build.xml to use the ${permissions} setting from the
Roger Lee Whitcomb authored
219 <attribute name="Permissions" value="${permissions}"/>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
220 </manifest>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
221 <fileset dir="@{project}/${folder.bin}">
222 <exclude name="**/test/**"/>
223 </fileset>
224 <fileset dir="@{project}/src">
225 <exclude name="**/*.java"/>
226 <exclude name="**/package.html"/>
227 </fileset>
1156c08 Build file changes: removed "compiler.sun" property (it's no longer used...
Todd Volkert authored
228 </jar>
229 </sequential>
230 </macrodef>
231
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
232 <!-- Package-maven-source-or-javadoc-jar macro -->
233 <macrodef name="package-maven-source-or-javadoc-jar">
ea42472 PIVOT-383
Sandro Martini authored
234 <attribute name="project"/>
235 <attribute name="jarFile"/>
236 <attribute name="title"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
237 <attribute name="jarFileset"/>
ea42472 PIVOT-383
Sandro Martini authored
238
239 <sequential>
240 <mkdir dir="${folder.lib}"/>
241 <jar destfile="${folder.lib}/@{jarFile}" index="${compiler.indexJars}">
242 <metainf dir="${basedir}">
243 <include name="LICENSE"/>
244 <include name="NOTICE"/>
245 <include name="README"/>
246 </metainf>
247 <manifest>
248 <attribute name="Sealed" value="true"/>
249 <attribute name="Implementation-Vendor-Id" value="org.apache"/>
250 <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
251 <attribute name="Implementation-Title" value="Apache Pivot @{title}"/>
252 <attribute name="Implementation-Version" value="${version}"/>
253 </manifest>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
254 <fileset dir="@{jarFileset}">
ea42472 PIVOT-383
Sandro Martini authored
255 <include name="LICENSE"/>
256 <include name="NOTICE"/>
257 <include name="README"/>
258 <include name="RELEASE-NOTES"/>
259 <include name="**/*.java"/>
260 <include name="**/*.html"/>
261 <include name="**/*.jsp"/>
262 <include name="**/*.txt"/>
263 <include name="**/*.properties"/>
264 <include name="**/*.xml"/>
7ac94c7 Remove references to *.wtkx in build.xml.
Gregory K. Brown authored
265 <include name="**/*.bxml"/>
ea42472 PIVOT-383
Sandro Martini authored
266 <include name="**/*.json"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
267 <include name="**/*.jpg"/>
268 <include name="**/*.png"/>
269 <include name="**/*.svg"/>
ea42472 PIVOT-383
Sandro Martini authored
270 <exclude name="**/*.class"/>
271 </fileset>
272 </jar>
273 </sequential>
274 </macrodef>
275
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
276 <!-- Package-sources macro -->
277 <macrodef name="package-sources">
278 <attribute name="project"/>
279 <attribute name="jarFile"/>
280 <attribute name="title"/>
281
282 <sequential>
283 <mkdir dir="${folder.lib}"/>
284 <package-maven-source-or-javadoc-jar
285 project="@{project}"
286 jarFile="@{jarFile}"
287 title="@{title}"
288 jarFileset="@{project}/src"
289 />
290 </sequential>
291 </macrodef>
292
293 <!-- Package-javadoc macro -->
294 <macrodef name="package-javadoc">
295 <attribute name="project"/>
296 <attribute name="jarFile"/>
297 <attribute name="title"/>
298 <attribute name="package"/>
299
300 <sequential>
301 <mkdir dir="${folder.lib}"/>
302 <delete file="${folder.lib}/@{jarFile}" failonerror="false"/>
303 <delete dir="${folder.doc}/@{jarFile}" failonerror="false"/>
304
305 <javadoc packagenames="@{package}"
306 destdir="${folder.doc}/@{jarFile}"
307 author="true" version="true" use="true"
feb0b8b merge some fixes from 2.0.x
Sandro Martini authored
308 package="true"
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
309 classpath="${java.class.path}">
310 <classpath>
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
311 <path refid="classpath.general"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
312 <fileset dir="web-server/lib" includes="**/*.jar"/>
313 <fileset dir="wtk/lib" includes="**/*.jar"/>
314
315 <dirset dir="@{project}/../">
316 <include name="charts/${folder.bin}"/>
317 <include name="core/${folder.bin}"/>
318 <include name="web/${folder.bin}"/>
319 <include name="web-server/${folder.bin}"/>
320 <include name="wtk/${folder.bin}"/>
321 <include name="wtk-terra/${folder.bin}"/>
322 </dirset>
323 </classpath>
324
325 <packageset dir="@{project}/src" includes="**/*"/>
326
c1da481 PIVOT-895, update requirements in build files and in readme, and cleanup...
Sandro Martini authored
327 <link href="http://download.oracle.com/javase/7/docs/api"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
328 <link href="http://download.oracle.com/javaee/1.4/api/"/>
329 </javadoc>
330
331 <package-maven-source-or-javadoc-jar
332 project="@{project}"
333 jarFile="@{jarFile}"
334 title="@{title}"
335 jarFileset="${folder.doc}/@{jarFile}"
336 />
337 </sequential>
338 </macrodef>
339
8fa9eaf build.xml clean-up
Todd Volkert authored
340 <!-- Clean macro -->
341 <macrodef name="clean">
342 <attribute name="project"/>
343
344 <sequential>
345 <delete includeemptydirs="true">
346 <fileset dir="@{project}">
347 <include name="${folder.bin}/**"/>
348 <include name="${folder.deploy}/**"/>
349 </fileset>
350 <fileset dir="${basedir}">
351 <include name="${folder.lib}/${ant.project.name}-@{project}-${version}.jar"/>
352 </fileset>
353 </delete>
354 </sequential>
355 </macrodef>
356
bba288f add environment-classpath target to display the classpath used
Sandro Martini authored
357
399d9d8 fix some typo
Sandro Martini authored
358 <!-- Return some environmental info -->
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
359 <target name="environment-info" description="Gives some info on Environment and Compiler flags"
360 depends=""
361 >
362 <echo message=""/>
363 <echo message="Compile environment for ${ant.project.name}-${version} is:"/>
364 <echo message="show deprecation ${compiler.deprecation}"/>
365 <echo message="debug ${compiler.debug}"/>
366 <echo message="source ${compiler.source}, target ${compiler.target}"/>
367 <echo message="encoding ${compiler.encoding}"/>
368 <echo message="indexJars ${compiler.indexJars}"/>
369 <echo message="arg ${compiler.arg}"/>
370 <echo message=""/>
d3a098c add some detailed env info in build.xml files
Sandro Martini authored
371 <echo message="OS: ${os.name}, version ${os.version}, architecture ${os.arch}"/>
372 <echo message=""/>
373 <echo message="Java: home at '${java.home}', version ${java.version}, vendor ${java.vendor}"/>
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
374 <echo message=""/>
375 </target>
376
bba288f add environment-classpath target to display the classpath used
Sandro Martini authored
377 <!-- Display the classpath -->
378 <target name="environment-classpath" description="Gives some info on Environment and classpath"
379 depends="environment-info"
380 >
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
381 <echo message="Classpath from env vars: ${classpath_env}"/>
382 <echo message="Classpath from Java lib folder: ${classpath_javalib}"/>
bba288f add environment-classpath target to display the classpath used
Sandro Martini authored
383 </target>
384
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
385
386 <!-- Compile all classes (tests included) -->
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
387 <target name="compile" description="Compiles all projects"
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
388 depends="environment-info, charts, core, demos, demos-server, tests, tutorials, tutorials-server, web, web-server, wtk, wtk-terra"/>
389
3899d86 Updated the build file's "dist" target to produce one archive that conta...
Todd Volkert authored
390
8fa9eaf build.xml clean-up
Todd Volkert authored
391 <!-- Package JAR files -->
392 <target name="package" description="Packages all projects into JAR files" depends="compile">
393 <package project="charts" jarFile="${jar.charts}" title="Charts"/>
394 <package project="core" jarFile="${jar.core}" title="Core"/>
395 <package project="demos" jarFile="${jar.demos}" title="Demos"/>
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
396 <package project="demos-server" jarFile="${jar.demos-server}" title="Demos Server"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
397 <package project="tutorials" jarFile="${jar.tutorials}" title="Tutorials"/>
6347f3a Complete QueryServlet tutorial.
Gregory K. Brown authored
398 <package project="tutorials-server" jarFile="${jar.tutorials-server}" title="Tutorials Server"/>
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
399 <package project="web" jarFile="${jar.web}" title="Web"/>
400 <package project="web-server" jarFile="${jar.web-server}" title="Web Server"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
401 <package project="wtk" jarFile="${jar.wtk}" title="WTK"/>
402 <package project="wtk-terra" jarFile="${jar.wtk-terra}" title="WTK Terra Theme Provider"/>
403 </target>
db7bb9f Updated build file to separate compilation from JAR file creation. The ...
Todd Volkert authored
404
96a25d2 add package-tests to generate the jar for the tests subproject (usually ...
Sandro Martini authored
405 <!-- Package JAR file for tests, note that this could be needed only for interactive GUI Tests -->
406 <target name="package-tests" description="Packages only tests project into JAR files" depends="compile">
407 <package project="tests" jarFile="${jar.tests}" title="Tests"/>
408 </target>
409
ea42472 PIVOT-383
Sandro Martini authored
410 <!-- Package Maven Sources JAR files -->
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
411 <target name="package-sources" description="Packages any project sources into a JAR file" depends="trim-whitespace, package">
ea42472 PIVOT-383
Sandro Martini authored
412 <package-sources project="charts" jarFile="${jar.charts.sources}" title="Charts"/>
413 <package-sources project="core" jarFile="${jar.core.sources}" title="Core"/>
f5a0788 Add Web Server project source to Maven targets.
Gregory K. Brown authored
414 <package-sources project="web" jarFile="${jar.web.sources}" title="Web"/>
415 <package-sources project="web-server" jarFile="${jar.web-server.sources}" title="Web Server"/>
ea42472 PIVOT-383
Sandro Martini authored
416 <package-sources project="wtk" jarFile="${jar.wtk.sources}" title="WTK"/>
417 <package-sources project="wtk-terra" jarFile="${jar.wtk-terra.sources}" title="WTK Terra Theme Provider"/>
418 </target>
419
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
420 <!-- Package Maven Javadoc JAR files -->
421 <target name="package-javadoc" description="Packages any project Javadoc into a JAR file" depends="package-sources">
422 <delete dir="${folder.doc}"/>
423 <package-javadoc project="charts" jarFile="${jar.charts.javadoc}" title="Charts" package="${src.package.base}.charts.*"/>
424 <package-javadoc project="core" jarFile="${jar.core.javadoc}" title="Core" package="${src.package.base}.*"/>
425 <package-javadoc project="web" jarFile="${jar.web.javadoc}" title="Web" package="${src.package.base}.web.*"/>
426 <package-javadoc project="web-server" jarFile="${jar.web-server.javadoc}" title="Web Server" package="${src.package.base}.web.server.*"/>
427 <package-javadoc project="wtk" jarFile="${jar.wtk.javadoc}" title="WTK" package="${src.package.base}.wtk.*"/>
428 <package-javadoc project="wtk-terra" jarFile="${jar.wtk-terra.javadoc}" title="WTK Terra Theme Provider" package="${src.package.base}.wtk.skin.terra.*"/>
429 <delete dir="${folder.doc}"/>
430 </target>
431
8fa9eaf build.xml clean-up
Todd Volkert authored
432 <!-- Run unit tests -->
433 <target name="test" description="Executes unit tests" depends="compile">
9504343 add all projects under the test ant task (even if most of them currently...
Sandro Martini authored
434 <test project="charts"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
435 <test project="core"/>
9504343 add all projects under the test ant task (even if most of them currently...
Sandro Martini authored
436 <test project="demos"/>
437 <test project="demos-server"/>
438 <test project="tests"/>
439 <test project="tutorials"/>
440 <test project="tutorials-server"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
441 <test project="web"/>
9504343 add all projects under the test ant task (even if most of them currently...
Sandro Martini authored
442 <test project="web-server"/>
3174482 Trim whitespace
Christopher James Bartlett authored
443 <test project="wtk"/>
444 <test project="wtk-terra"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
445 </target>
4bed778 Removed auto-executing of junit tests for WTK project since there aren't...
Todd Volkert authored
446
8fa9eaf build.xml clean-up
Todd Volkert authored
447 <!-- Clean -->
448 <target name="clean" description="Removes all build artifacts">
449 <clean project="charts"/>
450 <clean project="core"/>
451 <clean project="demos"/>
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
452 <clean project="demos-server"/>
08161be Added tests project to build script, removed empty folder
Todd Volkert authored
453 <clean project="tests"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
454 <clean project="tutorials"/>
f2fe988 Add tutorials-server project; stub out ExpenseServlet for QueryServlet t...
Gregory K. Brown authored
455 <clean project="tutorials-server"/>
8fa9eaf build.xml clean-up
Todd Volkert authored
456 <clean project="web"/>
457 <clean project="web-server"/>
458 <clean project="wtk"/>
459 <clean project="wtk-terra"/>
815fe53 Updated build.xml file to index jar files and to fail gracefully if the ...
Todd Volkert authored
460 <delete dir="${folder.dist}"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
461 <delete dir="${folder.doc}"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
462 <delete dir="${folder.install}"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
463 <delete dir="${folder.lib}"/>
3899d86 Updated the build file's "dist" target to produce one archive that conta...
Todd Volkert authored
464 </target>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
465
db7bb9f Updated build file to separate compilation from JAR file creation. The ...
Todd Volkert authored
466 <!-- Javadoc -->
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
467 <target name="doc" description="Generates API documentation in ${folder.doc}">
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
468 <javadoc packagenames="org.apache.pivot.*" destdir="${folder.doc}"
720efc7 Ensure that system CLASSPATH is included in <javadoc> build task.
Gregory K. Brown authored
469 author="true" version="true" use="true"
adf6d45 Added the "package" designation to the Javadoc generation in order
Roger Lee Whitcomb authored
470 package="true"
720efc7 Ensure that system CLASSPATH is included in <javadoc> build task.
Gregory K. Brown authored
471 classpath="${java.class.path}">
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
472 <classpath>
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
473 <path refid="classpath.general"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
474 <fileset dir="web-server/lib" includes="**/*.jar"/>
475 <fileset dir="wtk/lib" includes="**/*.jar"/>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
476 </classpath>
7555dd8 Added link to J2SE javadocs in the doc target
Todd Volkert authored
477
c7aa229 Removed JFreeChart provider and associated files - it's been moved to Go...
Todd Volkert authored
478 <packageset dir="charts/src" includes="**/*"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
479 <packageset dir="core/src" includes="**/*"/>
480 <packageset dir="web/src" includes="**/*"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
481 <packageset dir="web-server/src" includes="**/*"/>
6b39fa0 Updated build file so that the "package" target puts all JAR files in on...
Todd Volkert authored
482 <packageset dir="wtk/src" includes="**/*"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
483 <packageset dir="wtk-terra/src" includes="**/*"/>
7555dd8 Added link to J2SE javadocs in the doc target
Todd Volkert authored
484
c1da481 PIVOT-895, update requirements in build files and in readme, and cleanup...
Sandro Martini authored
485 <link href="http://download.oracle.com/javase/7/docs/api"/>
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
486 <link href="http://download.oracle.com/javaee/1.4/api/"/>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
487 </javadoc>
488 </target>
489
8fa9eaf build.xml clean-up
Todd Volkert authored
490 <!-- Individual compile targets resolve inter-project dependency -->
09167ae Add charts library to build/deploy process.
gkbrown authored
491 <target name="charts" depends="core, wtk">
8fa9eaf build.xml clean-up
Todd Volkert authored
492 <compile project="charts"/>
09167ae Add charts library to build/deploy process.
gkbrown authored
493 </target>
494
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
495 <target name="core">
8fa3752 PIVOT-864: Adding a "pluggable" file system browser to Pivot based on
Roger Lee Whitcomb authored
496 <compile project="core">
497 <fileset dir="wtk" includes="lib/**/*.jar"/>
498 </compile>
db7bb9f Updated build file to separate compilation from JAR file creation. The ...
Todd Volkert authored
499 </target>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
500
b09916c Update build.xml to include wtk-terra dependency for demos project (to b...
Gregory K. Brown authored
501 <target name="demos" depends="core, wtk, wtk-terra, web">
8fa9eaf build.xml clean-up
Todd Volkert authored
502 <compile project="demos"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
503 </target>
504
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
505 <target name="demos-server" depends="core, web, web-server">
506 <compile project="demos-server">
507 <fileset dir="web-server" includes="lib/**/*.jar"/>
508 </compile>
509 </target>
510
08161be Added tests project to build script, removed empty folder
Todd Volkert authored
511 <target name="tests" depends="core, web, wtk, wtk-terra">
8fa3752 PIVOT-864: Adding a "pluggable" file system browser to Pivot based on
Roger Lee Whitcomb authored
512 <compile project="tests">
513 <fileset dir="wtk" includes="lib/**/*.jar"/>
514 </compile>
08161be Added tests project to build script, removed empty folder
Todd Volkert authored
515 </target>
516
70e1b0d Remove tools project.
Gregory K. Brown authored
517 <target name="tutorials" depends="core, wtk, web">
8fa9eaf build.xml clean-up
Todd Volkert authored
518 <compile project="tutorials"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
519 </target>
520
f2fe988 Add tutorials-server project; stub out ExpenseServlet for QueryServlet t...
Gregory K. Brown authored
521 <target name="tutorials-server" depends="core, web, web-server">
522 <compile project="tutorials-server">
523 <fileset dir="web-server" includes="lib/**/*.jar"/>
524 </compile>
525 </target>
526
8254285 Added project dependencies
Todd Volkert authored
527 <target name="web" depends="core">
8fa9eaf build.xml clean-up
Todd Volkert authored
528 <compile project="web"/>
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
529 </target>
530
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
531 <target name="web-server" depends="core, web">
8fa9eaf build.xml clean-up
Todd Volkert authored
532 <compile project="web-server"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
533 </target>
534
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
535 <target name="wtk" depends="core">
156a37f Minor release-oriented updates
Todd Volkert authored
536 <fail>
19ddb09 Updated build.xml to fail descriptively if LiveConnect of JUnit is not f...
Todd Volkert authored
537 <condition>
538 <not>
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
539 <available classname="netscape.javascript.JSObject"
fc0d389 PIVOT-872, put classpath from environment (that now has to be defined wi...
Sandro Martini authored
540 classpathref="classpath.general"/>
19ddb09 Updated build.xml to fail descriptively if LiveConnect of JUnit is not f...
Todd Volkert authored
541 </not>
542 </condition>
156a37f Minor release-oriented updates
Todd Volkert authored
543 <![CDATA[
544 Error:
545
546 LiveConnect was not found on your classpath. Please see the BUILD
547 file for more information.
548 ]]>
19ddb09 Updated build.xml to fail descriptively if LiveConnect of JUnit is not f...
Todd Volkert authored
549 </fail>
550
8fa9eaf build.xml clean-up
Todd Volkert authored
551 <compile project="wtk"/>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
552 </target>
553
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
554 <target name="wtk-terra" depends="core, wtk">
8fa3752 PIVOT-864: Adding a "pluggable" file system browser to Pivot based on
Roger Lee Whitcomb authored
555 <compile project="wtk-terra">
556 <fileset dir="wtk" includes="lib/**/*.jar"/>
557 </compile>
1888044 Consolidate build scripts.
gkbrown@mac.com authored
558 </target>
559
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
560 <!-- Package source distribution -->
561 <target name="dist" description="Generates source release in ${folder.dist}"
5c06ec4 Made test packages get comppiled by default
Todd Volkert authored
562 depends="clean, trim-whitespace">
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
563 <mkdir dir="${folder.dist}/${release}-src"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
564
565 <!-- Copy the source files to the release folder -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
566 <copy todir="${folder.dist}/${release}-src">
567 <fileset dir="${basedir}">
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
568 <include name="**/*"/>
a4ecae9 Updated build file to produce a better "dist" hierarchy
Todd Volkert authored
569
d0710e1 Cross-port from 1.1 branch
Todd Volkert authored
570 <!-- Exclude hidden files and folders -->
571 <exclude name="**/.*/**"/>
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
572
573 <!-- Exclude folders containing compilation artifacts -->
574 <exclude name="**/${folder.bin}/**"/>
575 <exclude name="${folder.dist}/**"/>
576 <exclude name="${folder.doc}/**"/>
7bbbd7d Fixed issue with dist target
Todd Volkert authored
577 <exclude name="${folder.install}/**"/>
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
578 <exclude name="${folder.lib}/**"/>
a4ecae9 Updated build file to produce a better "dist" hierarchy
Todd Volkert authored
579 </fileset>
3899d86 Updated the build file's "dist" target to produce one archive that conta...
Todd Volkert authored
580 </copy>
581
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
582 <!-- Create .zip archive -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
583 <zip destfile="${folder.dist}/${release}-src.zip" level="9">
584 <fileset dir="${folder.dist}" includes="${release}-src/**"/>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
585 </zip>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
586 <checksum file="${folder.dist}/${release}-src.zip" algorithm="md5"/>
587 <checksum file="${folder.dist}/${release}-src.zip" algorithm="sha"/>
3899d86 Updated the build file's "dist" target to produce one archive that conta...
Todd Volkert authored
588
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
589 <!-- Create .tar.gz archive -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
590 <tar destfile="${folder.dist}/${release}-src.tar" longfile="gnu">
591 <fileset dir="${folder.dist}" includes="${release}-src/**"/>
ccba0a5 Update package target to adhere to Apache release guidelines.
Gregory K. Brown authored
592 </tar>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
593 <gzip src="${folder.dist}/${release}-src.tar"
594 destfile="${folder.dist}/${release}-src.tar.gz"/>
595 <delete file="${folder.dist}/${release}-src.tar"/>
596 <checksum file="${folder.dist}/${release}-src.tar.gz" algorithm="md5"/>
597 <checksum file="${folder.dist}/${release}-src.tar.gz" algorithm="sha"/>
41e9526 Dynamically load script classes in WTKXSerializer; update starter applic...
gkbrown@mac.com authored
598 </target>
130ad6d Add starter project to build.xml and source control.
gkbrown@mac.com authored
599
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
600 <!-- Package binary distribution -->
601 <target name="install" description="Generates binary release in ${folder.install}"
67c5912 PIVOT-159 :: Include demos and tutorials in binary distribution
Todd Volkert authored
602 depends="clean, package, doc, deploy">
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
603 <mkdir dir="${folder.install}/${release}/lib"/>
604 <mkdir dir="${folder.install}/${release}/doc"/>
605 <mkdir dir="${folder.install}/${release}/webapps"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
606
607 <!-- Copy base files to the install folder -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
608 <copy todir="${folder.install}/${release}">
609 <fileset dir="${basedir}">
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
610 <include name="LICENSE"/>
611 <include name="NOTICE"/>
612 <include name="README"/>
613 <include name="RELEASE-NOTES"/>
614 </fileset>
615 </copy>
616
617 <!-- Copy release binaries -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
618 <copy todir="${folder.install}/${release}/lib">
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
619 <fileset dir="${folder.lib}">
620 <include name="${jar.charts}"/>
621 <include name="${jar.core}"/>
622 <include name="${jar.web}"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
623 <include name="${jar.web-server}"/>
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
624 <include name="${jar.wtk}"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
625 <include name="${jar.wtk-terra}"/>
3fb1d2e PIVOT-144, PIVOT-150 :: Include version numbers in jar files, change to ...
Todd Volkert authored
626 </fileset>
627 </copy>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
628
629 <!-- Copy documentation -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
630 <copy todir="${folder.install}/${release}/doc">
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
631 <fileset dir="${folder.doc}"/>
632 </copy>
633
67c5912 PIVOT-159 :: Include demos and tutorials in binary distribution
Todd Volkert authored
634 <!-- Copy webapps -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
635 <copy todir="${folder.install}/${release}/webapps">
67c5912 PIVOT-159 :: Include demos and tutorials in binary distribution
Todd Volkert authored
636 <fileset dir="${folder.lib}">
21de06b Rename WARs to pivot-demos.war and pivot-tutorials.war.
Gregory K. Brown authored
637 <include name="${ant.project.name}-demos.war"/>
638 <include name="${ant.project.name}-tutorials.war"/>
67c5912 PIVOT-159 :: Include demos and tutorials in binary distribution
Todd Volkert authored
639 </fileset>
640 </copy>
641
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
642 <!-- Create .zip archive -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
643 <zip destfile="${folder.install}/${release}.zip" level="9">
644 <fileset dir="${folder.install}" includes="${release}/**"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
645 </zip>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
646 <checksum file="${folder.install}/${release}.zip" algorithm="md5"/>
647 <checksum file="${folder.install}/${release}.zip" algorithm="sha"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
648
649 <!-- Create .tar.gz archive -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
650 <tar destfile="${folder.install}/${release}.tar" longfile="gnu">
651 <fileset dir="${folder.install}" includes="${release}/**"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
652 </tar>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
653 <gzip src="${folder.install}/${release}.tar" destfile="${folder.install}/${release}.tar.gz"/>
654 <delete file="${folder.install}/${release}.tar"/>
655 <checksum file="${folder.install}/${release}.tar.gz" algorithm="md5"/>
656 <checksum file="${folder.install}/${release}.tar.gz" algorithm="sha"/>
42fa8bf Separated dist target into dist (source) and install (binary)
Todd Volkert authored
657 </target>
658
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
659 <!-- Generate deployment files -->
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
660 <target name="deploy" depends="package">
c1da481 PIVOT-895, update requirements in build files and in readme, and cleanup...
Sandro Martini authored
661 <!-- Copy library dependencies lib directory -->
e43e87a Add SVG Salamander JAR to demo and tutorial classpaths; add SVG Salamand...
Gregory K. Brown authored
662 <copy todir="${folder.lib}">
663 <fileset dir="wtk/lib">
664 <include name="*.jar"/>
665 </fileset>
666 </copy>
667
a1d0705 trim-whitespace
Sandro Martini authored
668 <!-- Delete old signed jars and old already deployed jars -->
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
669 <delete>
670 <fileset dir="${folder.lib}" includes="**/*.war"/>
671 <fileset dir="${folder.lib}" includes="**/*.signed.jar"/>
672 </delete>
673
a1d0705 trim-whitespace
Sandro Martini authored
674 <!-- Sign JARS -->
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
675 <mkdir dir="${folder.lib}/signed"/>
676 <copy todir="${folder.lib}/signed">
677 <fileset dir="${folder.lib}">
678 <include name="*.jar"/>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
679 <exclude name="*.signed.jar"/>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
680 </fileset>
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
681 </copy>
682
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
683 <signjar keystore="${keystore.location}" storepass="${keystore.passwd}"
684 alias="${keystore.alias}" preservelastmodified="true" lazy="true">
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
685 <path>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
686 <fileset dir="${folder.lib}/signed" includes="*.jar" />
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
687 </path>
688 </signjar>
689
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
690 <copy todir="${folder.lib}">
691 <fileset dir="${folder.lib}/signed" includes="*.jar" />
b4e025b Updated build process (dist and deploy targets)
Todd Volkert authored
692 <mapper type="glob" from="*.jar" to="*.signed.jar"/>
693 </copy>
694
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
695 <delete dir="${folder.lib}/signed"/>
696
7c9077a Add JNLP files to deploy target.
Gregory K. Brown authored
697 <!-- Deploy demos -->
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
698 <mkdir dir="demos/${folder.deploy}/lib"/>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
699 <delete>
a1d0705 trim-whitespace
Sandro Martini authored
700 <fileset dir="demos/${folder.deploy}/lib" includes="**/*.jar"/>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
701 </delete>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
702 <copy todir="demos/${folder.deploy}/lib">
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
703 <fileset dir="${folder.lib}">
704 <include name="*.jar"/>
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
705 <exclude name="*-server*.jar"/>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
706 </fileset>
707 </copy>
708
368b762 Migrated demos index page to use XSLT to dynamically create the page fro...
Todd Volkert authored
709 <!-- Transform demos index -->
710 <xslt basedir="demos/www"
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
711 destdir="demos/${folder.deploy}"
368b762 Migrated demos index page to use XSLT to dynamically create the page fro...
Todd Volkert authored
712 extension=".html"
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
713 force="true"
368b762 Migrated demos index page to use XSLT to dynamically create the page fro...
Todd Volkert authored
714 style="demos/xsl/index.xsl"
715 includes="index.xml"/>
716
623f084 Removed static JNLP files in favor of dynamically generated ones at buil...
Todd Volkert authored
717 <!-- Transform demos html -->
51f60b7 Replaced html demos pages with an XSLT transformation to dynamically cre...
Todd Volkert authored
718 <xslt basedir="demos/www"
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
719 destdir="demos/${folder.deploy}"
51f60b7 Replaced html demos pages with an XSLT transformation to dynamically cre...
Todd Volkert authored
720 extension=".html"
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
721 force="true"
368b762 Migrated demos index page to use XSLT to dynamically create the page fro...
Todd Volkert authored
722 style="demos/xsl/demo.html.xsl"
51f60b7 Replaced html demos pages with an XSLT transformation to dynamically cre...
Todd Volkert authored
723 includes="*.xml"
724 excludes="index.xml">
62c6d92 Cleaned up demos www in preparation for final push on the new site.
Todd Volkert authored
725 <param name="version" expression="${version}"/>
4eb5a29 Site updates
Todd Volkert authored
726 <param name="root" expression="${ant.project.name}-demos"/>
51f60b7 Replaced html demos pages with an XSLT transformation to dynamically cre...
Todd Volkert authored
727 </xslt>
728
623f084 Removed static JNLP files in favor of dynamically generated ones at buil...
Todd Volkert authored
729 <!-- Transform demos jnlp -->
730 <xslt basedir="demos/www"
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
731 destdir="demos/${folder.deploy}"
623f084 Removed static JNLP files in favor of dynamically generated ones at buil...
Todd Volkert authored
732 extension=".jnlp"
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
733 force="true"
368b762 Migrated demos index page to use XSLT to dynamically create the page fro...
Todd Volkert authored
734 style="demos/xsl/demo.jnlp.xsl"
623f084 Removed static JNLP files in favor of dynamically generated ones at buil...
Todd Volkert authored
735 includes="*.xml"
736 excludes="index.xml">
62c6d92 Cleaned up demos www in preparation for final push on the new site.
Todd Volkert authored
737 <param name="version" expression="${version}"/>
2516acc PIVOT-733 (from PIVOT-407), short-term workaround
Sandro Martini authored
738 <param name="root" expression="${local.server}/${ant.project.name}-demos"/>
623f084 Removed static JNLP files in favor of dynamically generated ones at buil...
Todd Volkert authored
739 </xslt>
5dec019 add support for jsp templates, like existing html and jnlp, and a little...
Sandro Martini authored
740
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
741 <!-- Copy static demo files to deploy folder -->
742 <copy todir="demos/${folder.deploy}">
b448f41 Minor demo updates.
Gregory K. Brown authored
743 <fileset dir="demos/www">
744 <exclude name="**/*.xml"/>
745 <exclude name="**/*.template.html"/>
746 </fileset>
747 </copy>
748
749 <copy todir="demos/${folder.deploy}">
750 <fileset dir="demos/www">
751 <include name="*.template.html"/>
752 </fileset>
753 <filterset>
754 <filter token="VERSION" value="${version}"/>
755 </filterset>
756 <globmapper from="*.template.html" to="*.html"/>
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
757 </copy>
758
7c9077a Add JNLP files to deploy target.
Gregory K. Brown authored
759 <!-- Generate demos WAR -->
21de06b Rename WARs to pivot-demos.war and pivot-tutorials.war.
Gregory K. Brown authored
760 <war destfile="${folder.lib}/${ant.project.name}-demos.war" webxml="demos/web.xml">
e89fc21 Updated build.xml to reflect recent project separations, removed empty c...
Todd Volkert authored
761 <fileset dir="demos/${folder.deploy}"/>
abbc57c Add demos-server to build.xml.
Gregory K. Brown authored
762
763 <classes dir="demos-server/${folder.bin}"/>
764 <classes dir="demos-server/src">
765 <exclude name="**/*.java"/>
766 <exclude name="**/package.html"/>
767 </classes>
768 <lib dir="${folder.lib}">
769 <include name="${jar.core}"/>
770 <include name="${jar.web}"/>
771 <include name="${jar.web-server}"/>
772 </lib>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
773 </war>
774
7c9077a Add JNLP files to deploy target.
Gregory K. Brown authored
775 <!-- Deploy tutorials -->
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
776 <mkdir dir="tutorials/${folder.deploy}/lib"/>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
777 <delete>
a1d0705 trim-whitespace
Sandro Martini authored
778 <fileset dir="tutorials/${folder.deploy}/lib" includes="**/*.jar"/>
d85a61c more cleanup during deploy, to prevent problems in artifacts after multi...
Sandro Martini authored
779 </delete>
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
780 <copy todir="tutorials/${folder.deploy}/lib">
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
781 <fileset dir="${folder.lib}">
782 <include name="*.jar"/>
783 <exclude name="*-demos*.jar"/>
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
784 <exclude name="*-server*.jar"/>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
785 </fileset>
786 </copy>
787
57ac680 Tutorials www updates
Todd Volkert authored
788 <!-- Transform tutorials index -->
789 <xslt basedir="tutorials/www"
790 destdir="tutorials/${folder.deploy}"
791 extension=".html"
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
792 force="true"
57ac680 Tutorials www updates
Todd Volkert authored
793 style="tutorials/xsl/index.xsl"
794 includes="index.xml"/>
795
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
796 <!-- Transform tutorials html -->
797 <xslt basedir="tutorials/www"
798 destdir="tutorials/${folder.deploy}"
799 extension=".html"
353fe85 Updated build file to force XSLT generation even if target files are new...
Todd Volkert authored
800 force="true"
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
801 style="tutorials/xsl/tutorial.xsl"
802 includes="*.xml"
803 excludes="index.xml">
1656c05 More demo and tutorial www clean-up
Todd Volkert authored
804 <param name="version" expression="${version}"/>
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
805 </xslt>
806
807 <!-- Copy static tutorial files to deploy folder -->
808 <copy todir="tutorials/${folder.deploy}">
b448f41 Minor demo updates.
Gregory K. Brown authored
809 <fileset dir="tutorials/www">
810 <exclude name="**/*.xml"/>
811 <exclude name="**/*.template.html"/>
812 </fileset>
813 </copy>
814
815 <copy todir="tutorials/${folder.deploy}">
816 <fileset dir="tutorials/www">
817 <include name="*.template.html"/>
818 </fileset>
819 <filterset>
820 <filter token="VERSION" value="${version}"/>
821 </filterset>
822 <globmapper from="*.template.html" to="*.html"/>
74fd24f Began work of migrating tutorials web pages to XML/XSLT
Todd Volkert authored
823 </copy>
824
7c9077a Add JNLP files to deploy target.
Gregory K. Brown authored
825 <!-- Generate tutorials WAR -->
21de06b Rename WARs to pivot-demos.war and pivot-tutorials.war.
Gregory K. Brown authored
826 <war destfile="${folder.lib}/${ant.project.name}-tutorials.war" webxml="tutorials/web.xml">
57ac680 Tutorials www updates
Todd Volkert authored
827 <fileset dir="tutorials/${folder.deploy}"/>
f2fe988 Add tutorials-server project; stub out ExpenseServlet for QueryServlet t...
Gregory K. Brown authored
828
829 <classes dir="tutorials-server/${folder.bin}"/>
830 <classes dir="tutorials-server/src">
831 <exclude name="**/*.java"/>
832 <exclude name="**/package.html"/>
833 </classes>
834 <lib dir="${folder.lib}">
835 <include name="${jar.core}"/>
836 <include name="${jar.web}"/>
837 <include name="${jar.web-server}"/>
838 </lib>
f1faa8f Update deploy target to generate WAR files for demos, tutorials, and web...
Gregory K. Brown authored
839 </war>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
840 </target>
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
841
842 <!-- Installs JARs to local Maven repository -->
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
843 <target name="maven-install" depends="clean, package, package-sources, package-javadoc">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
844 <mkdir dir="maven-install"/>
845
846 <copy todir="maven-install">
847 <fileset dir=".">
848 <include name="**/pom.xml"/>
849 </fileset>
850 <filterset>
851 <filter token="VERSION" value="${version}"/>
852 </filterset>
853 </copy>
854
855 <artifact:install file="maven-install/pom.xml">
a41aebc Apply patch for PIVOT-601.
Gregory K. Brown authored
856 <artifact:pom file="maven-install/pom.xml"/>
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
857 </artifact:install>
a042bff PIVOT-383, now fixed the deploy in local maven repository also of source...
Sandro Martini authored
858 <artifact:install file="lib/${jar.core}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
859 <artifact:pom file="maven-install/core/pom.xml"/>
df98679 Added license headers, and replaced tabs with spaces
Todd Volkert authored
860 <attach file="lib/${jar.core.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
861 <attach file="lib/${jar.core.javadoc}" classifier="javadoc" />
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
862 </artifact:install>
a042bff PIVOT-383, now fixed the deploy in local maven repository also of source...
Sandro Martini authored
863 <artifact:install file="lib/${jar.web}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
864 <artifact:pom file="maven-install/web/pom.xml"/>
df98679 Added license headers, and replaced tabs with spaces
Todd Volkert authored
865 <attach file="lib/${jar.web.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
866 <attach file="lib/${jar.web.javadoc}" classifier="javadoc" />
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
867 </artifact:install>
f5a0788 Add Web Server project source to Maven targets.
Gregory K. Brown authored
868 <artifact:install file="lib/${jar.web-server}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
869 <artifact:pom file="maven-install/web-server/pom.xml"/>
f5a0788 Add Web Server project source to Maven targets.
Gregory K. Brown authored
870 <attach file="lib/${jar.web-server.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
871 <attach file="lib/${jar.web-server.javadoc}" classifier="javadoc" />
f5a0788 Add Web Server project source to Maven targets.
Gregory K. Brown authored
872 </artifact:install>
a042bff PIVOT-383, now fixed the deploy in local maven repository also of source...
Sandro Martini authored
873 <artifact:install file="lib/${jar.wtk}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
874 <artifact:pom file="maven-install/wtk/pom.xml"/>
df98679 Added license headers, and replaced tabs with spaces
Todd Volkert authored
875 <attach file="lib/${jar.wtk.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
876 <attach file="lib/${jar.wtk.javadoc}" classifier="javadoc" />
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
877 </artifact:install>
a042bff PIVOT-383, now fixed the deploy in local maven repository also of source...
Sandro Martini authored
878 <artifact:install file="lib/${jar.wtk-terra}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
879 <artifact:pom file="maven-install/wtk-terra/pom.xml"/>
df98679 Added license headers, and replaced tabs with spaces
Todd Volkert authored
880 <attach file="lib/${jar.wtk-terra.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
881 <attach file="lib/${jar.wtk-terra.javadoc}" classifier="javadoc" />
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
882 </artifact:install>
a042bff PIVOT-383, now fixed the deploy in local maven repository also of source...
Sandro Martini authored
883 <artifact:install file="lib/${jar.charts}">
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
884 <artifact:pom file="maven-install/charts/pom.xml"/>
df98679 Added license headers, and replaced tabs with spaces
Todd Volkert authored
885 <attach file="lib/${jar.charts.sources}" classifier="sources" />
436ba30 PIVOT-557 - Pivot javadoc artifacts for Maven
Sandro Martini authored
886 <attach file="lib/${jar.charts.javadoc}" classifier="javadoc" />
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
887 </artifact:install>
7c05f79 Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.
Gregory K. Brown authored
888
889 <delete dir="maven-install"/>
636fa5e Update Maven POMs; add maven-install target to build.xml.
Gregory K. Brown authored
890 </target>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
891
892 <!-- Remove trailing white space in all source files -->
9c12412 add environment-info task (now the default task) and make compile and ot...
Sandro Martini authored
893 <target name="trim-whitespace" depends="environment-info">
ca882b3 Add ByteArraySerializer and associated test case; update RELEASE-NOTES; ...
Gregory K. Brown authored
894 <fileset id="trimfiles" dir=".">
895 <include name="BUILD"/>
896 <include name="LICENSE"/>
897 <include name="NOTICE"/>
898 <include name="README"/>
899 <include name="RELEASE-NOTES"/>
900 <include name="**/*.java"/>
901 <include name="**/*.html"/>
4786b52 Tutorial updates; minor update to build.xml.
Gregory K. Brown authored
902 <include name="**/*.jsp"/>
ca882b3 Add ByteArraySerializer and associated test case; update RELEASE-NOTES; ...
Gregory K. Brown authored
903 <include name="**/*.txt"/>
904 <include name="**/*.properties"/>
905 <include name="**/*.xml"/>
7ac94c7 Remove references to *.wtkx in build.xml.
Gregory K. Brown authored
906 <include name="**/*.bxml"/>
ca882b3 Add ByteArraySerializer and associated test case; update RELEASE-NOTES; ...
Gregory K. Brown authored
907 <include name="**/*.json"/>
ac465d8 add groovy and scala extensions in trim-whitespace
Sandro Martini authored
908 <include name="**/*.groovy"/>
909 <include name="**/*.scala"/>
ca882b3 Add ByteArraySerializer and associated test case; update RELEASE-NOTES; ...
Gregory K. Brown authored
910 </fileset>
911 <replaceregexp match="[\t]" replace=" " flags="gm" byline="true">
912 <fileset refid="trimfiles"/>
913 </replaceregexp>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
914 <replaceregexp match="[\t ]+$" replace="" flags="gm" byline="true">
ca882b3 Add ByteArraySerializer and associated test case; update RELEASE-NOTES; ...
Gregory K. Brown authored
915 <fileset refid="trimfiles"/>
7b4298f Specify XMLInputFactory implementations using service provider section o...
gkbrown authored
916 </replaceregexp>
917 </target>
d52b180 Added "target" attribute to <javac> tasks to ensure that newer compilers...
Todd Volkert authored
918 </project>
Something went wrong with that request. Please try again.