mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
Merge
This commit is contained in:
commit
dde1b747f6
6 changed files with 73 additions and 16 deletions
|
@ -55,9 +55,29 @@
|
||||||
<drop-import name="jaxp_src"/>
|
<drop-import name="jaxp_src"/>
|
||||||
<!-- <drop-import name="jaxp_tests"/> -->
|
<!-- <drop-import name="jaxp_tests"/> -->
|
||||||
|
|
||||||
|
<!-- Fail and print helpful messages if source does not exist. -->
|
||||||
|
<target name="-src-help">
|
||||||
|
<fail message="${failed.url.src.message}">
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<available file="${jaxp_src.src.dir}" type="dir"/>
|
||||||
|
</not>
|
||||||
|
<istrue value="${allow.downloads}"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</fail>
|
||||||
|
<fail message="${failed.nourl.src.message}">
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<available file="${jaxp_src.src.dir}" type="dir"/>
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
|
</fail>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Special build area preparation. -->
|
<!-- Special build area setup. -->
|
||||||
<target name="-drop-build-prep" depends="init, -init-src-dirs">
|
<target name="-drop-build-setup" depends="init, -init-src-dirs">
|
||||||
<mkdir dir="${build.classes.dir}"/>
|
<mkdir dir="${build.classes.dir}"/>
|
||||||
<copy todir="${build.classes.dir}">
|
<copy todir="${build.classes.dir}">
|
||||||
<fileset dir="${primary.src.dir}"
|
<fileset dir="${primary.src.dir}"
|
||||||
|
@ -84,7 +104,7 @@
|
||||||
|
|
||||||
<!-- Source directory selection. -->
|
<!-- Source directory selection. -->
|
||||||
<target name="-init-src-dirs"
|
<target name="-init-src-dirs"
|
||||||
depends="init, -use-drop">
|
depends="init, -use-drop,-src-help">
|
||||||
<echo message="Using primary.src.dir=${primary.src.dir}"/>
|
<echo message="Using primary.src.dir=${primary.src.dir}"/>
|
||||||
<pathconvert property="src.list.id" refid="src.dir.id"/>
|
<pathconvert property="src.list.id" refid="src.dir.id"/>
|
||||||
<echo message="Using src.dir.id=${src.list.id}"/>
|
<echo message="Using src.dir.id=${src.list.id}"/>
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
<target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used">
|
<target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used">
|
||||||
<condition property="@DROP@.url.should.be.used">
|
<condition property="@DROP@.url.should.be.used">
|
||||||
<and>
|
<and>
|
||||||
|
<istrue value="${allow.downloads}"/>
|
||||||
<not>
|
<not>
|
||||||
<isset property="@DROP@.master.bundle.copy.exists"/>
|
<isset property="@DROP@.master.bundle.copy.exists"/>
|
||||||
</not>
|
</not>
|
||||||
|
|
|
@ -104,4 +104,24 @@ sanity.info= Sanity Settings:${line.separator}\
|
||||||
drops.dir=${drops.dir}${line.separator}\
|
drops.dir=${drops.dir}${line.separator}\
|
||||||
${line.separator}
|
${line.separator}
|
||||||
|
|
||||||
|
# Failure messages when source cannot be found on the file system
|
||||||
|
failed.nourl.src.message=\
|
||||||
|
ERROR: Cannot find source for project ${ant.project.name}.\
|
||||||
|
${line.separator}${line.separator}\
|
||||||
|
HINT: Try setting drops.dir to indicate where the bundles can be found, \
|
||||||
|
or try setting the ant property allow.downloads=true to download the bundle from the URL.\
|
||||||
|
${line.separator}\
|
||||||
|
e.g. ant -Dallow.downloads=true -OR- ant -Ddrops.dir=some_directory \
|
||||||
|
${line.separator}
|
||||||
|
|
||||||
|
# Failure message when source cannot be downloaded
|
||||||
|
failed.url.src.message=\
|
||||||
|
ERROR: Cannot find source for project ${ant.project.name}.\
|
||||||
|
${line.separator}${line.separator}\
|
||||||
|
HINT: Try setting drops.dir to indicate where the bundles can be found, \
|
||||||
|
or try checking the URL with your browser.\
|
||||||
|
${line.separator}\
|
||||||
|
e.g. ant -Ddrops.dir=some_directory \
|
||||||
|
${line.separator}
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
javac.debug - true or false for debug classfiles
|
javac.debug - true or false for debug classfiles
|
||||||
javac.target - classfile version target
|
javac.target - classfile version target
|
||||||
javac.source - source version
|
javac.source - source version
|
||||||
|
drops.dir - directory that holds source drop bundles
|
||||||
|
allow.download - permit downloads from public url (default is false)
|
||||||
|
(used if bundles not found in drops.dir)
|
||||||
|
|
||||||
|
Run 'make help' for help using the Makefile.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<!-- Mac is special, need to downgrade these before build.properties. -->
|
<!-- Mac is special, need to downgrade these before build.properties. -->
|
||||||
|
@ -106,16 +111,20 @@
|
||||||
<jar file="${dist.classes.jar}" basedir="${build.classes.dir}"/>
|
<jar file="${dist.classes.jar}" basedir="${build.classes.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="-build-prep"
|
<target name="-build-setup"
|
||||||
depends="init, -init-src-dirs, -drop-build-prep">
|
depends="init, -init-src-dirs, -drop-build-setup">
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Build (compilation) of sources to class files. -->
|
<!-- Build (compilation) of sources to class files. -->
|
||||||
<target name="build"
|
<target name="build"
|
||||||
depends="init, -init-src-dirs, -build-prep">
|
depends="compile, -build-setup">
|
||||||
|
</target>
|
||||||
|
<target name="compile"
|
||||||
|
depends="init, -init-src-dirs">
|
||||||
|
<mkdir dir="${build.classes.dir}"/>
|
||||||
<javac
|
<javac
|
||||||
includeAntRuntime="false"
|
includeAntRuntime="false"
|
||||||
classpath="${build.classes.dir}"
|
classpath="${build.classes.dir}:${tools.jar}"
|
||||||
fork="true"
|
fork="true"
|
||||||
destdir="${build.classes.dir}"
|
destdir="${build.classes.dir}"
|
||||||
memoryInitialSize="${javac.memoryInitialSize}"
|
memoryInitialSize="${javac.memoryInitialSize}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -24,13 +24,13 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
drops.master.copy.base=${drops.dir}
|
drops.master.copy.base=${drops.dir}
|
||||||
drops.master.url.base=https://jaxp.dev.java.net/files/documents/913/147490
|
|
||||||
|
|
||||||
jaxp_src.bundle.name=jdk7-jaxp-m6.zip
|
jaxp_src.bundle.name=jdk7-jaxp-m7.zip
|
||||||
jaxp_src.bundle.md5.checksum=080827d779c114365f8504bd79b34604
|
jaxp_src.bundle.md5.checksum=22e95fbdb9fb7d8b6b6fc0a1d76d1fbd
|
||||||
jaxp_src.master.bundle.dir=${drops.master.copy.base}
|
jaxp_src.master.bundle.dir=${drops.master.copy.base}
|
||||||
jaxp_src.master.bundle.url.base=${drops.master.url.base}
|
jaxp_src.master.bundle.url.base=https://jaxp.dev.java.net/files/documents/913/147490
|
||||||
|
|
||||||
|
#jaxp_tests.bundle.name=jdk7-jaxp-tests-2009_08_28.zip
|
||||||
|
#jaxp_tests.master.bundle.dir=${drops.master.copy.base}
|
||||||
|
#jaxp_tests.master.bundle.url.base=https://jaxp.dev.java.net/files/documents/913/147490
|
||||||
|
|
||||||
jaxp_tests.bundle.name=jdk7-jaxp-tests-2009_08_28.zip
|
|
||||||
jaxp_tests.master.bundle.dir=${drops.master.copy.base}
|
|
||||||
jaxp_tests.master.bundle.url.base=${drops.master.url.base}
|
|
||||||
|
|
|
@ -65,6 +65,11 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If downloads are allowed
|
||||||
|
ifeq ($(ALLOW_DOWNLOADS),true)
|
||||||
|
ANT_OPTIONS += -Dallow.downloads=true
|
||||||
|
endif
|
||||||
|
|
||||||
# Figure out the platform we are using
|
# Figure out the platform we are using
|
||||||
_SYSTEM_UNAME := $(shell uname)
|
_SYSTEM_UNAME := $(shell uname)
|
||||||
_PLATFORM_KIND = unix
|
_PLATFORM_KIND = unix
|
||||||
|
@ -159,6 +164,8 @@ help:
|
||||||
@echo " $(ANT_TARGETS)"
|
@echo " $(ANT_TARGETS)"
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo " Environment or command line variables (all optional):"
|
@echo " Environment or command line variables (all optional):"
|
||||||
|
$(call helpenvline, ALT_DROPS_DIR,\
|
||||||
|
"Directory that contains the drop source bundles i.e. drops.dir")
|
||||||
$(call helpenvline, ALT_BOOTDIR,\
|
$(call helpenvline, ALT_BOOTDIR,\
|
||||||
"JAVA_HOME to use when running ant")
|
"JAVA_HOME to use when running ant")
|
||||||
$(call helpenvline, ALT_LANGTOOLS_DIST,\
|
$(call helpenvline, ALT_LANGTOOLS_DIST,\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue