# ---------------------------------------------------------------------------
# JOnAS: Java(TM) Open Application Server
# Copyright (C) 2007 Bull S.A.S.
# Contact: jonas-team@ow2.org
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
# USA
# ---------------------------------------------------------------------------
# $Id$
# ---------------------------------------------------------------------------

## ---------------------------------------------------------------------- ##
##
## For curious users:
## This file relies on properties defined in different files:
##  * lib/bootstrap/felix-launcher.jar!/org/ow2/jonas/launcher/felix/javase-profiles.properties
##
## Note: These values can be overriden by System properties
##  Example: force JVM 1.5 profile -Djavase-packages=${javase-1.5}
##
## ---------------------------------------------------------------------- ##

# # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Default list of packages patterns reprensenting the bootdelegation packages
#
# Note: All theses packages are defined twice because xxxx.* do not
# match the xxxx package itself.
#
# Note: This list assumes that theses packages are availables from
# the System ClassLoader. If changed, ensure that the library jar
# file is placed in an endorsed directory ($JONAS_ROOT/lib/endorsed
# for example).
#
# Note: Read theses articles to better understand OSGi bootdelegation model:
#  http://blog.springsource.com/2009/01/19/exposing-the-boot-classpath-in-osgi/
#  http://paxrunner.ops4j.org/space/Boot+delegation+packages#Bootdelegationpackages-specs
#
bootdelegation-packages com.sun.corba, \
                        com.sun.corba.*, \
                        com.ibm.CORBA, \
                        com.ibm.CORBA.*, \
                        com.sun.org.apache.xalan.internal, \
                        com.sun.org.apache.xalan.internal.*, \
                        com.sun.org.apache.xerces.internal, \
                        com.sun.org.apache.xerces.internal.*, \
                        com.sun.org.apache.xml.internal, \
                        com.sun.org.apache.xml.internal.*, \
                        com.sun.org.apache.xpath.internal, \
                        com.sun.org.apache.xpath.internal.*, \
                        com.sun.jndi.url, \
                        com.sun.jndi.url.*, \
                        com.sun.image, \
                        com.sun.image.*

# # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# OSGi framework packages exported by the underlying JVM (and System bundle)
# That list should be kept in synch with framework supported version
#
osgi-system-packages org.osgi.framework; version=1.5.0, \
                     org.osgi.framework.launch; version=1.0.0, \
                     org.osgi.framework.hooks.service; version=1.0.0, \
                     org.osgi.service.packageadmin; version=1.2.0, \
                     org.osgi.service.startlevel; version=1.1.0, \
                     org.osgi.service.url; version=1.0.0, \
                     org.osgi.util.tracker; version=1.4.0

# # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ${javase.version} is computed by the launcher
#
javase-packages ${javase-${javase.version}}
