protected Project project;
private FileScanner fileScanner;
protected final Object lockObject = new Object();
- private int maxRetries = 99999;
public void addInsertListener(InsertListener insertListener) {
insertListeners.add(insertListener);
this.freenetInterface = freenetInterface;
}
- /**
- * @param maxRetries
- * The maxRetries to set.
- */
- public void setMaxRetries(int maxRetries) {
- this.maxRetries = maxRetries;
- }
-
public void start() {
fileScanner = new FileScanner(project);
fileScanner.addFileScannerListener(this);
ClientPutComplexDir putDir = new ClientPutComplexDir("dir-" + counter++, dirURI);
putDir.setDefaultName(project.getIndexFile());
putDir.setVerbosity(Verbosity.ALL);
- putDir.setMaxRetries(maxRetries);
+ putDir.setMaxRetries(-1);
for (String filename: files) {
FileEntry fileEntry = createFileEntry(filename, edition, containerFiles);
if (fileEntry != null) {