1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<?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>
|