<assembly>
	<id>SPSS</id>

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

	<baseDirectory>moa-spss-${project.version}</baseDirectory>

	<moduleSets>
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-ws</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<dependencySets>
					<dependencySet>
						<includes>
							<include>xalan-bin-dist:xalan</include>
							<include>xerces:xercesImpl</include>
							<include>xalan-bin-dist:xml-apis</include>
                            <include>xalan-bin-dist:serializer</include>
						</includes>
						<outputDirectory>/endorsed</outputDirectory>
                        <!-- strip version off the artifact file names -->
                        <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
					<dependencySet>
						<includes>
							<include>iaik.prod:iaik_ecc</include>
							<include>iaik.prod:iaik_jce_full</include>
							<include>iaik.prod:iaik_Pkcs11Provider</include>
							<include>iaik.prod:iaik_Pkcs11Wrapper</include>
						</includes>
						<outputDirectory>/ext</outputDirectory>
                        <!-- strip version off the artifact file names -->
                        <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
				</dependencySets>
				<outputFileNameMapping>moa-spss.${extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
        <moduleSet>
            <includes>
                <include>MOA.spss.server:moa-spss-lib</include>
            </includes>
            <binaries>
                <includeDependencies>true</includeDependencies>
                <dependencySets>
                    <dependencySet>
                        <includes>
                            <include>iaik.prod:iaik_Pkcs11Wrapper:dll:win32</include>
                        </includes>
                        <outputDirectory>/pkcs11/win32</outputDirectory>
                        <outputFileNameMapping>pkcs11wrapper.${extension}</outputFileNameMapping>
                    </dependencySet>
                </dependencySets>
            </binaries>
        </moduleSet>                
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-lib</include>
			</includes>
			<binaries>
				<attachmentClassifier>javadoc</attachmentClassifier>
				<includeDependencies>false</includeDependencies>
				<outputFileNameMapping>api-doc</outputFileNameMapping>
				<outputDirectory>/doc</outputDirectory>
				<unpack>true</unpack>
			</binaries>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-tools</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<dependencySets>
					<dependencySet>
						<includes>
							<include>iaik.prod:iaik_moa</include>
							<include>log4j:log4j</include>
							<include>xalan-bin-dist:xalan</include>
						</includes>
						<outputDirectory>/tools</outputDirectory>
                        <!-- strip version off the artifact file names -->
                        <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
				</dependencySets>
				<outputDirectory>/tools</outputDirectory>
				<outputFileNameMapping>tools.${extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
	</moduleSets>
	
	<files>
		<file>
			<source>${basedir}/spss/handbook/handbook.html</source>
			<outputDirectory>/doc</outputDirectory>
		</file>
	</files>
	
	<fileSets>
		<fileSet>
			<directory>${basedir}/spss/server</directory>
			<outputDirectory>/</outputDirectory>
			<includes>
				<include>*.txt</include>
			</includes>
			<excludes>
				<exclude>readme.src.txt</exclude>
			</excludes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/conf</directory>
			<outputDirectory>/conf</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/handbook</directory>
			<outputDirectory>/doc/handbook</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/clients</directory>
			<outputDirectory>/doc/clients</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/server/serverlib/resources/licenses</directory>
			<outputDirectory>/licenses</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/server/serverws/data/deploy/tomcat</directory>
			<outputDirectory>/tomcat</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/server/serverws/data/deploy/tools</directory>
			<outputDirectory>/tools</outputDirectory>
		</fileSet>
	</fileSets>
	
</assembly>