author | ohair |
Wed, 16 Feb 2011 13:30:31 -0800 | |
changeset 8264 | cd24018b7743 |
parent 5830 | 3adf4782de94 |
child 9059 | f7d1d02fad53 |
permissions | -rw-r--r-- |
3879 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
5512 | 3 |
Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
3879 | 4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
||
6 |
This code is free software; you can redistribute it and/or modify it |
|
7 |
under the terms of the GNU General Public License version 2 only, as |
|
5512 | 8 |
published by the Free Software Foundation. Oracle designates this |
3879 | 9 |
particular file as subject to the "Classpath" exception as provided |
5512 | 10 |
by Oracle in the LICENSE file that accompanied this code. |
3879 | 11 |
|
12 |
This code is distributed in the hope that it will be useful, but WITHOUT |
|
13 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 |
version 2 for more details (a copy is included in the LICENSE file that |
|
16 |
accompanied this code). |
|
17 |
||
18 |
You should have received a copy of the GNU General Public License version |
|
19 |
2 along with this work; if not, write to the Free Software Foundation, |
|
20 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
21 |
||
5512 | 22 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
23 |
or visit www.oracle.com if you need additional information or have any |
|
24 |
questions. |
|
3879 | 25 |
--> |
26 |
||
27 |
<project name="jaxp_defs" default="all" basedir="."> |
|
28 |
||
29 |
<!-- Specific build properties. --> |
|
30 |
<property file="jaxp.properties"/> |
|
31 |
||
32 |
<!-- Where generated xml files will stay. --> |
|
33 |
<property name="xml.gen.dir" value="${build.dir}/xml_generated"/> |
|
34 |
<property name="xml.template" value="build-drop-template.xml"/> |
|
35 |
||
36 |
<!-- ############### --> |
|
37 |
<!-- Begin Macrodefs --> |
|
38 |
||
39 |
<!-- Copies template file, replaces @DROP@ pattern, and imports it. --> |
|
40 |
<macrodef name="drop-import"> |
|
41 |
<attribute name="name"/> |
|
42 |
<sequential> |
|
43 |
<property name="xml.gen.@{name}" value="${xml.gen.dir}/build-drop-@{name}.xml"/> |
|
44 |
<mkdir dir="${xml.gen.dir}"/> |
|
45 |
<copy file="${xml.template}" tofile="${xml.gen.@{name}}"/> |
|
46 |
<replace file="${xml.gen.@{name}}" token="@DROP@" value="@{name}"/> |
|
47 |
<import file="${xml.gen.@{name}}"/> |
|
48 |
</sequential> |
|
49 |
</macrodef> |
|
50 |
||
51 |
<!-- End of Macrodefs --> |
|
52 |
<!-- ############### --> |
|
53 |
||
54 |
<!-- Create xml file and import it for these drops. --> |
|
55 |
<drop-import name="jaxp_src"/> |
|
56 |
<!-- <drop-import name="jaxp_tests"/> --> |
|
57 |
||
5830
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
58 |
<!-- Fail and print helpful messages if source does not exist. --> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
59 |
<target name="-src-help"> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
60 |
<fail message="${failed.url.src.message}"> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
61 |
<condition> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
62 |
<and> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
63 |
<not> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
64 |
<available file="${jaxp_src.src.dir}" type="dir"/> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
65 |
</not> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
66 |
<istrue value="${allow.downloads}"/> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
67 |
</and> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
68 |
</condition> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
69 |
</fail> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
70 |
<fail message="${failed.nourl.src.message}"> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
71 |
<condition> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
72 |
<not> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
73 |
<available file="${jaxp_src.src.dir}" type="dir"/> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
74 |
</not> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
75 |
</condition> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
76 |
</fail> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
77 |
</target> |
3879 | 78 |
|
5830
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
79 |
<!-- Special build area setup. --> |
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
80 |
<target name="-drop-build-setup" depends="init, -init-src-dirs"> |
3882
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
81 |
<mkdir dir="${build.classes.dir}"/> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
82 |
<copy todir="${build.classes.dir}"> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
83 |
<fileset dir="${primary.src.dir}" |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
84 |
includes="**/*.properties"/> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
85 |
</copy> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
86 |
<replaceregexp match="#(.*)$" replace="#" flags="gm"> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
87 |
<fileset dir="${build.classes.dir}" includes="**/*.properties"/> |
35b6f37d3023
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3879
diff
changeset
|
88 |
</replaceregexp> |
3879 | 89 |
</target> |
90 |
||
4131
c5661b1a888f
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3882
diff
changeset
|
91 |
<!-- Try to get drop sources. --> |
3879 | 92 |
<target name="-set-props" |
93 |
depends="init, |
|
94 |
jaxp_src-update"> |
|
95 |
</target> |
|
96 |
||
4131
c5661b1a888f
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3882
diff
changeset
|
97 |
<!-- Set up source to use drop.dir. --> |
c5661b1a888f
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3882
diff
changeset
|
98 |
<target name="-use-drop" depends="-set-props"> |
3879 | 99 |
<property name="primary.src.dir" value="${jaxp_src.src.dir}"/> |
100 |
<path id="src.dir.id"> |
|
101 |
<pathelement path="${primary.src.dir}"/> |
|
102 |
</path> |
|
103 |
</target> |
|
104 |
||
105 |
<!-- Source directory selection. --> |
|
106 |
<target name="-init-src-dirs" |
|
5830
3adf4782de94
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5512
diff
changeset
|
107 |
depends="init, -use-drop,-src-help"> |
3879 | 108 |
<echo message="Using primary.src.dir=${primary.src.dir}"/> |
109 |
<pathconvert property="src.list.id" refid="src.dir.id"/> |
|
110 |
<echo message="Using src.dir.id=${src.list.id}"/> |
|
111 |
</target> |
|
112 |
||
113 |
<!-- Create drop src.zip. --> |
|
4131
c5661b1a888f
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3882
diff
changeset
|
114 |
<target name="-drop-src-zip" depends="init, -set-props"> |
3879 | 115 |
<zip file="${dist.src.zip}" basedir="${primary.src.dir}"/> |
116 |
</target> |
|
117 |
||
118 |
<!-- Create src.zip. --> |
|
4131
c5661b1a888f
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3882
diff
changeset
|
119 |
<target name="-dist-src-zip" depends="init, -drop-src-zip"> |
3879 | 120 |
</target> |
121 |
||
122 |
</project> |