public String gavToPath( Gav gav ) { StringBuilder path = new StringBuilder( "/" ); path.append( gav.getGroupId().replaceAll( "(?m)(.)\\.", "$1/" ) ); // replace all '.' except the first char path.append( "/" ); path.append( gav.getArtifactId() ); path.append( "/" ); path.append( gav.getBaseVersion() ); path.append( "/" ); path.append( calculateArtifactName( gav ) ); return path.toString(); }
private MergedIndexingContext( ContextMemberProvider membersProvider, String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable ) throws IOException { this.id = id; this.repositoryId = repositoryId; this.repository = repository; this.membersProvider = membersProvider; this.gavCalculator = new M2GavCalculator(); this.directory = indexDirectory; this.searchable = searchable; setIndexDirectoryFile( null ); }
return getSnapshotGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType ); return getReleaseGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType );
return getSnapshotGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType ); return getReleaseGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType );
return getSnapshotGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType ); return getReleaseGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType );
public String gavToPath( Gav gav ) { StringBuilder path = new StringBuilder( "/" ); path.append( gav.getGroupId().replaceAll( "(?m)(.)\\.", "$1/" ) ); // replace all '.' except the first char path.append( "/" ); path.append( gav.getArtifactId() ); path.append( "/" ); path.append( gav.getBaseVersion() ); path.append( "/" ); path.append( calculateArtifactName( gav ) ); return path.toString(); }
private MergedIndexingContext( ContextMemberProvider membersProvider, String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable ) throws IOException { this.id = id; this.repositoryId = repositoryId; this.repository = repository; this.membersProvider = membersProvider; this.gavCalculator = new M2GavCalculator(); this.directory = indexDirectory; this.searchable = searchable; setIndexDirectoryFile( null ); }
return getSnapshotGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType ); return getReleaseGav( s, vEndPos, groupId, artifactId, version, fileName, checksum, signature, checksumType, signatureType );
public String gavToPath( Gav gav ) { StringBuilder path = new StringBuilder( "/" ); path.append( gav.getGroupId().replaceAll( "(?m)(.)\\.", "$1/" ) ); // replace all '.' except the first char path.append( "/" ); path.append( gav.getArtifactId() ); path.append( "/" ); path.append( gav.getBaseVersion() ); path.append( "/" ); path.append( calculateArtifactName( gav ) ); return path.toString(); }
private MergedIndexingContext( ContextMemberProvider membersProvider, String id, String repositoryId, File repository, Directory indexDirectory, boolean searchable ) throws IOException { this.id = id; this.repositoryId = repositoryId; this.repository = repository; this.membersProvider = membersProvider; this.gavCalculator = new M2GavCalculator(); this.directory = indexDirectory; this.searchable = searchable; setIndexDirectoryFile( null ); }
public String gavToPath( Gav gav ) { StringBuilder path = new StringBuilder( "/" ); path.append( gav.getGroupId().replaceAll( "(?m)(.)\\.", "$1/" ) ); // replace all '.' except the first char path.append( "/" ); path.append( gav.getArtifactId() ); path.append( "/" ); path.append( gav.getBaseVersion() ); path.append( "/" ); path.append( calculateArtifactName( gav ) ); return path.toString(); }
private DefaultIndexingContext( String id, String repositoryId, File repository, // String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexCreators, Directory indexDirectory, boolean reclaimIndex ) throws ExistingLuceneIndexMismatchException, IOException { this.id = id; this.searchable = true; this.repositoryId = repositoryId; this.repository = repository; this.repositoryUrl = repositoryUrl; this.indexUpdateUrl = indexUpdateUrl; this.indexWriter = null; this.searcherManager = null; this.indexCreators = indexCreators; this.indexDirectory = indexDirectory; // eh? // Guice does NOT initialize these, and we have to do manually? // While in Plexus, all is well, but when in guice-shim, // these objects are still LazyHintedBeans or what not and IndexerFields are NOT registered! for ( IndexCreator indexCreator : indexCreators ) { indexCreator.getIndexerFields(); } this.gavCalculator = new M2GavCalculator(); prepareIndex( reclaimIndex ); setIndexDirectoryFile( null ); }
this.gavCalculator = new M2GavCalculator();
this.gavCalculator = new M2GavCalculator();