<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Distribution License v. 1.0, which is available at
    http://www.eclipse.org/org/documents/edl-v10.php.

    SPDX-License-Identifier: BSD-3-Clause

-->

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">

    <id>zip-bundle</id>

    <includeBaseDirectory>false</includeBaseDirectory>

    <formats>
        <format>zip</format>
    </formats>

    <fileSets>
        <fileSet>
            <directory>src/main/resources</directory>
            <outputDirectory>jaxb-ri</outputDirectory>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
            <includes>
                <include>bin/*.bat</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/resources</directory>
            <outputDirectory>jaxb-ri</outputDirectory>
            <directoryMode>0755</directoryMode>
            <fileMode>0755</fileMode>
            <includes>
                <include>bin/*.sh</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/resources</directory>
            <outputDirectory>jaxb-ri</outputDirectory>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
            <includes>
                <include>*</include>
            </includes>
        </fileSet>
    </fileSets>

    <dependencySets>
        <dependencySet>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
            <useProjectArtifact>false</useProjectArtifact>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <useTransitiveFiltering>true</useTransitiveFiltering>
            <outputDirectory>jaxb-ri/mod</outputDirectory>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
            <includes>
                <include>jakarta.xml.bind:jakarta.xml.bind-api</include>
                <include>com.sun.xml.bind:jaxb-core</include>
                <include>com.sun.xml.bind:jaxb-impl</include>
                <include>com.sun.xml.bind:jaxb-xjc</include>
                <include>com.sun.xml.bind:jaxb-jxc</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
            <useProjectArtifact>false</useProjectArtifact>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <outputDirectory>jaxb-ri/docs</outputDirectory>
            <unpack>true</unpack>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
            <includes>
                <include>com.sun.xml.bind:jaxb-release-documentation</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
            <useProjectArtifact>false</useProjectArtifact>
            <outputDirectory>jaxb-ri</outputDirectory>
            <unpack>true</unpack>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
            <includes>
                <include>com.sun.xml.bind:jaxb-samples</include>
            </includes>
        </dependencySet>
    </dependencySets>

</assembly>
