You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2006/03/06 16:49:29 UTC

svn commit: r383568 - in /incubator/activemq/trunk/activemq-dotnet: ./ src/ src/main/ src/main/csharp/ src/main/csharp/org/ src/main/csharp/org/apache/ src/main/csharp/org/apache/activemq/ src/test/ src/test/csharp/ src/test/csharp/org/ src/test/csharp...

Author: chirino
Date: Mon Mar  6 07:49:26 2006
New Revision: 383568

URL: http://svn.apache.org/viewcvs?rev=383568&view=rev
Log:
Adding initial maven layout for activemq-dotnet project

Added:
    incubator/activemq/trunk/activemq-dotnet/
    incubator/activemq/trunk/activemq-dotnet/pom.xml
    incubator/activemq/trunk/activemq-dotnet/src/
    incubator/activemq/trunk/activemq-dotnet/src/main/
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/App.cs
    incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/AssemblyInfo.cs
    incubator/activemq/trunk/activemq-dotnet/src/test/
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/
    incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/AppTest.cs

Added: incubator/activemq/trunk/activemq-dotnet/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-dotnet/pom.xml?rev=383568&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/pom.xml (added)
+++ incubator/activemq/trunk/activemq-dotnet/pom.xml Mon Mar  6 07:49:26 2006
@@ -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>

Added: incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/App.cs
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/App.cs?rev=383568&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/App.cs (added)
+++ incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/App.cs Mon Mar  6 07:49:26 2006
@@ -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");
+		}
+	}
+}

Added: incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/AssemblyInfo.cs
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/AssemblyInfo.cs?rev=383568&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/AssemblyInfo.cs (added)
+++ incubator/activemq/trunk/activemq-dotnet/src/main/csharp/org/apache/activemq/AssemblyInfo.cs Mon Mar  6 07:49:26 2006
@@ -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("")]

Added: incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/AppTest.cs
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/AppTest.cs?rev=383568&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/AppTest.cs (added)
+++ incubator/activemq/trunk/activemq-dotnet/src/test/csharp/org/apache/activemq/AppTest.cs Mon Mar  6 07:49:26 2006
@@ -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? :-)");
+		}
+		
+		
+	}
+}
\ No newline at end of file