public static boolean isDotnetMavenPlugin(String packaging) { return isDotnetMavenPlugin( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnetLibrary(String packaging) { return isDotnetLibrary( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnetExecutable(String packaging) { return isDotnetExecutable( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnet4Gac(String packaging) { return isDotnet4Gac( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnetAnyGac(String packaging) { return isDotnetAnyGac( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnetModule(String packaging) { return isDotnetModule( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public static boolean isDotnetExecutableConfig(String packaging) { return isDotnetExecutableConfig( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
public List<String> getCommands() throws MojoExecutionException { List<String> commands = new ArrayList<String>(); String targetPath = "target" + File.separator + project.getArtifactId() + "." + ArtifactType.getArtifactTypeForPackagingName( project.getPackaging() ).getExtension(); String outputPath = "target" + File.separator + "Output.xml"; String relativePathToTargetFile = ( rootDir != null ) ? new File( project.getBasedir(), targetPath ).getAbsolutePath().substring( rootDir.getAbsolutePath().length() + 1 ) : targetPath; String relativePathToOutputFile = ( rootDir != null ) ? new File( project.getBasedir(), outputPath ).getAbsolutePath().substring( rootDir.getAbsolutePath().length() + 1 ) : outputPath; commands.add( "/f:" + relativePathToTargetFile ); commands.add( "/o:" + relativePathToOutputFile ); return commands; } }
String ext = ArtifactType.getArtifactTypeForPackagingName( artifact.getType() ).getExtension();
public static boolean isDotnetGenericGac(ArtifactType packaging) { // the new gac should always be generic. // GAC_MSIL, GAC32 and GAC should be deprecated without // any replacements. return packaging.equals( ArtifactType.DOTNET_GAC ) || packaging.equals( ArtifactType.GAC_GENERIC ); }
private CompilerConfig createCompilerConfig(String source, String destination) throws MojoExecutionException { CompilerConfig compilerConfig = (CompilerConfig) CompilerConfig.Factory.createDefaultExecutableConfig(); compilerConfig.setLocalRepository( localRepository ); compilerConfig.setCommands( getCommands( source, destination ) ); String artifactTypeName = project.getArtifact().getType(); ArtifactType artifactType = ArtifactType.getArtifactTypeForPackagingName( artifactTypeName ); if ( artifactType.equals( ArtifactType.NULL ) ) { throw new MojoExecutionException( "NPANDAY-900-002: Unrecognized artifact type: Language = " + language + ", Vendor = " + vendor + ", ArtifactType = " + artifactTypeName ); } compilerConfig.setArtifactType( artifactType ); return compilerConfig; }
ArtifactType artifactType = ArtifactType.getArtifactTypeForPackagingName( artifactTypeName ); if ( artifactType.equals( ArtifactType.NULL ) )
rootDependency.setVersion( model.getVersion() ); rootDependency.setType( ArtifactType.getArtifactTypeForPackagingName( model.getPackaging() ).getPackagingType() ); rootDependency.setScope( Artifact.SCOPE_COMPILE ); dependencies.add( rootDependency );
ArtifactType.getArtifactTypeForPackagingName( artifact.getType() ).getExtension() ); artifact.setArtifactHandler( handler );
ArtifactType.getArtifactTypeForPackagingName( artifact.getType() ).getExtension() ); artifact.setArtifactHandler( handler );
logger.debug( "NPANDAY-061-006: Artifact Type:" + type); logger.debug( "NPANDAY-061-007: Artifact Type:" + ArtifactTypeHelper.isDotnetGenericGac( type )); ArtifactType artifactType = ArtifactType.getArtifactTypeForPackagingName( type ); if ( ArtifactTypeHelper.isDotnetModule( type ))
ArtifactType type = ArtifactType.getArtifactTypeForPackagingName( assembly.getType() );