Add a sub-folder to the default Tapestry asset cache directory
diff --git a/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/WebResourcesSymbols.java b/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/WebResourcesSymbols.java
index 82bd018..9f0901b 100644
--- a/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/WebResourcesSymbols.java
+++ b/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/WebResourcesSymbols.java
@@ -1,5 +1,3 @@
-// Copyright 2013 The Apache Software Foundation
-//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -19,7 +17,8 @@
/**
* Directory that stores cached copies of compiled CoffeeScript files. The directory will be created
* as necessary. This allows compilation (e.g., CoffeeScript to JavaScript) to be avoided after a restart.
- * The default is from the {@code java.io.tmpdir} system property (which is not necessarily stable between executions).
+ * The default is under the {@code java.io.tmpdir} system property (which is not necessarily stable between executions).
+ * It is common to set this to {@code target/asset-cache} during development.
*/
public static final String CACHE_DIR = "tapestry.compiled-asset-cache-dir";
}
diff --git a/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/modules/WebResourcesModule.java b/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/modules/WebResourcesModule.java
index a3d387e..af452c0 100644
--- a/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/modules/WebResourcesModule.java
+++ b/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/modules/WebResourcesModule.java
@@ -1,5 +1,3 @@
-// Copyright 2013 The Apache Software Foundation
-//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -57,7 +55,7 @@
@FactoryDefaults
public static void setupDefaultCacheDirectory(MappedConfiguration<String, Object> configuration)
{
- configuration.add(WebResourcesSymbols.CACHE_DIR, "${java.io.tmpdir}");
+ configuration.add(WebResourcesSymbols.CACHE_DIR, "${java.io.tmpdir}/tapestry-asset-cache");
}