public NetExecutable getPluginLoaderFor(Artifact artifact, VendorInfo vendorInfo, String localRepository, File parameterFile, String mojoName) throws PlatformUnsupportedException { //AssemblyRepositoryLayout layout = new AssemblyRepositoryLayout(); File artifactPath = PathUtil.getPrivateApplicationBaseFileFor( artifact, new File( localRepository ) ); List<String> commands = new ArrayList<String>(); commands.add( "parameterFile=" + parameterFile.getAbsolutePath() ); commands.add( "assemblyFile=" + artifactPath.getAbsolutePath() ); commands.add( "mojoName=" + mojoName );//ArtifactId = namespace Artifact pluginLoaderArtifact = artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin.Loader", null, null ).get( 0 ); artifactPath = PathUtil.getPrivateApplicationBaseFileFor( pluginLoaderArtifact, new File( localRepository ) ); commands.add( "startProcessAssembly=" + artifactPath.getAbsolutePath() ); return getNetExecutableFromRepository( "org.apache.npanday.plugins", "NPanday.Plugin.Runner", vendorInfo, new File( localRepository ), commands, false ); }
File artifactPath = PathUtil.getPrivateApplicationBaseFileFor( artifact, localRepository ); commands.add( "startProcessAssembly=" + artifactPath.getAbsolutePath() ); String pluginArtifactPath = PathUtil.getPrivateApplicationBaseFileFor( artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin", null, null ).get( 0 ), localRepository ).getAbsolutePath(); File artifactPath = PathUtil.getPrivateApplicationBaseFileFor( artifact, localRepository ); List<String> modifiedCommands = new ArrayList<String>(); String exe = null;
private void resolveArtifact(Artifact artifact) throws ComponentLookupException, MojoExecutionException { File localRepository = new File(getLocalRepository()); if (PathUtil.getPrivateApplicationBaseFileFor(artifact, localRepository).exists())
PathUtil.getPrivateApplicationBaseFileFor( artifact, compilerConfig.getLocalRepository() ); executionPaths.add( artifactPath.getParentFile().getAbsolutePath() );