projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move starting file scanner in background to file scanner class
[jSite.git]
/
src
/
main
/
java
/
de
/
todesbaum
/
jsite
/
application
/
ProjectInserter.java
diff --git
a/src/main/java/de/todesbaum/jsite/application/ProjectInserter.java
b/src/main/java/de/todesbaum/jsite/application/ProjectInserter.java
index
cfc18d2
..
dd85bf3
100644
(file)
--- a/
src/main/java/de/todesbaum/jsite/application/ProjectInserter.java
+++ b/
src/main/java/de/todesbaum/jsite/application/ProjectInserter.java
@@
-173,7
+173,7
@@
public class ProjectInserter implements FileScannerListener, Runnable {
this.progressListener = progressListener;
fileScanner = new FileScanner(project);
fileScanner.addFileScannerListener(this);
this.progressListener = progressListener;
fileScanner = new FileScanner(project);
fileScanner.addFileScannerListener(this);
-
new Thread(fileScanner).start
();
+
fileScanner.startInBackground
();
}
/**
}
/**
@@
-297,7
+297,7
@@
public class ProjectInserter implements FileScannerListener, Runnable {
completionLatch.countDown();
}
});
completionLatch.countDown();
}
});
-
new Thread(fileScanner).start
();
+
fileScanner.startInBackground
();
while (completionLatch.getCount() > 0) {
try {
completionLatch.await();
while (completionLatch.getCount() > 0) {
try {
completionLatch.await();