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 ); }
public Artifact getArtifactFor(String groupId, String artifactId) throws PlatformUnsupportedException { List<Artifact> artifacts = artifactContext.getArtifactsFor( groupId, artifactId, null, null ); if ( artifacts.size() == 0 ) { throw new PlatformUnsupportedException( "NPANDAY-066-023: Could not locate the plugin - missing entry in the net-dependencies.xml file: GroupId = " + groupId + ", ArtifactId = " + artifactId ); } Artifact artifact = artifacts.get( 0 ); if ( artifact == null ) { throw new PlatformUnsupportedException( "NPANDAY-066-021: Could not locate the plugin: GroupId = " + groupId + ", ArtifactId = " + artifactId ); } return artifact; }
List<Artifact> artifacts = artifactContext.getArtifactsFor( groupId, artifactId, null, null ); if ( artifacts.size() == 0 ) artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin", null, null ).get( 0 ), localRepository ).getAbsolutePath(); List<Artifact> artifacts = artifactContext.getArtifactsFor( groupId, artifactId, null, null ); if ( artifacts.size() == 0 )
for ( Dependency dependency : gacInstallDependencies ) List<Artifact> artifacts = artifactContext.getArtifactsFor( dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion(),
for ( Dependency dependency : gacInstallDependencies ) List<Artifact> artifacts = artifactContext.getArtifactsFor( dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion(), dependency.getType() );