<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<artifactId>robocode.dotnet.api</artifactId>
	<name>Robocode .NET Robot API</name>
	<description>.NET Robot API for Robocode</description>
	<packaging>dotnet:library</packaging>
	<parent>
		<artifactId>robocode.dotnet</artifactId>
		<groupId>net.sf.robocode</groupId>
		<version>1.9.3.9</version>
	</parent>
	<build>
		<finalName>robocode</finalName>
		<sourceDirectory>src</sourceDirectory>
		<plugins>
			<plugin>
				<groupId>org.sonatype.nmaven.plugins</groupId>
				<artifactId>maven-dotnet-compiler-plugin</artifactId>
				<configuration>
					<aditionalOptions>/unsafe /warn:0 /nowarn:1591 /keyfile:"${basedir}/../tools/keys/robocode.snk"</aditionalOptions>
					<finalName>robocode.dll</finalName>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
				<artifactId>maven-antrun-extended-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-classes</phase>
						<configuration>
							<tasks>
								<copy file="target/comments.xml" tofile="target/robocode.xml" />
								<!--
                                for this to run, one must have SHFBROOT environment variable set properly.
                                it comes with installation of SHFB
                                -->
								<exec dir="target" executable="cmd.exe" failonerror="false">
									<arg line="/c %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release ../robotAPI.shfbproj" />
								</exec>
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
