Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initially compile java source and test classes #111

Merged
merged 1 commit into from
Nov 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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