Add templates/** to list of default includes for CLI jars

Boot promotes the use of a templates directory for housing view
templates. Include this directory by default when building a jar file
from a CLI app.

Fixes #455
This commit is contained in:
Andy Wilkinson
2014-03-10 10:28:50 +00:00
parent cb6739b4a5
commit 44826812db
7 changed files with 10 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ import org.springframework.util.Assert;
*/
public class JarCommand extends OptionParsingCommand {
private static final String[] DEFAULT_INCLUDES = { "public/**", "static/**",
"resources/**", "META-INF/**", "*" };
private static final String[] DEFAULT_INCLUDES = { "public/**", "resources/**",
"static/**", "templates/**", "META-INF/**", "*" };
private static final String[] DEFAULT_EXCLUDES = { ".*", "repository/**", "build/**",
"target/**", "**/*.jar", "**/*.groovy" };