You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2006/12/28 02:38:20 UTC
svn commit: r490631 - in /incubator/nmaven/trunk:
components/dotnet-core/src/main/resources/META-INF/nmaven/
components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/
components/dotnet-executable/src/main/java/org/apa...
Author: sisbell
Date: Wed Dec 27 18:38:19 2006
New Revision: 490631
URL: http://svn.apache.org/viewvc?view=rev&rev=490631
Log:
Merged SI_NET3 branch which provides support for .NET 3.0
Modified:
incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml
incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/CSharpCompilerForProfile.java
incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/DefaultCompiler.java
incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java
incubator/nmaven/trunk/integration-tests/tests/README.txt
incubator/nmaven/trunk/integration-tests/tests/integration-tests.txt
incubator/nmaven/trunk/integration-tests/tests/it0021/pom.xml
incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java
incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml
incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs
Modified: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml (original)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml Wed Dec 27 18:38:19 2006
@@ -60,6 +60,7 @@
<profile>FULL</profile>
<frameworkVersions>
<frameworkVersion>2.0.50727</frameworkVersion>
+ <frameworkVersion>3.0</frameworkVersion>
</frameworkVersions>
<platforms>
<platform>
Modified: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/CSharpCompilerForProfile.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/CSharpCompilerForProfile.java?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/CSharpCompilerForProfile.java (original)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/CSharpCompilerForProfile.java Wed Dec 27 18:38:19 2006
@@ -89,7 +89,6 @@
public List<String> getCommands()
throws ExecutionException
{
- String fv = compilerContext.getCompilerRequirement().getFrameworkVersion();
File path = new File( compilerContext.getCompilerCapability().getAssemblyPath() );
if ( !path.exists() )
{
Modified: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/DefaultCompiler.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/DefaultCompiler.java?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/DefaultCompiler.java (original)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/compiler/impl/DefaultCompiler.java Wed Dec 27 18:38:19 2006
@@ -140,11 +140,28 @@
commands.add( "/nologo" );
}
- if(compilerContext.getKeyInfo().getKeyFileUri() != null)
+ if ( compilerContext.getCompilerRequirement().getVendor().equals( Vendor.MICROSOFT ) &&
+ compilerContext.getCompilerRequirement().getFrameworkVersion().equals( "3.0" ) )
{
- commands.add("/keyfile:" + compilerContext.getKeyInfo().getKeyFileUri());
- } else if(compilerContext.getKeyInfo().getKeyContainerName() != null) {
- commands.add("/keycontainer:" + compilerContext.getKeyInfo().getKeyContainerName());
+ String wcfRef =
+ "/reference:C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.0\\Windows Communication Foundation\\";
+ //TODO: This is a hard-coded path: Don't have a registry value either.
+ commands.add( wcfRef + "System.ServiceModel.dll" );
+ commands.add( wcfRef + "Microsoft.Transactions.Bridge.dll" );
+ commands.add( wcfRef + "Microsoft.Transactions.Bridge.Dtc.dll" );
+ commands.add( wcfRef + "System.ServiceModel.Install.dll" );
+ commands.add( wcfRef + "System.ServiceModel.WasHosting.dll" );
+ commands.add( wcfRef + "System.Runtime.Serialization.dll" );
+ commands.add( wcfRef + "SMDiagnostics.dll" );
+ }
+
+ if ( compilerContext.getKeyInfo().getKeyFileUri() != null )
+ {
+ commands.add( "/keyfile:" + compilerContext.getKeyInfo().getKeyFileUri() );
+ }
+ else if ( compilerContext.getKeyInfo().getKeyContainerName() != null )
+ {
+ commands.add( "/keycontainer:" + compilerContext.getKeyInfo().getKeyContainerName() );
}
if ( config.getCommands() != null )
Modified: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java Wed Dec 27 18:38:19 2006
@@ -153,6 +153,7 @@
{
libraries.add( project.getArtifact() );
}
+
return libraries;
}
@@ -241,7 +242,7 @@
modules = new ArrayList<Artifact>();
artifactContext.init( project, config.getLocalRepository() );
- Set<Artifact> artifacts = project.getDependencyArtifacts();
+ Set<Artifact> artifacts = project.getDependencyArtifacts();//Can add WFC deps prior
for ( Artifact artifact : artifacts )
{
String type = artifact.getType();
Modified: incubator/nmaven/trunk/integration-tests/tests/README.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/tests/README.txt?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/integration-tests/tests/README.txt (original)
+++ incubator/nmaven/trunk/integration-tests/tests/README.txt Wed Dec 27 18:38:19 2006
@@ -6,7 +6,7 @@
it0006: PATH: Generate a class binding from a schema
it0007: PATH: Generate a schema from an XML instance and then create a class binding from the generated schema
it0008: PATH: Generate a WSDL (not included)
-it0009: Test ccnet plugin (run manually: change m2Home in ccnet.config and then type ccnet from the commandline).
+it0009: Removed
it0010: VB-MS: Build a library that is dependent on a .netmodule
it0011: CS-MONO: Build a library that is dependent on a .netmodule
it0012: CS-GNU: Build a .netmodule
@@ -17,4 +17,8 @@
it0017: CS-GNU: Run an NUnit test that uses library dependencies.
it0018: CS-MS-v1.1: Build a library with version 1.1 of the framework (verify manually by looking at the dll manifest)
it0019: CS-MS-Compact: Build a library with the COMPACT framework (windows only)
-it0020: CS-MS-Resources: Generate resource file and embed into assembly
\ No newline at end of file
+it0020: CS-MS-Resources: Generate resource file and embed into assembly
+it0021: VB: Resource generation for VB
+it0022: Signing of an assembly (verify manually by looking for the signature in the manifest)
+it0023: CS-MS: .NET 3.0 compiling
+it0024: CS-MS: .NET 3.0 NUnit
\ No newline at end of file
Modified: incubator/nmaven/trunk/integration-tests/tests/integration-tests.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/tests/integration-tests.txt?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/integration-tests/tests/integration-tests.txt (original)
+++ incubator/nmaven/trunk/integration-tests/tests/integration-tests.txt Wed Dec 27 18:38:19 2006
@@ -14,4 +14,6 @@
it0018
it0019
it0020
-it0021
\ No newline at end of file
+it0021
+it0022
+it0023
\ No newline at end of file
Modified: incubator/nmaven/trunk/integration-tests/tests/it0021/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/tests/it0021/pom.xml?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/integration-tests/tests/it0021/pom.xml (original)
+++ incubator/nmaven/trunk/integration-tests/tests/it0021/pom.xml Wed Dec 27 18:38:19 2006
@@ -1,22 +1,22 @@
<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.maven.it</groupId>
- <artifactId>it0021</artifactId>
- <packaging>library</packaging>
- <version>1.0.0</version>
- <name>it0021</name>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.it</groupId>
+ <artifactId>it0021</artifactId>
+ <packaging>library</packaging>
+ <version>1.0.0</version>
+ <name>it0021</name>
- <build>
- <sourceDirectory>src/main/vb</sourceDirectory>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.dotnet.plugins</groupId>
- <artifactId>maven-compile-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <language>VB</language>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <build>
+ <sourceDirectory>src/main/vb</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <language>VB</language>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
Modified: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java (original)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java Wed Dec 27 18:38:19 2006
@@ -76,6 +76,11 @@
private String testFrameworkVersion;
/**
+ * @parameter expression = "${frameworkVersion}"
+ */
+ private String frameworkVersion;
+
+ /**
* The Vendor for the Compiler. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
* case or white-space sensitive.
*
@@ -140,6 +145,10 @@
if ( testVendor == null )
{
testVendor = vendor;
+ }
+ if ( testFrameworkVersion == null )
+ {
+ testFrameworkVersion = frameworkVersion;
}
//Requirement
Modified: incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml (original)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml Wed Dec 27 18:38:19 2006
@@ -13,6 +13,9 @@
<groupId>org.apache.maven.dotnet.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<extensions>true</extensions>
+ <configuration>
+ <frameworkVersion>3.0</frameworkVersion>
+ </configuration>
</plugin>
</plugins>
</build>
Modified: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs?view=diff&rev=490631&r1=490630&r2=490631
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs (original)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs Wed Dec 27 18:38:19 2006
@@ -187,9 +187,10 @@
string installRoot = (string) microsoftRegistryKey.GetValue("InstallRoot");
if(installRoot == null) throw new ExecutionException("NMAVEN-9011-005");
- nmavenSettingsVendor[] vendors = new nmavenSettingsVendor[2];
+ nmavenSettingsVendor[] vendors = new nmavenSettingsVendor[3];
DirectoryInfo dirInfo11 = new DirectoryInfo(Path.Combine(installRoot, "v1.1.4322"));
DirectoryInfo dirInfo20 = new DirectoryInfo(Path.Combine(installRoot, "v2.0.50727"));
+ DirectoryInfo dirInfo30 = new DirectoryInfo(Path.Combine(installRoot, "v3.0"));
int vendorCounter = 0;
if (dirInfo11.Exists)
{
@@ -213,6 +214,19 @@
nmavenSettingsVendorFramework vf11 = new nmavenSettingsVendorFramework();
vf11.installRoot = dirInfo20.FullName;
vf11.frameworkVersion = "2.0.50727";
+ vendorFrameworks[0] = vf11;
+ vendor.frameworks = vendorFrameworks;
+ vendors[vendorCounter++] = vendor;
+ }
+ if (dirInfo30.Exists)
+ {
+ nmavenSettingsVendor vendor = new nmavenSettingsVendor();
+ vendor.vendorName = "MICROSOFT";
+ vendor.vendorVersion = "3.0";
+ nmavenSettingsVendorFramework[] vendorFrameworks = new nmavenSettingsVendorFramework[1];
+ nmavenSettingsVendorFramework vf11 = new nmavenSettingsVendorFramework();
+ vf11.installRoot = dirInfo30.FullName;
+ vf11.frameworkVersion = "3.0";
vendorFrameworks[0] = vf11;
vendor.frameworks = vendorFrameworks;
vendors[vendorCounter++] = vendor;