@Override public String toString() { final StringBuilder result = new StringBuilder( getUinfo() ); if ( !Strings.isNullOrEmpty( getPackaging() ) ) { result.append( "[" ).append( getPackaging() ).append( "]" ); } return result.toString(); }
@Override public String toString() { final StringBuilder result = new StringBuilder( getUinfo() ); if ( !Strings.isNullOrEmpty( getPackaging() ) ) { result.append( "[" ).append( getPackaging() ).append( "]" ); } return result.toString(); }
@Override public String toString() { final StringBuilder result = new StringBuilder( getUinfo() ); if ( !Strings.isNullOrEmpty( getPackaging() ) ) { result.append( "[" ).append( getPackaging() ).append( "]" ); } return result.toString(); }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && MAVEN_PLUGIN_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // 1st, check for maven plugin checkMavenPlugin( ai, artifact ); } }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && artifact.isFile() && !MAVEN_ARCHETYPE_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // check for maven archetype, since Archetypes seems to not have consistent packaging, // and depending on the contents of the JAR, this call will override the packaging to "maven-archetype"! checkMavenArchetype( ai, artifact ); } }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && artifact.isFile() && !MAVEN_ARCHETYPE_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // check for maven archetype, since Archetypes seems to not have consistent packaging, // and depending on the contents of the JAR, this call will override the packaging to "maven-archetype"! checkMavenArchetype( ai, artifact ); } }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && artifact.isFile() && !MAVEN_ARCHETYPE_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // check for maven archetype, since Archetypes seems to not have consistent packaging, // and depending on the contents of the JAR, this call will override the packaging to "maven-archetype"! checkMavenArchetype( ai, artifact ); } }
public boolean updateArtifactInfo( Document doc, ArtifactInfo ai ) { boolean res = false; if ( "maven-plugin".equals( ai.getPackaging() ) ) { ai.setPrefix( doc.get( ArtifactInfo.PLUGIN_PREFIX ) ); String goals = doc.get( ArtifactInfo.PLUGIN_GOALS ); if ( goals != null ) { ai.setGoals( ArtifactInfo.str2lst( goals ) ); } res = true; } return res; }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && MAVEN_PLUGIN_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // 1st, check for maven plugin checkMavenPlugin( ai, artifact ); } }
public void populateArtifactInfo( ArtifactContext ac ) { File artifact = ac.getArtifact(); ArtifactInfo ai = ac.getArtifactInfo(); // we need the file to perform these checks, and those may be only JARs if ( artifact != null && MAVEN_PLUGIN_PACKAGING.equals( ai.getPackaging() ) && artifact.getName().endsWith( ".jar" ) ) { // TODO: recheck, is the following true? "Maven plugins and Maven Archetypes can be only JARs?" // 1st, check for maven plugin checkMavenPlugin( ai, artifact ); } }
public boolean updateArtifactInfo( Document doc, ArtifactInfo ai ) { boolean res = false; if ( "maven-plugin".equals( ai.getPackaging() ) ) { ai.setPrefix( doc.get( ArtifactInfo.PLUGIN_PREFIX ) ); String goals = doc.get( ArtifactInfo.PLUGIN_GOALS ); if ( goals != null ) { ai.setGoals( ArtifactInfo.str2lst( goals ) ); } res = true; } return res; }
public boolean updateArtifactInfo( Document doc, ArtifactInfo ai ) { boolean res = false; if ( "maven-plugin".equals( ai.getPackaging() ) ) { ai.setPrefix( doc.get( ArtifactInfo.PLUGIN_PREFIX ) ); String goals = doc.get( ArtifactInfo.PLUGIN_GOALS ); if ( goals != null ) { ai.setGoals( ArtifactInfo.str2lst( goals ) ); } res = true; } return res; }
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
if ( StringUtils.equals( "maven-plugin", artifactInfo.getPackaging() ) ) sb.append( '.' ).append( artifactInfo.getPackaging() );
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
public void artifactDiscovered( ArtifactContext ac ) { count++; long t = System.currentTimeMillis(); ArtifactInfo ai = ac.getArtifactInfo(); if ( !quiet && debug && "maven-plugin".equals( ai.getPackaging() ) ) { System.err.printf( "Plugin: %s:%s:%s - %s %s\n", // ai.getGroupId(), ai.getArtifactId(), ai.getVersion(), ai.getPrefix(), "" + ai.getGoals() ); } if ( !quiet && ( debug || ( t - ts ) > 2000L ) ) { System.err.printf( " %6d %s\n", count, formatFile( ac.getPom() ) ); ts = t; } }
public void updateDocument( ArtifactInfo ai, Document doc ) new StringBuilder().append( ArtifactInfo.nvl( ai.getPackaging() )).append( ArtifactInfo.FS ).append( Long.toString( ai.getLastModified() ) ).append( ArtifactInfo.FS ).append( Long.toString( ai.getSize() ) ).append( ArtifactInfo.FS ).append( ai.getSourcesExists().toString() ).append( ArtifactInfo.FS ).append( if ( ai.getPackaging() != null ) doc.add( FLD_PACKAGING.toField( ai.getPackaging() ) );
public void updateDocument( ArtifactInfo ai, Document doc ) new StringBuilder().append( ArtifactInfo.nvl( ai.getPackaging() ) ) .append( ArtifactInfo.FS ).append( Long.toString( ai.getLastModified() ) ) .append( ArtifactInfo.FS ).append( Long.toString( ai.getSize() ) ) if ( ai.getPackaging() != null ) doc.add( FLD_PACKAGING.toField( ai.getPackaging() ) );
public void updateDocument( ArtifactInfo ai, Document doc ) new StringBuilder().append( ArtifactInfo.nvl( ai.getPackaging() ) ) .append( ArtifactInfo.FS ).append( Long.toString( ai.getLastModified() ) ) .append( ArtifactInfo.FS ).append( Long.toString( ai.getSize() ) ) if ( ai.getPackaging() != null ) doc.add( FLD_PACKAGING.toField( ai.getPackaging() ) );