maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1304779 - in /maven/skins/trunk/maven-stylus-skin: pom.xml src/main/resources/META-INF/maven/site.vm
Date Sat, 24 Mar 2012 12:21:09 GMT
Author: rfscholte
Date: Sat Mar 24 12:21:08 2012
New Revision: 1304779

URL: http://svn.apache.org/viewvc?rev=1304779&view=rev
Log:
Fix MSKINS-37: Add skin-version to template

Modified:
    maven/skins/trunk/maven-stylus-skin/pom.xml
    maven/skins/trunk/maven-stylus-skin/src/main/resources/META-INF/maven/site.vm

Modified: maven/skins/trunk/maven-stylus-skin/pom.xml
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-stylus-skin/pom.xml?rev=1304779&r1=1304778&r2=1304779&view=diff
==============================================================================
--- maven/skins/trunk/maven-stylus-skin/pom.xml (original)
+++ maven/skins/trunk/maven-stylus-skin/pom.xml Sat Mar 24 12:21:08 2012
@@ -45,6 +45,40 @@ under the License.
     <system>jira</system>
     <url>http://jira.codehaus.org/browse/MSKINS/component/12534</url>
   </issueManagement>
+  
+  <build>
+    <resources>
+    
+      <resource>
+        <directory>${basedir}/src/main/resources</directory>
+        <includes>
+          <include>META-INF/maven/site.vm</include>
+        </includes>
+        <filtering>true</filtering> <!-- add skin-info -->
+      </resource>
+      
+      <resource>
+        <directory>${basedir}/src/main/resources</directory>
+        <excludes>
+          <exclude>META-INF/maven/site.vm</exclude>
+        </excludes>
+      </resource>
+      
+    </resources>
+    
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <configuration>
+          <delimiters>
+            <delimiter>@</delimiter>
+          </delimiters>
+          <useDefaultDelimiters>false</useDefaultDelimiters>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 
   <profiles>
     <profile>

Modified: maven/skins/trunk/maven-stylus-skin/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-stylus-skin/src/main/resources/META-INF/maven/site.vm?rev=1304779&r1=1304778&r2=1304779&view=diff
==============================================================================
--- maven/skins/trunk/maven-stylus-skin/src/main/resources/META-INF/maven/site.vm (original)
+++ maven/skins/trunk/maven-stylus-skin/src/main/resources/META-INF/maven/site.vm Sat Mar
24 12:21:08 2012
@@ -1,5 +1,8 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at $dateFormat.format( $currentDate ) -->
+<!--
+ | Generated by Apache Maven Doxia at $dateFormat.format( $currentDate )
+ | Rendered using Apache Maven Stylus Skin @project.version@
+-->
 #macro ( link $href $name )
   #if ( $href.toLowerCase().startsWith("http:/") || $href.toLowerCase().startsWith("https:/")
||
     $href.toLowerCase().startsWith("ftp:/") || $href.toLowerCase().startsWith("mailto:")
||



Mime
View raw message