@Override public File getRepository() { return context.getRepository(); }
throws IOException final File repositoryDirectory = context.getRepository(); if ( repositoryDirectory == null ) context.getRepository(), //
groupContext.getRepository(), //
throws IOException final File repositoryDirectory = context.getRepository(); if ( repositoryDirectory == null ) context.getRepository(), //
String repositoryPath = context.getRepository().getAbsolutePath(); String artifactPath = file.getAbsolutePath();
private String formatFile( File file ) { return file.getAbsolutePath().substring( context.getRepository().getAbsolutePath().length() + 1 ); }
throws IOException final File repositoryDirectory = context.getRepository(); if ( repositoryDirectory == null ) context.getRepository(), //
String repositoryPath = context.getRepository().getAbsolutePath(); String artifactPath = file.getAbsolutePath();
public File getStartingDirectory() { if ( StringUtils.isBlank( startingPath ) ) { return getIndexingContext().getRepository(); } else { return new File( getIndexingContext().getRepository(), startingPath ); } } }
throws IOException final File repositoryDirectory = context.getRepository(); if ( repositoryDirectory == null ) context.getRepository(), //
String repositoryPath = context.getRepository().getAbsolutePath(); String artifactPath = file.getAbsolutePath();
public File getStartingDirectory() { if ( StringUtils.isBlank( startingPath ) ) { return getIndexingContext().getRepository(); } else { return new File( getIndexingContext().getRepository(), startingPath ); } } }
public File getStartingDirectory() { if ( StringUtils.isBlank( startingPath ) ) { return getIndexingContext().getRepository(); } else { return new File( getIndexingContext().getRepository(), startingPath ); } } }
|| !context.getRepository().getAbsolutePath().equals(repoRoot.getAbsolutePath()) || context.isSearchable() != repository.isSearchable())) {
@Messages({ "# {0} - repo name", "LBL_indexing_repo=Indexing Maven repository: {0}", "LBL_findIndexableDirs=Counting indexable directories..." }) @Override public void scanningStarted(IndexingContext ctx) { if (handle != null) { handle.finish(); } expectedDirs.clear(); encounteredDirs.clear(); handle = ProgressHandleFactory.createHandle(LBL_indexing_repo(ri != null ? ri.getName() : indexingContext.getId()), this); handle.start(); handle.progress(LBL_findIndexableDirs()); findIndexableDirs(ctx.getRepository()); handle.switchToDeterminate(expectedDirs.size()); } private void findIndexableDirs(File d) {
if (context != null) { String contexturl = context.getIndexUpdateUrl(); File contextfile = context.getRepository(); File repofile = info.getRepositoryPath() != null ? new File(info.getRepositoryPath()) : null;
if (!indexingContext.getRepository().exists()) { LOGGER.log(Level.FINE, "Local repository at {0} doesn't exist, no scan.", indexingContext.getRepository()); } else { RepositoryIndexerListener listener = new RepositoryIndexerListener(indexingContext);