Skip to content

Commit

Permalink
initially compile java source and test classes (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
kathrynkodama authored Nov 29, 2019
1 parent 8def820 commit 15c8fa4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,15 @@ public void watchFiles(File buildFile, File outputDirectory, File testOutputDire
boolean triggerJavaSourceRecompile = false;
boolean triggerJavaTestRecompile = false;

// initial source and test compile
Collection<File> allJavaSources = FileUtils.listFiles(this.sourceDirectory.getCanonicalFile(),
new String[] { "java" }, true);
recompileJavaSources.addAll(allJavaSources);

Collection<File> allJavaTestSources = FileUtils.listFiles(this.testSourceDirectory.getCanonicalFile(),
new String[] { "java" }, true);
recompileJavaTests.addAll(allJavaTestSources);

while (true) {
// stop dev mode if the server has been stopped by another process
if (serverThread.getState().equals(Thread.State.TERMINATED) && (this.devStop.get() == false)) {
Expand Down

0 comments on commit 15c8fa4

Please sign in to comment.