<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>bundle</id>
	<formats>
		<format>tar.gz</format>
	</formats>

	<fileSets>
		<fileSet>
			<directory>${project.basedir}/src/main/assembly/</directory>
			<outputDirectory>.</outputDirectory>
			<includes>
				<include>db.out</include>
				<include>example.lst</include>
				<include>LICENSE</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>${project.build.directory}</directory>
			<outputDirectory>.</outputDirectory>
			<includes>
				<include>${project.build.finalName}.jar</include>
			</includes>
		</fileSet>
		
	</fileSets>
	<!-- Shell scripts must be filtered for the correct jar name -->
	<files>
		<file>
			<source>src/main/assembly/runCE.sh</source>
			<outputDirectory>/</outputDirectory>
			<filtered>true</filtered>
			<fileMode>0755</fileMode>
		</file>
		<file>
			<source>src/main/assembly/runCECP.sh</source>
			<outputDirectory>/</outputDirectory>
			<filtered>true</filtered>
			<fileMode>0755</fileMode>
		</file>
		<file>
			<source>src/main/assembly/runFATCAT.sh</source>
			<outputDirectory>/</outputDirectory>
			<filtered>true</filtered>
			<fileMode>0755</fileMode>
		</file>
		<file>
			<source>src/main/assembly/startFarmJob.sh</source>
			<outputDirectory>/</outputDirectory>
			<filtered>true</filtered>
			<fileMode>0755</fileMode>
		</file>
	</files>
	
</assembly>