You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/02/12 16:11:45 UTC
svn commit: r743775 - in /myfaces/tomahawk/trunk/core: pom.xml
src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties
Author: lu4242
Date: Thu Feb 12 15:11:44 2009
New Revision: 743775
URL: http://svn.apache.org/viewvc?rev=743775&view=rev
Log:
TOMAHAWK-15 DefaultAddResource cache disabled because of the Maven build
Modified:
myfaces/tomahawk/trunk/core/pom.xml
myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties
Modified: myfaces/tomahawk/trunk/core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/pom.xml?rev=743775&r1=743774&r2=743775&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/pom.xml (original)
+++ myfaces/tomahawk/trunk/core/pom.xml Thu Feb 12 15:11:44 2009
@@ -295,6 +295,20 @@
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.vm</exclude>
+ <exclude>**/AddResource.properties</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <!-- Used in the resources URL, to enable caching the
+ resources on the client.
+ See MyfacesResourceLoader.getLastModified() -->
+ <include>**/AddResource.properties</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.vm</exclude>
</excludes>
</resource>
<!--
@@ -320,6 +334,31 @@
</pluginManagement>
<plugins>
<plugin>
+ <!-- Used in the resources URL, to enable caching the
+ resources on the client.
+ See MyfacesResourceLoader.getLastModified() -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ <buildNumberPropertyName>tomahawk.lastModified</buildNumberPropertyName>
+ <format>{0,date,yyyy-MM-dd HH:mm:ss Z}</format>
+ <items>
+ <item>timestamp</item>
+ </items>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.myfaces.buildtools</groupId>
<artifactId>myfaces-builder-plugin</artifactId>
<version>1.0.2</version>
Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties?rev=743775&r1=743774&r2=743775&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/renderkit/html/util/AddResource.properties Thu Feb 12 15:11:44 2009
@@ -1,3 +1,3 @@
# Used in the resources URL, to enable caching the resources on the client.
# See MyfacesResourceLoader.getLastModified()
-lastModified=@lastModified@
+lastModified=${tomahawk.lastModified}