提交 100b9841 编写于 作者: O ohair

6888701: Change all template java source files to a .java-template file suffix

Reviewed-by: jjg, alanb, mr
上级 f7d34ace
...@@ -330,7 +330,7 @@ endif ...@@ -330,7 +330,7 @@ endif
# #
# Specific files and directories that will be filtered out from above areas. # Specific files and directories that will be filtered out from above areas.
# #
SOURCE_FILTERs = $(SCM_DIRs) 'X-*' '*-X-*' '*-template.java' ',*' SOURCE_FILTERs = $(SCM_DIRs) ',*'
SOURCE_FILES_filter = $(SOURCE_FILTERs:%=-name % -prune -o) SOURCE_FILES_filter = $(SOURCE_FILTERs:%=-name % -prune -o)
# #
......
...@@ -63,7 +63,7 @@ endif ...@@ -63,7 +63,7 @@ endif
# If AUTO_FILES_PROPERTIES_DIRS used, automatically find properties files # If AUTO_FILES_PROPERTIES_DIRS used, automatically find properties files
# #
ifdef AUTO_FILES_PROPERTIES_DIRS ifdef AUTO_FILES_PROPERTIES_DIRS
AUTO_FILES_PROPERTIES_FILTERS1 = $(SCM_DIRs) 'X-*' '*-X-*' ',*' AUTO_FILES_PROPERTIES_FILTERS1 = $(SCM_DIRs) ',*'
AUTO_FILES_PROPERTIES_FILTERS1 += $(AUTO_PROPERTIES_PRUNE) AUTO_FILES_PROPERTIES_FILTERS1 += $(AUTO_PROPERTIES_PRUNE)
FILES_properties_find_filters1 = $(AUTO_FILES_PROPERTIES_FILTERS1:%=-name % -prune -o) FILES_properties_find_filters1 = $(AUTO_FILES_PROPERTIES_FILTERS1:%=-name % -prune -o)
FILES_properties_auto1 := \ FILES_properties_auto1 := \
...@@ -111,7 +111,7 @@ include $(JDK_TOPDIR)/make/common/internal/Resources.gmk ...@@ -111,7 +111,7 @@ include $(JDK_TOPDIR)/make/common/internal/Resources.gmk
ifdef AUTO_FILES_JAVA_DIRS ifdef AUTO_FILES_JAVA_DIRS
# Filter out these files or directories # Filter out these files or directories
AUTO_FILES_JAVA_SOURCE_FILTERS1 = $(SCM_DIRs) 'X-*' '*-X-*' '*-template.java' ',*' AUTO_FILES_JAVA_SOURCE_FILTERS1 = $(SCM_DIRs) ',*'
AUTO_FILES_JAVA_SOURCE_FILTERS2 = AUTO_FILES_JAVA_SOURCE_FILTERS2 =
AUTO_FILES_JAVA_SOURCE_FILTERS1 += $(AUTO_JAVA_PRUNE) AUTO_FILES_JAVA_SOURCE_FILTERS1 += $(AUTO_JAVA_PRUNE)
AUTO_FILES_JAVA_SOURCE_FILTERS2 += $(AUTO_JAVA_PRUNE) AUTO_FILES_JAVA_SOURCE_FILTERS2 += $(AUTO_JAVA_PRUNE)
......
此差异已折叠。
...@@ -154,7 +154,7 @@ if [ $BIN ]; then ...@@ -154,7 +154,7 @@ if [ $BIN ]; then
mv $DST $DST.tmp mv $DST $DST.tmp
sed -e '/#BIN/,$d' <$DST.tmp >$DST sed -e '/#BIN/,$d' <$DST.tmp >$DST
rm -f $DST.tmp rm -f $DST.tmp
binops=`dirname $SRC`/`basename $SRC .java`-bin.java binops=`dirname $SRC`/`basename $SRC .java.template`-bin.java.template
genBinOps char character 1 two one $binops >>$DST genBinOps char character 1 two one $binops >>$DST
genBinOps short short 1 two one $binops >>$DST genBinOps short short 1 two one $binops >>$DST
genBinOps int integer 2 four three $binops >>$DST genBinOps int integer 2 four three $binops >>$DST
......
...@@ -33,7 +33,7 @@ include $(BUILDDIR)/common/Defs.gmk ...@@ -33,7 +33,7 @@ include $(BUILDDIR)/common/Defs.gmk
all build: $(GENSRCDIR)/sun/misc/Version.java all build: $(GENSRCDIR)/sun/misc/Version.java
$(GENSRCDIR)/sun/misc/Version.java: \ $(GENSRCDIR)/sun/misc/Version.java: \
$(SHARE_SRC)/classes/sun/misc/Version-template.java $(SHARE_SRC)/classes/sun/misc/Version.java.template
$(prep-target) $(prep-target)
$(RM) $@.temp $(RM) $@.temp
$(SED) -e 's/@@launcher_name@@/$(LAUNCHER_NAME)/g' \ $(SED) -e 's/@@launcher_name@@/$(LAUNCHER_NAME)/g' \
......
...@@ -33,7 +33,7 @@ includes=\ ...@@ -33,7 +33,7 @@ includes=\
com/sun/tools/jconsole/ \ com/sun/tools/jconsole/ \
sun/tools/jconsole/ sun/tools/jconsole/
excludes=\ excludes=\
sun/tools/jconsole/Version-template.java sun/tools/jconsole/Version.java.template
jtreg.tests=\ jtreg.tests=\
sun/tools/jconsole/ sun/tools/jconsole/
javadoc.packagenames=\ javadoc.packagenames=\
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<target name="-pre-compile"> <target name="-pre-compile">
<copy <copy
file="${root}/src/share/classes/sun/tools/jconsole/Version-template.java" file="${root}/src/share/classes/sun/tools/jconsole/Version.java.template"
tofile="${gensrc.dir}/sun/tools/jconsole/Version.java"/> tofile="${gensrc.dir}/sun/tools/jconsole/Version.java"/>
<replace <replace
file="${gensrc.dir}/sun/tools/jconsole/Version.java" file="${gensrc.dir}/sun/tools/jconsole/Version.java"
......
...@@ -70,7 +70,7 @@ include $(BUILDDIR)/common/Classes.gmk ...@@ -70,7 +70,7 @@ include $(BUILDDIR)/common/Classes.gmk
build: $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest $(JARFILE) build: $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest $(JARFILE)
$(GENSRCDIR)/sun/tools/jconsole/Version.java: \ $(GENSRCDIR)/sun/tools/jconsole/Version.java: \
$(SHARE_SRC)/classes/sun/tools/jconsole/Version-template.java $(SHARE_SRC)/classes/sun/tools/jconsole/Version.java.template
$(MKDIR) -p $(@D) $(MKDIR) -p $(@D)
$(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@ $(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@
......
...@@ -44,14 +44,6 @@ include $(BUILDDIR)/common/Defs.gmk ...@@ -44,14 +44,6 @@ include $(BUILDDIR)/common/Defs.gmk
include FILES_java.gmk include FILES_java.gmk
AUTO_FILES_JAVA_DIRS = sun/nio/cs/ext AUTO_FILES_JAVA_DIRS = sun/nio/cs/ext
# Exclude a few sources on windows
ifeq ($(PLATFORM), windows)
AUTO_JAVA_PRUNE = sun/nio/cs/ext/COMPOUND_TEXT.java \
sun/nio/cs/ext/COMPOUND_TEXT_Decoder.java \
sun/nio/cs/ext/COMPOUND_TEXT_Encoder.java \
sun/nio/cs/ext/CompoundTextSupport.java
endif # PLATFORM
# For Cygwin, command line arguments that are paths must be converted to # For Cygwin, command line arguments that are paths must be converted to
# windows style paths. These paths cannot be used as targets, however, because # windows style paths. These paths cannot be used as targets, however, because
# the ":" in them will interfere with GNU Make rules, generating "multiple # the ":" in them will interfere with GNU Make rules, generating "multiple
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java
gen() { gen() {
java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 <Basic-X.java >Basic$2.java java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 <Basic-X.java.template >Basic$2.java
} }
gen byte Byte Byte gen byte Byte Byte
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java > Spp.java javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java > Spp.java
gen() { gen() {
java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3<CopyDirect-X-Memory.java >CopyDirect$2Memory.java java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3<CopyDirect-X-Memory.java.template >CopyDirect$2Memory.java
} }
gen byte Byte Byte gen byte Byte Byte
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册