Author: jfallows
Date: Fri Apr 29 01:00:12 2011
New Revision: 1097666
URL: http://svn.apache.org/viewvc?rev=1097666&view=rev
Log:
Fix NPANDAY-400 : Mono missing system libraries references during compilation
Modified:
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java
Modified:
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java?rev=1097666&r1=1097665&r2=1097666&view=diff
==============================================================================
---
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java
(original)
+++
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java
Fri Apr 29 01:00:12 2011
@@ -200,12 +200,22 @@ public final class DefaultCompiler
}
commands.add( "/warnaserror-" );
//commands.add( "/nowarn" );
-// if ( compilerContext.getCompilerRequirement().getVendor().equals(
Vendor.MONO ) )
-// {
-// commands.add( "/reference:System.Drawing" );
-// commands.add( "/reference:System.Windows.Forms" );
-// commands.add( "/reference:System.Web.Services" );
-// }
+ if ( compilerContext.getCompilerRequirement().getVendor().equals(
Vendor.MONO ) )
+ {
+ commands.add( "/nostdlib" );
+ commands.add( "/noconfig" );
+ commands.add( "/reference:mscorlib" );
+ commands.add( "/reference:System.Data" );
+ commands.add( "/reference:System" );
+ commands.add( "/reference:System.Drawing" );
+ commands.add( "/reference:System.Messaging" );
+ commands.add( "/reference:System.Web.Services" );
+ commands.add( "/reference:System.Windows.Forms" );
+ commands.add( "/reference:System.Xml" );
+ commands.add( "/reference:System.Core" );
+ commands.add( "/reference:System.Data.DataSetExtensions" );
+ commands.add( "/reference:System.Xml.Linq" );
+ }
if ( !compilerContext.getNetCompilerConfig().isTestCompile() )
{
commands.add(