# ---------------------------------------------------------------------------
# JOnAS: Java(TM) Open Application Server
# Copyright (C) 2007-2008 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$
# ---------------------------------------------------------------------------

# Only export an API package
Export-Package org.ow2.jonas.web.tomcat6.custom

# Need to export the Jasper classes used by the generated JSP classes (not in bundle)
-exportcontents org.apache.jasper.runtime;version=${tomcat.version}, \
                org.apache.jasper.compiler.*;version=${tomcat.version}, \
                org.apache.jasper.el.*;version=${tomcat.version}, \
                org.apache.jasper.servlet;version=${tomcat.version}, \
                org.apache.jasper;version=${tomcat.version}, \
                org.apache.catalina.*;version=${tomcat.version}, \
                org.apache.el.*;version=${tomcat.version}, \
                org.apache;version=${tomcat.version}
# o.a.catalina.* must be exported because users with custon Tomcat configuration
# (using custom Valve for example) are extending Tomcat's classes (ValveBase is one of them)

# Need to add this import (properties) because Bnd do not handle multiple level inheritance.
# Ant will not be used (eclipse compiler instead)
# Servlet/JSP resources are used by Digester
# org.eclipse.* are dependencies of the JDT core
Import-Package !org.apache.tools.ant.*, \
               !org.eclipse.jdt.core, \
               !org.eclipse.core.*, \
               !org.eclipse.jdt.core.dom, \
               !org.eclipse.jdt.internal.core.builder, \
               !org.eclipse.jdt.internal.core, \
               !org.eclipse.jdt.internal.compiler.apt.dispatch, \
               javax.transaction.xa, \
               org.ow2.util.archive.api, \
               org.ow2.easybeans.api.naming, \
               org.ow2.easybeans.resolver.api, \
               org.ow2.easybeans.api, \
               org.ow2.carol.jndi.spi,\
               org.ow2.carol.jndi.intercept.spi,\
               *

Private-Package org.ow2.jonas.web.tomcat6.*, \
                org.apache;-split-package:=merge-first, \
                org.apache.catalina.*;-split-package:=merge-first, \
                org.apache.naming.*

# For Building new InitialContext() and finding java URLContextFactory
DynamicImport-Package javax.servlet.resources, \
                      javax.servlet.jsp.resources, \
                      org.slf4j, \
                      org.ow2.cmi.jndi.context,\
                      org.ow2.jonas.deployment.api, \
                      org.ow2.jonas.lib.naming.*,\
                      org.ow2.jonas.jmx, \
                      org.ow2.util.ee.metadata.war.api, \
                      org.ow2.util.ee.metadata.common.api.struct, \
                      org.ow2.jonas.naming, \
                      org.ow2.jonas.workcleaner, \
                      org.ow2.jonas.ws.jaxrpc, \
                      org.ow2.jonas.ws.jaxws, \
                      org.ow2.jonas.ws.axis, \
                      org.ow2.util.ee.deploy.api.deployer,\
                      org.ow2.util.ee.deploy.api.deployable,\
                      org.ow2.easybeans.persistence.api,\
                      org.ow2.jonas.ws.jaxws.http.servlet,\
                      *
# The final '*' for DIP is used to be able to load user declared
# classes (some custom Valve in the server.xml for example).

# Avoid adding transitive dependencies as first level
# dependency in the POM to allow bundle inclusion
Embed-Transitive true

Embed-Dependency asm;inline=true, \
                 catalina-ha;inline=true,\
                 coyote;inline=true, \
                 tribes;inline=true, \
                 juli;inline=true, \
                 jasper;inline=true, \
                 jasper-el;inline=true, \
                 jasper-jdt;inline=true

Require-JOnAS-Services security

