mirror of https://github.com/apache/activemq.git
Adding initial maven layout for activemq-dotnet project
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
900f6e9de1
commit
e7d32ad93d
|
@ -0,0 +1,145 @@
|
|||
<?xml version="1.0"?>
|
||||
<project>
|
||||
<parent>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq</artifactId>
|
||||
<version>4.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>activemq-dotnet</artifactId>
|
||||
<packaging>dotnet-library</packaging>
|
||||
|
||||
<build>
|
||||
|
||||
<outputDirectory>target/dotnet-assembly</outputDirectory>
|
||||
<testOutputDirectory>target/test-dotnet-assembly</testOutputDirectory>
|
||||
<sourceDirectory>src/main/csharp</sourceDirectory>
|
||||
<testSourceDirectory>src/test/csharp</testSourceDirectory>
|
||||
|
||||
<plugins>
|
||||
|
||||
<!-- Manages the lifecycle of a dotnet project -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-csharp-lifecycle-plugin</artifactId>
|
||||
<version>1.0.RC6-SNAPSHOT</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
|
||||
<!-- Used to customize the dotnet compiler options -->
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0</version>
|
||||
<extensions>true</extensions>
|
||||
|
||||
<configuration>
|
||||
<compilerId>csharp</compilerId>
|
||||
<fork>true</fork>
|
||||
|
||||
<compilerArguments>
|
||||
<doc>true</doc>
|
||||
<!-- example of ignoring warnings -->
|
||||
<!-- <nowarn>1591</nowarn> -->
|
||||
</compilerArguments>
|
||||
|
||||
<includes>
|
||||
<include>**/*.cs</include>
|
||||
</includes>
|
||||
|
||||
</configuration>
|
||||
|
||||
<!-- executions need to be specified for the dotnet plugin (is slightly ugly, hopefully can get rid of in future -->
|
||||
<executions>
|
||||
|
||||
<!-- this configuration is required to tell the compiler what is different about the main compile as apposed to the test compile -->
|
||||
<execution>
|
||||
<id>compile</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<compilerArguments>
|
||||
<target>library</target>
|
||||
<!-- mainClass>MyNamespace.MyStaticMainClass</mainClass -->
|
||||
</compilerArguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- this configuration is required to tell the compiler what is different about the main compile as apposed to the test compile -->
|
||||
<execution>
|
||||
<id>testCompile</id>
|
||||
<phase>test-compile</phase>
|
||||
<goals>
|
||||
<goal>testCompile</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<compilerArguments>
|
||||
<!-- the library element is required for test compile -->
|
||||
<target>library</target>
|
||||
<!-- the isTest element is required for the test compile -->
|
||||
<out>unit-tests.dll</out>
|
||||
</compilerArguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-compiler-csharp</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
||||
<!-- For Running NUNIT tests -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-nunit-plugin</artifactId>
|
||||
<version>1.0.RC6-SNAPSHOT</version>
|
||||
<!-- configuration>
|
||||
<configFile>src/main/resources/App.config</configFile>
|
||||
</configuration -->
|
||||
</plugin>
|
||||
|
||||
<!-- For VS.NET project generation -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-vstudio-plugin</artifactId>
|
||||
<version>1.0.RC6-SNAPSHOT</version>
|
||||
<configuration>
|
||||
<frameworkHome>${dotnet.home}</frameworkHome>
|
||||
<includes>
|
||||
<include>**/*.aspx</include>
|
||||
<include>**/*.resx</include>
|
||||
<include>**/*.cs</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<!-- example of a system dependency -->
|
||||
<!-- dependency>
|
||||
<groupId>System</groupId>
|
||||
<artifactId>System</artifactId>
|
||||
<version>1.1</version>
|
||||
<type>dotnet-library</type>
|
||||
<scope>system</scope>
|
||||
<systemPath>${dotnet.home}/System.dll</systemPath>
|
||||
</dependency -->
|
||||
|
||||
<dependency>
|
||||
<groupId>nunit</groupId>
|
||||
<artifactId>nunit-console</artifactId>
|
||||
<version>2.2</version>
|
||||
<type>dotnet-exe</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
|
||||
namespace org.apache.activemq
|
||||
{
|
||||
/// <summary>
|
||||
/// Sample Maven Dotnet App
|
||||
/// </summary>
|
||||
public class App
|
||||
{
|
||||
/// <summary>
|
||||
/// A public call on the library...
|
||||
/// </summary>
|
||||
public void doSomething()
|
||||
{
|
||||
Console.WriteLine("Hello World");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace org.apache.activemq
|
||||
{
|
||||
/// <summary>
|
||||
/// A very simple example of a dotnet test.
|
||||
/// </summary>
|
||||
[TestFixture] public class AppTest
|
||||
{
|
||||
|
||||
[Test] public void doTest()
|
||||
{
|
||||
Assert.AreEqual(true, true);
|
||||
Console.WriteLine("Who said Java and dotnet don\'t mix? :-)");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue