1 # |
1 # |
2 # Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
46 |
46 |
47 # Dummy here is needed to trigger copying of META-INF |
47 # Dummy here is needed to trigger copying of META-INF |
48 $(eval $(call SetupJavaCompilation,BUILD_JAF,\ |
48 $(eval $(call SetupJavaCompilation,BUILD_JAF,\ |
49 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\ |
49 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\ |
50 SRC:=$(JAXWS_TOPDIR)/src/share/jaf_classes,\ |
50 SRC:=$(JAXWS_TOPDIR)/src/share/jaf_classes,\ |
51 CLEAN:=.properties,\ |
|
52 COPY:="dummy",\ |
51 COPY:="dummy",\ |
53 BIN:=$(JAXWS_OUTPUTDIR)/jaf_classes)) |
52 BIN:=$(JAXWS_OUTPUTDIR)/jaf_classes)) |
54 |
53 |
55 $(eval $(call SetupJavaCompilation,BUILD_JAXWS,\ |
54 $(eval $(call SetupJavaCompilation,BUILD_JAXWS,\ |
56 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\ |
55 SETUP:=GENERATE_NEWBYTECODE_DEBUG,\ |
57 SRC:=$(JAXWS_TOPDIR)/src/share/jaxws_classes,\ |
56 SRC:=$(JAXWS_TOPDIR)/src/share/jaxws_classes,\ |
58 CLEAN:=.properties,\ |
|
59 BIN:=$(JAXWS_OUTPUTDIR)/jaxws_classes,\ |
57 BIN:=$(JAXWS_OUTPUTDIR)/jaxws_classes,\ |
60 COPY:=.xsd,\ |
58 COPY:=.xsd,\ |
61 COPY_FILES:=$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \ |
59 COPY_FILES:=$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \ |
62 $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java,\ |
60 $(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java,\ |
63 ADD_JAVAC_FLAGS=-cp $(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar)) |
61 ADD_JAVAC_FLAGS=-cp $(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar)) |
74 |
72 |
75 # There are two META-INF services files that are needed, add these to the list of goals |
73 # There are two META-INF services files that are needed, add these to the list of goals |
76 BUILD_JAXWS += $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
74 BUILD_JAXWS += $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
77 $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.xjc.Plugin |
75 $(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.xjc.Plugin |
78 |
76 |
79 $(eval $(call SetupArchive,ARCHIVE_JAXWS,$(BUILD_JAXWS) $(BUILD_JAF),\ |
77 # Imitate the property cleaning mechanism in the old build. This will likely be replaced |
|
78 # by the unified functionality in JavaCompilation.gmk, but keep it the same as old build |
|
79 # for now, even though it actually breaks properties containing # in the value. |
|
80 # Using nawk to avoid solaris sed. |
|
81 $(JAXWS_OUTPUTDIR)/jaxws_classes/%.properties: $(JAXWS_TOPDIR)/src/share/jaxws_classes/%.properties |
|
82 $(MKDIR) -p $(@D) |
|
83 $(RM) $@ $@.tmp |
|
84 $(CAT) $< | LANG=C $(NAWK) '{ sub(/#.*$$/,"#"); print }' > $@.tmp |
|
85 $(MV) $@.tmp $@ |
|
86 |
|
87 JAXWS_SRC_PROP_FILES := $(shell $(FIND) $(JAXWS_TOPDIR)/src/share/jaxws_classes -name "*.properties") |
|
88 TARGET_PROP_FILES := $(patsubst $(JAXWS_TOPDIR)/src/share/jaxws_classes/%,\ |
|
89 $(JAXWS_OUTPUTDIR)/jaxws_classes/%,$(JAXWS_SRC_PROP_FILES)) |
|
90 |
|
91 $(JAXWS_OUTPUTDIR)/jaf_classes/%.properties: $(JAXWS_TOPDIR)/src/share/jaf_classes/%.properties |
|
92 $(MKDIR) -p $(@D) |
|
93 $(RM) $@ $@.tmp |
|
94 $(CAT) $< | LANG=C $(NAWK) '{ sub(/#.*$$/,"#"); print }' > $@.tmp |
|
95 $(MV) $@.tmp $@ |
|
96 |
|
97 JAF_SRC_PROP_FILES := $(shell $(FIND) $(JAXWS_TOPDIR)/src/share/jaf_classes -name "*.properties") |
|
98 TARGET_PROP_FILES += $(patsubst $(JAXWS_TOPDIR)/src/share/jaf_classes/%,\ |
|
99 $(JAXWS_OUTPUTDIR)/jaf_classes/%,$(JAF_SRC_PROP_FILES)) |
|
100 |
|
101 $(eval $(call SetupArchive,ARCHIVE_JAXWS,$(BUILD_JAXWS) $(BUILD_JAF) $(TARGET_PROP_FILES),\ |
80 SRCS:=$(JAXWS_OUTPUTDIR)/jaxws_classes $(JAXWS_OUTPUTDIR)/jaf_classes,\ |
102 SRCS:=$(JAXWS_OUTPUTDIR)/jaxws_classes $(JAXWS_OUTPUTDIR)/jaf_classes,\ |
81 SUFFIXES:=.class .properties .xsd .java \ |
103 SUFFIXES:=.class .properties .xsd .java \ |
82 com.sun.mirror.apt.AnnotationProcessorFactory \ |
104 com.sun.mirror.apt.AnnotationProcessorFactory \ |
83 com.sun.tools.internal.xjc.Plugin,\ |
105 com.sun.tools.internal.xjc.Plugin,\ |
84 JAR:=$(JAXWS_OUTPUTDIR)/dist/lib/classes.jar)) |
106 JAR:=$(JAXWS_OUTPUTDIR)/dist/lib/classes.jar)) |