You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/10/31 23:33:49 UTC

svn commit: r1195707 - in /maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550: pom.xml src/site/apt/index.apt src/site/apt/sub/ src/site/apt/sub/index.apt src/site/site.vm

Author: hboutemy
Date: Mon Oct 31 22:33:48 2011
New Revision: 1195707

URL: http://svn.apache.org/viewvc?rev=1195707&view=rev
Log:
added Velocity variables test in template

Added:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt   (with props)
Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/pom.xml
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/index.apt
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/site.vm

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/pom.xml?rev=1195707&r1=1195706&r2=1195707&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/pom.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/pom.xml Mon Oct 31 22:33:48 2011
@@ -28,6 +28,13 @@ under the License.
   <version>1.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
+  <name>MSITE-550 Velocity attributes</name>
+  <description>Test Velocity attributes, ie attributes parameter of site:site</description>
+
+  <properties>
+    <dummy>value</dummy>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
@@ -37,15 +44,11 @@ under the License.
           <templateFile>${basedir}/src/site/site.vm</templateFile>
           <generateReports>false</generateReports>
           <attributes>
-             <att1>val1</att1>
+            <att1>val1</att1>
           </attributes>
         </configuration>
       </plugin>
     </plugins>
   </build>
 
-  <properties>
-    <dummy>value</dummy>
-  </properties>
-
 </project>

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/index.apt?rev=1195707&r1=1195706&r2=1195707&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/index.apt (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/index.apt Mon Oct 31 22:33:48 2011
@@ -3,6 +3,7 @@
  -----
  Author Here
  -----
+ Date Here
  -----
 
 Maven Site for your project

Added: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt?rev=1195707&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt Mon Oct 31 22:33:48 2011
@@ -0,0 +1,18 @@
+ -----
+ Title Here
+ -----
+ Author Here
+ -----
+ Date Here
+ -----
+
+Maven Site for your project
+
+ Congratulations! If you are looking at this page then you have successfully generated a
+ template site employing the site archetype and you have run:
+  
++-----+
+
+mvn site
+
++-----+

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/apt/sub/index.apt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/site.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/site.vm?rev=1195707&r1=1195706&r2=1195707&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/site.vm (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-550/src/site/site.vm Mon Oct 31 22:33:48 2011
@@ -1,2 +1,31 @@
-dummy=$dummy
-att1=$att1
+======================================================================
+====== default variables defined by doxia-siterenderer
+======================================================================
+relativePath=$relativePath
+authors=$authors
+title=$title
+dateCreation=$dateCreation
+dateRevision=$dateRevision
+currentDate=$currentDate
+dateFormat=$dateFormat
+currentFileName=$currentFileName
+alignedFileName=$alignedFileName
+locale=$locale
+supportedLocales=$supportedLocales
+PathTool=$PathTool
+FileUtils=$FileUtils
+StringUtils=$StringUtils
+i18n=$i18n
+headContent=$headContent
+bodyContent=$bodyContent
+decoration=$decoration
+
+
+======================================================================
+====== default properties defined by maven-site-plugin
+======================================================================
+project=$project
+inputEncoding=$inputEncoding
+outputEncoding=$outputEncoding
+(project property) dummy=$dummy
+(attribute defined in attributes parameter of site plugin) att1=$att1