blob: 5155c9793d1bafac3df294dca0bfa6f2cff1aa4f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>stage-distribution</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- glassfish-common -->
<fileSet>
<directory>${temp.dir}/glassfish-common/${install.dir.name}</directory>
<fileMode>755</fileMode>
<includes>
<include>bin/**</include>
</includes>
<outputDirectory>${install.dir.name}</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/glassfish-common/${install.dir.name}</directory>
<excludes>
<exclude>bin/**</exclude>
</excludes>
<outputDirectory>${install.dir.name}</outputDirectory>
</fileSet>
<!-- javadb -->
<fileSet>
<directory>${temp.dir}/derby/</directory>
<excludes>
<exclude>demo/**</exclude>
<exclude>docs/**</exclude>
<exclude>javadoc/**</exclude>
<exclude>test/**</exclude>
</excludes>
<outputDirectory>${install.dir.name}/javadb</outputDirectory>
</fileSet>
<!-- lib/dtds -->
<fileSet>
<directory>${temp.dir}/appserver-dtds/glassfish/lib/dtds</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/dtds</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/nucleus-dtds/lib/dtds</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/dtds</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/descriptors/glassfish/lib/dtds</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/dtds</outputDirectory>
</fileSet>
<!-- lib/schemas -->
<fileSet>
<directory>${temp.dir}/nucleus-schemas/lib/schemas</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/schemas</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/appserver-schemas/glassfish/lib/schemas</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/schemas</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/descriptors/glassfish/lib/schemas</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/schemas</outputDirectory>
</fileSet>
<!-- lib/install/ -->
<fileSet>
<directory>${temp.dir}/jdbc-ra/glassfish/lib/install/applications</directory>
<includes>
<include>__cp_jdbc_ra/**</include>
<include>__dm_jdbc_ra/**</include>
<include>__ds_jdbc_ra/**</include>
<include>__xa_jdbc_ra/**</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib/install/applications</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/templates/glassfish/lib/install/databases/dbvendormapping</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/install/databases/dbvendormapping</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/templates/glassfish/lib/install/templates/resources/jdbc</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/install/templates/resources/jdbc</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}/descriptors/glassfish/lib/install/templates/resources/custom</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/install/templates/resources/custom</outputDirectory>
</fileSet>
<!-- admingui -->
<fileSet>
<directory>${temp.dir}/war</directory>
<outputDirectory>${install.dir.name}/glassfish/lib/install/applications/__admingui</outputDirectory>
</fileSet>
<!-- staging jars -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>nucleus-domain.jar</include>
<include>appserver-domain.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/common/templates/gf</outputDirectory>
</fileSet>
<!-- lib/asadmin/ -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>server-mgmt.jar</include>
<include>osgi-cli-interactive.jar</include>
<include>cluster-cli.jar</include>
<include>cli-optional.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib/asadmin</outputDirectory>
</fileSet>
<!-- lib/client -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>appserver-cli.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib/client</outputDirectory>
</fileSet>
<!-- lib/monitor/ -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>flashlight-agent.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib/monitor</outputDirectory>
</fileSet>
<!-- lib/embedded -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>glassfish-embedded-shell.jar</include>
<include>glassfish-embedded-static-shell.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib/embedded</outputDirectory>
</fileSet>
<!-- lib/ -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>javaee.jar</include>
<include>appserv-rt.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib</outputDirectory>
</fileSet>
<!-- modules/lib -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>grizzly-npn-api.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/lib</outputDirectory>
</fileSet>
<!-- felix -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>felix.jar</include>
</includes>
<outputDirectory>${install.dir.name}/glassfish/osgi/felix/bin</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>org.apache.felix.*.jar</include>
<include>org.osgi.util.function.jar</include>
<include>org.osgi.util.promise.jar</include>
</includes>
<excludes>
<exclude>org.apache.felix.bundlerepository.jar</exclude>
</excludes>
<outputDirectory>${install.dir.name}/glassfish/modules/autostart</outputDirectory>
</fileSet>
<!-- staging modules -->
<fileSet>
<directory>${temp.dir}</directory>
<includes>
<include>*.jar</include>
</includes>
<excludes>
<exclude>server-mgmt.jar</exclude>
<exclude>osgi-cli-interactive.jar</exclude>
<exclude>flashlight-agent.jar</exclude>
<exclude>org.apache.felix.configadmin.jar</exclude>
<exclude>org.apache.felix.fileinstall.jar</exclude>
<exclude>org.apache.felix.gogo.command.jar</exclude>
<exclude>org.apache.felix.gogo.runtime.jar</exclude>
<exclude>org.apache.felix.gogo.shell.jar</exclude>
<exclude>org.apache.felix.scr.jar</exclude>
<exclude>org.osgi.util.function.jar</exclude>
<exclude>org.osgi.util.promise.jar</exclude>
<exclude>org.apache.felix.eventadmin.jar</exclude>
<exclude>felix.jar</exclude>
<exclude>nucleus-domain.jar</exclude>
<exclude>appserver-domain.jar</exclude>
<exclude>grizzly-npn-api.jar</exclude>
<exclude>cli-optional.jar</exclude>
<exclude>appserver-cli.jar</exclude>
<exclude>cluster-cli.jar</exclude>
<exclude>glassfish-embedded-shell.jar</exclude>
<exclude>glassfish-embedded-static-shell.jar</exclude>
<exclude>javaee.jar</exclude>
<exclude>appserv-rt.jar</exclude>
<exclude>descriptors.jar</exclude>
<exclude>templates.jar</exclude>
</excludes>
<outputDirectory>${install.dir.name}/glassfish/modules</outputDirectory>
</fileSet>
</fileSets>
</assembly>