6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
authorandrew
Thu, 05 Nov 2009 00:02:38 +0000
changeset 4138 6f57118cd450
parent 4137 a06d987928b2
child 4139 bd5ae0a4bc94
6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws Summary: Allowthe directory for downloaded drops to beset using ALT_DROPS_DIR Reviewed-by: ohair, jjg
jaxws/build.properties
jaxws/jaxws.properties
jaxws/make/Makefile
--- a/jaxws/build.properties	Fri Oct 23 11:06:56 2009 -0700
+++ b/jaxws/build.properties	Thu Nov 05 00:02:38 2009 +0000
@@ -25,7 +25,7 @@
 
 # Base locations where bundles are located
 slashjava=/java
-devtools=${slashjava}/devtools
+drops.dir=${slashjava}/devtools/share/jdk7-drops
 
 # This is the JDK used to build and run the bootstrap version of javac.
 # The bootstrap javac is used to compile both boostrap versions of the
@@ -97,6 +97,7 @@
   build.dir=${build.dir}${line.separator}\
   dist.dir=${dist.dir}${line.separator}\
   drop.dir=${drop.dir}${line.separator}\
+  drops.dir=${drops.dir}${line.separator}\
 ${line.separator}
 
 #------------------------------------------------------------
--- a/jaxws/jaxws.properties	Fri Oct 23 11:06:56 2009 -0700
+++ b/jaxws/jaxws.properties	Thu Nov 05 00:02:38 2009 +0000
@@ -23,7 +23,7 @@
 # have any questions.
 #
 
-drops.master.copy.base=${devtools}/share/jdk7-drops
+drops.master.copy.base=${drops.dir}
 drops.master.url.base=http://kenai.com/projects/jdk7-drops/downloads/download
 
 jaxws_src.bundle.name=jdk7-jaxws-2009_09_28.zip
--- a/jaxws/make/Makefile	Fri Oct 23 11:06:56 2009 -0700
+++ b/jaxws/make/Makefile	Thu Nov 05 00:02:38 2009 +0000
@@ -86,15 +86,22 @@
   endif
 endif
 
-# Where is /java/devtools in case we need it
-ifdef ALT_JDK_DEVTOOLS_DIR
-  _DEVTOOLS = $(ALT_JDK_DEVTOOLS_DIR)
+# Do we have the drops already downloaded?
+# Check ALT_DROPS_DIR for a full path first,
+# before trying to use the devtools path,
+# either via ALT_JDK_DEVTOOLS_DIR or /java/devtools.
+ifdef ALT_DROPS_DIR
+  DROPS_DIR = $(ALT_DROPS_DIR)
 else
-  _DEVTOOLS = $(_SLASHJAVA)/devtools
+  ifdef ALT_JDK_DEVTOOLS_DIR
+    DROPS_DIR = $(ALT_JDK_DEVTOOLS_DIR)/share/jdk7-drops
+  else
+    DROPS_DIR = $(_SLASHJAVA)/devtools/share/jdk7-drops
+  endif
 endif
 
-# Add in path to devtools
-ANT_OPTIONS += -Ddevtools=$(_DEVTOOLS)
+# Add in path to drops already downloaded
+ANT_OPTIONS += -Ddrops.dir=$(DROPS_DIR)
 
 ifdef ALT_OUTPUTDIR
   OUTPUTDIR = $(ALT_OUTPUTDIR)