You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2011/12/06 03:03:23 UTC
svn commit: r1210758 -
/incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
Author: brett
Date: Tue Dec 6 03:03:23 2011
New Revision: 1210758
URL: http://svn.apache.org/viewvc?rev=1210758&view=rev
Log:
[NPANDAY-410] make sure NPanday.Plugin is now present at execution time
Modified:
incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
Modified: incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java?rev=1210758&r1=1210757&r2=1210758&view=diff
==============================================================================
--- incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java (original)
+++ incubator/npanday/branches/NPANDAY-410/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java Tue Dec 6 03:03:23 2011
@@ -184,6 +184,11 @@ public class NetExecutableFactoryImpl
commands.add( "assemblyFile=" + artifactPath.getAbsolutePath() );
commands.add( "mojoName=" + mojoName );//ArtifactId = namespace
+ // make sure plugin artifact is present to run with in the application base
+ Artifact pluginArtifact = artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin", null,
+ null ).get( 0 );
+ PathUtil.getPrivateApplicationBaseFileFor( pluginArtifact, new File( localRepository ), targetDir );
+
Artifact pluginLoaderArtifact =
artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin.Loader", null, null ).get( 0 );
artifactPath = PathUtil.getPrivateApplicationBaseFileFor( pluginLoaderArtifact, new File( localRepository ), targetDir );