author | duke |
Wed, 05 Jul 2017 16:53:40 +0200 | |
changeset 2821 | b3fdbc09070b |
parent 2678 | 57cf2a1c1a05 |
child 2971 | 170fb87a3dd1 |
child 2842 | 1a14159efe64 |
permissions | -rw-r--r-- |
8 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
3 |
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. |
|
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 |
|
8 |
published by the Free Software Foundation. Sun designates this |
|
9 |
particular file as subject to the "Classpath" exception as provided |
|
10 |
by Sun in the LICENSE file that accompanied this code. |
|
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 |
||
22 |
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
23 |
CA 95054 USA or visit www.sun.com if you need additional information or |
|
24 |
have any questions. |
|
25 |
--> |
|
26 |
||
27 |
<!-- |
|
28 |
This is the main build file for the jaxws workspace. |
|
29 |
--> |
|
30 |
||
31 |
<project name="jaxws" default="all" basedir="."> |
|
32 |
||
33 |
<!-- Convenient shorthands for standard locations within the workspace. --> |
|
34 |
<property file="build.properties"/> |
|
35 |
<property name="topdir" value=".."/> |
|
36 |
<property name="build.dir" location="${topdir}/build"/> |
|
37 |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
|
38 |
<property name="build.gensrc.dir" location="${build.dir}/gensrc"/> |
|
39 |
<property name="build.toolclasses.dir" location="${build.dir}/toolclasses"/> |
|
40 |
<property name="dist.dir" location="${topdir}/dist"/> |
|
41 |
<property name="dist.lib.dir" location="${dist.dir}/lib"/> |
|
42 |
<property name="make.dir" location="${topdir}/make"/> |
|
43 |
<property name="make.tools.dir" location="${make.dir}/tools"/> |
|
44 |
<property name="src.dir" location="${topdir}/src"/> |
|
45 |
<property name="src.classes.dir" location="${src.dir}/share/classes"/> |
|
46 |
<property environment="env"/> |
|
47 |
||
48 |
<target name="build" depends="banner, build-classes, build-tools, build-binaries"> |
|
49 |
<mkdir dir="${dist.lib.dir}"/> |
|
50 |
<jar file="${dist.lib.dir}/classes.jar" basedir="${build.classes.dir}"/> |
|
51 |
<zip file="${dist.lib.dir}/src.zip" basedir="${src.classes.dir}"/> |
|
52 |
</target> |
|
53 |
||
54 |
<!-- Debug information --> |
|
55 |
<target name="sanity" |
|
56 |
description="display settings of configuration values"> |
|
57 |
<echo level="info">ant.home = ${ant.home}</echo> |
|
58 |
<echo level="info">java.home = ${env.JAVA_HOME}</echo> |
|
59 |
<echo level="info">bootstrap.dir = ${bootstrap.dir}</echo> |
|
60 |
</target> |
|
61 |
||
62 |
<target name="build-tools" depends="-defs-pstrip"> |
|
63 |
<mkdir dir="${build.dir}"/> |
|
64 |
<mkdir dir="${build.classes.dir}"/> |
|
65 |
<pstrip srcdir="${src.classes.dir}" |
|
66 |
destdir="${build.classes.dir}" |
|
67 |
includes="**/*.properties"/> |
|
68 |
</target> |
|
69 |
||
70 |
<target name="build-binaries"> |
|
71 |
<mkdir dir="${build.dir}"/> |
|
72 |
<mkdir dir="${build.classes.dir}"/> |
|
73 |
<copy todir="${build.classes.dir}"> |
|
74 |
<fileset dir="${src.classes.dir}" |
|
75 |
includes="**/*.xsd, **/*.default" |
|
76 |
excludes="**/*.java, **/*.package.html, **/*.properties"/> |
|
77 |
</copy> |
|
78 |
<mkdir dir="${build.classes.dir}/META-INF/services"/> |
|
79 |
<copy todir="${build.classes.dir}/META-INF/services" |
|
80 |
file="${src.classes.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/> |
|
2678
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
81 |
<copy todir="${build.classes.dir}/META-INF/services" |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
82 |
file="${src.classes.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/> |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
83 |
<!-- copy jaxb sources files required for jaxb tool time --> |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
84 |
<mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/> |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
85 |
<copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"> |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
86 |
<fileset dir="${src.classes.dir}/com/sun/tools/internal/xjc/runtime" |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
87 |
includes="**/*.java" |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
88 |
excludes="**/*.package.html"/> |
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
89 |
</copy> |
8 | 90 |
</target> |
91 |
||
92 |
<target name="-defs-pstrip"> |
|
93 |
<mkdir dir="${build.toolclasses.dir}"/> |
|
94 |
<javac srcdir="${make.tools.dir}/StripProperties" |
|
95 |
destdir="${build.toolclasses.dir}/" |
|
96 |
classpath="${ant.home}/lib/ant.jar"/> |
|
97 |
<taskdef name="pstrip" |
|
98 |
classname="StripPropertiesTask" |
|
99 |
classpath="${build.toolclasses.dir}/"/> |
|
100 |
</target> |
|
101 |
||
102 |
<target name="build-classes" depends="sanity"> |
|
103 |
<mkdir dir="${build.dir}"/> |
|
104 |
<mkdir dir="${build.classes.dir}"/> |
|
105 |
<javac fork="true" |
|
106 |
srcdir="${src.classes.dir}" |
|
107 |
destdir="${build.classes.dir}" |
|
108 |
memoryInitialSize="${javac.memoryInitialSize}" |
|
109 |
memoryMaximumSize="${javac.memoryMaximumSize}" |
|
110 |
target="${javac.target}" |
|
111 |
excludes="com/sun/tools/internal/txw2/**"> |
|
112 |
<compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/> |
|
113 |
<compilerarg line="${javac.version.opt}"/> |
|
114 |
<compilerarg line="${javac.no.jdk.warnings}"/> |
|
115 |
</javac> |
|
116 |
</target> |
|
117 |
||
118 |
<target name="clean" description="Delete all generated files"> |
|
119 |
<delete dir="${build.dir}"/> |
|
120 |
<delete dir="${dist.dir}"/> |
|
121 |
</target> |
|
122 |
||
123 |
<target name="banner"> |
|
124 |
<echo>+---------------------------------------+</echo> |
|
125 |
<echo>+ Building JAX-WS Component +</echo> |
|
126 |
<echo>+---------------------------------------+</echo> |
|
127 |
</target> |
|
128 |
||
129 |
</project> |