Disable addResources by default

Flip the default value of `addResources` for both the Maven and Gradle
plugins. This effectively turns off static resources reloading and, more
importantly, the pruning of duplicate resources from the target
directory.

As devetools is our mainstram solution for such feature, the documantion
has been updated to reflect that.

Closes gh-4227
This commit is contained in:
Stephane Nicoll
2015-10-20 14:29:16 +02:00
parent d071db8cc9
commit 168fc2f61f
5 changed files with 66 additions and 30 deletions

View File

@@ -38,12 +38,12 @@ public class BootRunTask extends JavaExec {
/**
* Whether or not resources (typically in {@code src/main/resources} are added
* directly to the classpath. When enabled (the default), this allows live in-place
* editing of resources. Duplicate resources are removed from the resource output
* directly to the classpath. When enabled, this allows live in-place editing
* of resources. Duplicate resources are removed from the resource output
* directory to prevent them from appearing twice if
* {@code ClassLoader.getResources()} is called.
*/
private boolean addResources = true;
private boolean addResources = false;
public boolean getAddResources() {
return this.addResources;