/** * Matches artifacts of type module * * @param artifact the artifact to match * @return true if artifact is of type module, otherwise returns false. */ public boolean match( Artifact artifact ) { return ArtifactTypeHelper.isDotnetModule( artifact.getType() ); } }
public static boolean isDotnetModule(String packaging) { return isDotnetModule( ArtifactType.getArtifactTypeForPackagingName( packaging ) ); }
private void addProjectArtifactForTestCompile( List<Artifact> libraries ) { if ( config.isTestCompile() && ( ArtifactTypeHelper.isDotnetLibrary( config.getArtifactType() ) || ArtifactTypeHelper.isDotnetMavenPlugin( config.getArtifactType() )) && project.getArtifact().getFile() != null && project.getArtifact().getFile().exists() && !libraries.contains( project.getArtifact() ) && !ArtifactTypeHelper.isDotnetModule( project.getArtifact().getType() ) ) { libraries.add( project.getArtifact() ); } }
public List<Artifact> getDirectModuleDependencies() { List<Artifact> artifacts; try { artifacts = artifactContext.getNetModulesFor( project.getArtifact() ); } catch ( ArtifactException e ) { logger.error( "NPANDAY-061-000: Improper Initialization of the Net Modules", e ); return new ArrayList<Artifact>(); //TODO: How to handle this: usually implies improper init of ArtifactContext } if ( config.isTestCompile() && ArtifactTypeHelper.isDotnetModule( config.getArtifactType() ) ) { artifacts.add( project.getArtifact() ); } if ( config.isTestCompile() && ArtifactTypeHelper.isDotnetModule( project.getArtifact().getType() ) && project.getArtifact().getFile() != null && project.getArtifact().getFile().exists() ) { artifacts.add( project.getArtifact() ); } return artifacts; }
if ( ArtifactTypeHelper.isDotnetModule( project.getArtifact().getType() ))
logger.debug( "NPANDAY-061-007: Artifact Type:" + ArtifactTypeHelper.isDotnetGenericGac( type )); ArtifactType artifactType = ArtifactType.getArtifactTypeForPackagingName( type ); if ( ArtifactTypeHelper.isDotnetModule( type ))