<assembly>
    <id>bin</id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>tar.gz</format>
        <format>zip</format>
    </formats>

    <fileSets>
        <fileSet>
            <directory>../..</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>LICENSE.txt</include>
                <include>release-notes.html</include>
                <include>README.txt</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>../../modules/core/target</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>sandesha2-core-${version}.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/client/target</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>sandesha2-client-constants-${version}.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/policy/target</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>sandesha2-policy-${version}.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/rampart-integration/target</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>sandesha2-rampart-integration-${version}.jar</include>
            </includes>
        </fileSet>        
        <fileSet>
            <directory>../../modules/mar/target</directory>
            <outputDirectory>sandesha2-${version}-bin</outputDirectory>
            <includes>
                <include>sandesha2-${version}.mar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../xdocs</directory>
            <outputDirectory>sandesha2-${version}-bin/docs</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/samples/target/classes</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/classes</outputDirectory>
            <includes>
                <include>**/*.class</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/samples/src/main/resources/userguide</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients</outputDirectory>
	    <excludes>
		<exclude>services.xml</exclude>
	    </excludes>
        </fileSet>
        <fileSet>
            <directory>../../modules/tests/test-resources</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients</outputDirectory>
            <includes>
                <include>client_axis2.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/samples/target/aars</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/services</outputDirectory>
            <includes>
                <include>RMSampleService.aar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../modules/samples/target/jars</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients</outputDirectory>
            <includes>
                <include>UserguideSampleClients.jar</include>
            </includes>
        </fileSet>
	<!-- Work-a-round to create empty folders -->
        <fileSet>
	    <directory>../../modules/distribution/src/main/assembly</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients/lib</outputDirectory>
            <includes>
                <include>lib.txt</include>
            </includes>
        </fileSet>
        <fileSet>
	    <directory>../../modules/distribution/src/main/assembly</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients/modules</outputDirectory>
            <includes>
                <include>modules.txt</include>
            </includes>
        </fileSet>
        <fileSet>
	    <directory>../../modules/distribution/src/main/assembly</directory>
            <outputDirectory>sandesha2-${version}-bin/samples/clients/services</outputDirectory>
            <includes>
                <include>services.txt</include>
            </includes>
        </fileSet>
    </fileSets>
</assembly>
