aoqi@0: # aoqi@0: # Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. aoqi@0: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: # aoqi@0: # This code is free software; you can redistribute it and/or modify it aoqi@0: # under the terms of the GNU General Public License version 2 only, as aoqi@0: # published by the Free Software Foundation. Oracle designates this aoqi@0: # particular file as subject to the "Classpath" exception as provided aoqi@0: # by Oracle in the LICENSE file that accompanied this code. aoqi@0: # aoqi@0: # This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: # version 2 for more details (a copy is included in the LICENSE file that aoqi@0: # accompanied this code). aoqi@0: # aoqi@0: # You should have received a copy of the GNU General Public License version aoqi@0: # 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: # aoqi@0: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: # or visit www.oracle.com if you need additional information or have any aoqi@0: # questions. aoqi@0: # aoqi@0: aoqi@0: # This must be the first rule aoqi@0: default: all aoqi@0: aoqi@0: include $(SPEC) aoqi@0: include MakeBase.gmk aoqi@0: include JavaCompilation.gmk aoqi@0: aoqi@0: DISABLE_JAXWS_WARNINGS := -Xlint:all,-varargs,-rawtypes,-deprecation,-unchecked,-serial,-dep-ann,-cast,-fallthrough,-static aoqi@0: aoqi@0: # The generate new bytecode uses the new compiler for to generate bytecode aoqi@0: # for the new jdk that is being built. The code compiled by this setup aoqi@0: # cannot necessarily be run with the boot jdk. aoqi@0: $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG, \ aoqi@0: JVM := $(JAVA), \ aoqi@0: JAVAC := $(NEW_JAVAC), \ aoqi@0: FLAGS := -XDignore.symbol.file=true $(DISABLE_JAXWS_WARNINGS) -g, \ aoqi@0: SERVER_DIR := $(SJAVAC_SERVER_DIR), \ aoqi@0: SERVER_JVM := $(SJAVAC_SERVER_JAVA))) aoqi@0: aoqi@0: # Dummy here is needed to trigger copying of META-INF aoqi@0: $(eval $(call SetupJavaCompilation,BUILD_JAF, \ aoqi@0: SETUP := GENERATE_NEWBYTECODE_DEBUG, \ aoqi@0: SRC := $(JAXWS_TOPDIR)/src/share/jaf_classes, \ aoqi@0: COPY := "dummy", \ aoqi@0: BIN := $(JAXWS_OUTPUTDIR)/jaf_classes)) aoqi@0: aoqi@0: $(eval $(call SetupJavaCompilation,BUILD_JAXWS, \ aoqi@0: SETUP := GENERATE_NEWBYTECODE_DEBUG, \ aoqi@0: SRC := $(JAXWS_TOPDIR)/src/share/jaxws_classes, \ aoqi@0: BIN := $(JAXWS_OUTPUTDIR)/jaxws_classes, \ aoqi@0: COPY := .xsd, \ aoqi@0: COPY_FILES := $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \ aoqi@0: $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java \ aoqi@0: $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/xml/internal/ws/assembler/jaxws-tubes-default.xml, \ aoqi@0: ADD_JAVAC_FLAGS = -Xbootclasspath/p:$(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar)) aoqi@0: aoqi@0: $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin: \ aoqi@0: $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin aoqi@0: mkdir -p $(@D) aoqi@0: cp $< $@ aoqi@0: aoqi@0: $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.xjc.Plugin: \ aoqi@0: $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin aoqi@0: mkdir -p $(@D) aoqi@0: cp $< $@ aoqi@0: aoqi@0: # There are two META-INF services files that are needed, add these to the list of goals aoqi@0: BUILD_JAXWS += $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ aoqi@0: $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.xjc.Plugin aoqi@0: aoqi@0: # Imitate the property cleaning mechanism in the old build. This will likely be replaced aoqi@0: # by the unified functionality in JavaCompilation.gmk, but keep it the same as old build aoqi@0: # for now, even though it actually breaks properties containing # in the value. aoqi@0: # Using nawk to avoid solaris sed. aoqi@0: $(JAXWS_OUTPUTDIR)/jaxws_classes/%.properties: $(JAXWS_TOPDIR)/src/share/jaxws_classes/%.properties aoqi@0: $(MKDIR) -p $(@D) aoqi@0: $(RM) $@ $@.tmp aoqi@0: $(CAT) $< | LANG=C $(NAWK) '{ sub(/#.*$$/,"#"); print }' > $@.tmp aoqi@0: $(MV) $@.tmp $@ aoqi@0: aoqi@0: JAXWS_SRC_PROP_FILES := $(shell $(FIND) $(JAXWS_TOPDIR)/src/share/jaxws_classes -name "*.properties") aoqi@0: TARGET_PROP_FILES := $(patsubst $(JAXWS_TOPDIR)/src/share/jaxws_classes/%, \ aoqi@0: $(JAXWS_OUTPUTDIR)/jaxws_classes/%, $(JAXWS_SRC_PROP_FILES)) aoqi@0: aoqi@0: $(JAXWS_OUTPUTDIR)/jaf_classes/%.properties: $(JAXWS_TOPDIR)/src/share/jaf_classes/%.properties aoqi@0: $(MKDIR) -p $(@D) aoqi@0: $(RM) $@ $@.tmp aoqi@0: $(CAT) $< | LANG=C $(NAWK) '{ sub(/#.*$$/,"#"); print }' > $@.tmp aoqi@0: $(MV) $@.tmp $@ aoqi@0: aoqi@0: JAF_SRC_PROP_FILES := $(shell $(FIND) $(JAXWS_TOPDIR)/src/share/jaf_classes -name "*.properties") aoqi@0: TARGET_PROP_FILES += $(patsubst $(JAXWS_TOPDIR)/src/share/jaf_classes/%, \ aoqi@0: $(JAXWS_OUTPUTDIR)/jaf_classes/%, $(JAF_SRC_PROP_FILES)) aoqi@0: aoqi@0: $(eval $(call SetupArchive,ARCHIVE_JAXWS, $(BUILD_JAXWS) $(BUILD_JAF) $(TARGET_PROP_FILES), \ aoqi@0: SRCS := $(JAXWS_OUTPUTDIR)/jaxws_classes $(JAXWS_OUTPUTDIR)/jaf_classes, \ aoqi@0: SUFFIXES := .class .properties .xsd .xml .java \ aoqi@0: com.sun.mirror.apt.AnnotationProcessorFactory \ aoqi@0: com.sun.tools.internal.xjc.Plugin, \ aoqi@0: JAR := $(JAXWS_OUTPUTDIR)/dist/lib/classes.jar)) aoqi@0: aoqi@0: $(eval $(call SetupZipArchive,ZIP_JAXWS_SOURCES, \ aoqi@0: SRC := $(JAXWS_TOPDIR)/src/share/jaf_classes $(JAXWS_TOPDIR)/src/share/jaxws_classes, \ aoqi@0: ZIP := $(JAXWS_OUTPUTDIR)/dist/lib/src.zip)) aoqi@0: aoqi@0: all: $(JAXWS_OUTPUTDIR)/dist/lib/classes.jar $(JAXWS_OUTPUTDIR)/dist/lib/src.zip aoqi@0: aoqi@0: .PHONY: default all