<!--

    Copyright (c) 2001-2018 Mathew A. Nelson and Robocode contributors
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://robocode.sourceforge.net/license/epl-v10.html

-->
<assembly>
	<id>setup</id>
	<formats>
		<format>dir</format>
		<format>jar</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<dependencySets>
		<!-- robocode.api -> robocode.jar -->
		<dependencySet>
			<includes>
				<include>net.sf.robocode:robocode.api</include>
			</includes>
			<outputDirectory>libs</outputDirectory>
			<unpack>false</unpack>
			<outputFileNameMapping>robocode.${artifact.extension}</outputFileNameMapping>
		</dependencySet>
		<!-- robocode.roborumble -> roborumble.jar -->
		<dependencySet>
			<includes>
				<include>net.sf.robocode:robocode.roborumble</include>
			</includes>
			<outputDirectory>libs</outputDirectory>
			<unpack>false</unpack>
			<outputFileNameMapping>roborumble.${artifact.extension}</outputFileNameMapping>
		</dependencySet>
		<!-- other libraries -->
		<dependencySet>
			<excludes>
				<!-- Used for creating this assembly -->
				<exclude>net.sf.robocode:robocode.distribution</exclude>
				<!-- These are unpacked in distribution files -->
				<exclude>net.sf.robocode:robocode.installer</exclude>
				<exclude>net.sf.robocode:robocode.content</exclude>
				<exclude>net.sf.robocode:robocode.samples</exclude>
				<!-- Handled independently and renamed into robocode.jar -->
				<exclude>net.sf.robocode:robocode.api</exclude>
				<!-- Handled independently and renamed into roborumble.jar -->
				<exclude>net.sf.robocode:robocode.roborumble</exclude>
			</excludes>
			<outputDirectory>libs</outputDirectory>
			<unpack>false</unpack>
		</dependencySet>
		<!-- installer and content -->
		<dependencySet>
			<includes>
				<include>net.sf.robocode:robocode.content</include>
				<include>net.sf.robocode:robocode.installer</include>
			</includes>
			<unpack>true</unpack>
			<unpackOptions>
				<excludes>
					<exclude>**/META-INF/**</exclude>
				</excludes>
<!-- Not possible to have both unpack=true and lineEnding
				<lineEnding>lf</lineEnding>
-->
			</unpackOptions>
		</dependencySet>
		<!-- robot samples -->
		<dependencySet>
			<includes>
				<include>net.sf.robocode:robocode.samples</include>
			</includes>
			<unpack>true</unpack>
<!-- Not possible to have both unpack=true and lineEnding
			<unpackOptions>
				<lineEnding>lf</lineEnding>
			</unpackOptions>
-->
			<outputDirectory>robots</outputDirectory>
		</dependencySet>
	</dependencySets>
	<fileSets>
		<fileSet>
			<directory>../robocode.api/target/site/apidocs</directory>
			<outputDirectory>javadoc</outputDirectory>
			<lineEnding>lf</lineEnding> <!-- for Unix/Linux -->
		</fileSet>
	</fileSets>
	<files>
		<file>
			<source>../versions.md</source>
			<lineEnding>lf</lineEnding> <!-- for Unix/Linux -->
		</file>
	</files>
</assembly>
