You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2014/07/18 18:26:41 UTC

[2/2] git commit: Add a sub-folder to the default Tapestry asset cache directory

Add a sub-folder to the default Tapestry asset cache directory


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/6bb90964
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/6bb90964
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/6bb90964

Branch: refs/heads/master
Commit: 6bb9096499d921c62b4062fee2ee7928427b7c01
Parents: 5be8bd2
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Jul 18 09:26:34 2014 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Jul 18 09:26:34 2014 -0700

----------------------------------------------------------------------
 .../org/apache/tapestry5/webresources/WebResourcesSymbols.java  | 5 ++---
 .../tapestry5/webresources/modules/WebResourcesModule.java      | 4 +---
 2 files changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6bb90964/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/WebResourcesSymbols.java
----------------------------------------------------------------------
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 @@ public class WebResourcesSymbols
     /**
      * 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";
 }

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6bb90964/tapestry-webresources/src/main/java/org/apache/tapestry5/webresources/modules/WebResourcesModule.java
----------------------------------------------------------------------
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 @@ public class WebResourcesModule
     @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");
     }