author | never |
Mon, 12 Jul 2010 22:27:18 -0700 | |
changeset 5926 | a36f90d986b6 |
parent 5516 | d5307370d017 |
child 5836 | 0ca88d5cdd40 |
permissions | -rw-r--r-- |
3885 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
5516 | 3 |
Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
3885 | 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 |
|
5516 | 8 |
published by the Free Software Foundation. Oracle designates this |
3885 | 9 |
particular file as subject to the "Classpath" exception as provided |
5516 | 10 |
by Oracle in the LICENSE file that accompanied this code. |
3885 | 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 |
||
5516 | 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. |
|
3885 | 25 |
--> |
26 |
||
27 |
<project name="jaxws_defs" default="all" basedir="."> |
|
28 |
||
29 |
<!-- Specific build properties. --> |
|
30 |
<property file="jaxws.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="jaxws_src"/> |
|
56 |
<drop-import name="jaf_src"/> |
|
57 |
<!-- <drop-import name="jaxws_tests"/> --> |
|
58 |
||
59 |
<!-- Special build area preparation. --> |
|
60 |
<target name="-drop-build-prep" depends="init, -init-src-dirs"> |
|
61 |
<mkdir dir="${build.classes.dir}"/> |
|
62 |
<copy todir="${build.classes.dir}"> |
|
63 |
<fileset dir="${primary.src.dir}" |
|
3887
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
64 |
includes="**/*.xsd, **/*.default, **/*.properties" |
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
65 |
excludes="**/*.java, **/*.package.html"/> |
3885 | 66 |
</copy> |
3887
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
67 |
<replaceregexp match="#(.*)$" replace="#" flags="gm"> |
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
68 |
<fileset dir="${build.classes.dir}" includes="**/*.properties"/> |
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
69 |
</replaceregexp> |
2d600411d2b7
6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents:
3885
diff
changeset
|
70 |
|
3885 | 71 |
<mkdir dir="${build.classes.dir}/META-INF/services"/> |
72 |
<copy todir="${build.classes.dir}/META-INF/services" |
|
73 |
file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/> |
|
74 |
<copy todir="${build.classes.dir}/META-INF/services" |
|
75 |
file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/> |
|
76 |
<mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/> |
|
77 |
<copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"> |
|
78 |
<fileset dir="${primary.src.dir}/com/sun/tools/internal/xjc/runtime" |
|
79 |
includes="**/*.java" |
|
80 |
excludes="**/*.package.html"/> |
|
81 |
</copy> |
|
82 |
</target> |
|
83 |
||
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
84 |
<!-- Try to get drop sources. --> |
3885 | 85 |
<target name="-set-props" |
86 |
depends="init, |
|
87 |
jaxws_src-update, |
|
88 |
jaf_src-update"> |
|
89 |
</target> |
|
90 |
||
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
91 |
<!-- Set up source to use drop.dir. --> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
92 |
<target name="-use-drop" depends="-set-props"> |
3885 | 93 |
<property name="primary.src.dir" value="${jaxws_src.src.dir}"/> |
94 |
<path id="src.dir.id"> |
|
95 |
<pathelement path="${primary.src.dir}"/> |
|
96 |
<pathelement path="${jaf_src.src.dir}"/> |
|
97 |
</path> |
|
98 |
</target> |
|
99 |
||
100 |
<!-- Source directory selection. --> |
|
101 |
<target name="-init-src-dirs" |
|
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
102 |
depends="init, -use-drop"> |
3885 | 103 |
<echo message="Using primary.src.dir=${primary.src.dir}"/> |
104 |
<pathconvert property="src.list.id" refid="src.dir.id"/> |
|
105 |
<echo message="Using src.dir.id=${src.list.id}"/> |
|
106 |
</target> |
|
107 |
||
108 |
<!-- Create drop src.zip. --> |
|
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
109 |
<target name="-drop-src-zip" depends="init, -set-props"> |
3885 | 110 |
<zip file="${dist.src.zip}" basedir="${primary.src.dir}"/> |
111 |
<zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/> |
|
112 |
</target> |
|
113 |
||
114 |
<!-- Create src.zip. --> |
|
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3887
diff
changeset
|
115 |
<target name="-dist-src-zip" depends="init, -drop-src-zip"> |
3885 | 116 |
</target> |
117 |
||
118 |
</project> |