/** * Create a new resolver for the given path. * * @param basePath * the base path all repositories are rooted under. * @param exportAll * if true, exports all repositories, ignoring the check for the * {@code git-daemon-export-ok} files. */ public FileResolver(File basePath, boolean exportAll) { this(); exportDirectory(basePath); setExportAll(exportAll); }
/** * Create a new resolver for the given path. * * @param basePath * the base path all repositories are rooted under. * @param exportAll * if true, exports all repositories, ignoring the check for the * {@code git-daemon-export-ok} files. */ public FileResolver(File basePath, boolean exportAll) { this(); exportDirectory(basePath); setExportAll(exportAll); }
/** * Create a new resolver for the given path. * * @param basePath * the base path all repositories are rooted under. * @param exportAll * if true, exports all repositories, ignoring the check for the * {@code git-daemon-export-ok} files. */ public FileResolver(final File basePath, final boolean exportAll) { this(); exportDirectory(basePath); setExportAll(exportAll); }
for (final File f : directory) { outw.println(MessageFormat.format(CLIText.get().exporting, f.getAbsolutePath())); resolver.exportDirectory(f);