Author: brett
Date: Wed Jul  9 04:23:03 2014
New Revision: 1609008

URL: http://svn.apache.org/r1609008
Log:
improve on hardcoding to whitelist appropriate dependencies

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=1609008&r1=1609007&r2=1609008&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
 Wed Jul  9 04:23:03 2014
@@ -22,6 +22,7 @@ package npanday.executable.compiler.impl
 import com.google.common.base.Function;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import npanday.ArtifactTypeHelper;
 import npanday.PlatformUnsupportedException;
 import npanday.executable.CommandFilter;
 import npanday.executable.ExecutionException;
@@ -131,7 +132,7 @@ public final class DefaultCompiler
                 }
                 String path = artifact.getFile().getAbsolutePath();
 
-                if( !path.contains( ".jar" ) )
+                if(ArtifactTypeHelper.isDotnetAssembly(artifact.getType()))
                 {
                     commands.add( "/reference:" + path );
                 }


Reply via email to