#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# JDK jars where component classes come from as second choice
# IF the component deliverables are not available.
# Clean up these lists so empty lists are empty
# Relative paths to import component deliverables
#################################################################
# Macros:
# Importing component class files
@if [ "$($1)" != "" ] ; then \
$(ECHO) "Importing classes from component $1"; \
fi
# Importing optional component doc files (for man pages?)
$(ECHO) "Importing docs from component $1"; \
fi
# Importing optional component src files (for jdk src.zip and javadoc)
@if [ "$($1)" != "" ] ; then \
$(ECHO) "Importing sources from component $1"; \
fi
# Importing optional component bin files (for install image)
$(ECHO) "Importing binaries from component $1"; \
fi
# Unzip zip file $2 into directory $1 (if $2 exists)
# Warning: $2 must be absolute path not relative
( \
)
# Unjar directories $3 from jar file $2 into directory $1 (if $2 exists)
# Warning: $2 must be absolute path not relative
( \
)
# Import all component sources into directory $1
$(call import-one-sources,LANGTOOLS_DIST,$1)
$(call import-one-sources,CORBA_DIST,$1)
$(call import-one-sources,JAXWS_DIST,$1)
# Import all component docs into directory $1 (optional)
$(call import-one-docs,LANGTOOLS_DIST,$1)
$(call import-one-docs,CORBA_DIST,$1)
$(call import-one-docs,JAXWS_DIST,$1)
# Import all component bins into directory $1 (optional)
$(call import-one-binaries,LANGTOOLS_DIST,$1)
$(call import-one-binaries,CORBA_DIST,$1)
$(call import-one-binaries,JAXWS_DIST,$1)
fi
# Import all component classes into directory $1
# Here we special case classes coming from JDK when component not supplied
fi
fi
$(call import-one-classes,LANGTOOLS_DIST,$1)
$(call import-one-classes,CORBA_DIST,$1)
$(call import-one-classes,JAXWS_DIST,$1)
# Clean up import files
$(RM) -r $1
$(RM) -r $1
$(RM) -r $(IMPORT_TOOLS_PACKAGES:%=$1/%)
$(RM) -r $(IMPORT_RT_PACKAGES:%=$1/%)