You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/12/22 10:22:11 UTC

svn commit: r893121 - in /myfaces/tobago/trunk/example: demo/pom.xml test/pom.xml

Author: bommel
Date: Tue Dec 22 09:22:09 2009
New Revision: 893121

URL: http://svn.apache.org/viewvc?rev=893121&view=rev
Log:
change xslt-maven-plugin to xml-maven-plugin
update to cargo 1.0
added tomcat6x profile

Modified:
    myfaces/tobago/trunk/example/demo/pom.xml
    myfaces/tobago/trunk/example/test/pom.xml

Modified: myfaces/tobago/trunk/example/demo/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/pom.xml?rev=893121&r1=893120&r2=893121&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/demo/pom.xml (original)
+++ myfaces/tobago/trunk/example/demo/pom.xml Tue Dec 22 09:22:09 2009
@@ -63,8 +63,8 @@
       </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
-        <artifactId>xslt-maven-plugin</artifactId>
-        <version>1.0</version>
+        <artifactId>xml-maven-plugin</artifactId>
+        <version>1.0-beta-3</version>
         <executions>
           <execution>
             <phase>generate-resources</phase>
@@ -74,12 +74,23 @@
           </execution>
         </executions>
         <configuration>
-          <srcDir>src/main/webapp</srcDir>
-          <destDir>target/tobago-example-demo</destDir>
-          <xslFile>src/main/xslt/facelet2jsp.xsl</xslFile>
-          <srcIncludes>overview/*.xhtml, reference/**/*.xhtml</srcIncludes>
-          <fileNameRegex>(.*).xhtml</fileNameRegex>
-          <fileNameReplacement>$1.jspx</fileNameReplacement>
+          <transformationSets>
+            <transformationSet>
+              <dir>src/main/webapp</dir>
+              <outputDir>target/tobago-example-demo</outputDir>
+              <stylesheet>src/main/xslt/facelet2jsp.xsl</stylesheet>
+              <includes>
+                <include>overview/*.xhtml</include>
+                <include>reference/**/*.xhtml</include>
+              </includes>
+              <fileMappers>
+                <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+                  <pattern>(.*).xhtml</pattern>
+                  <replacement>$1.jspx</replacement>
+                </fileMapper>
+              </fileMappers>
+            </transformationSet>
+          </transformationSets>
         </configuration>
       </plugin>
     </plugins>
@@ -191,6 +202,33 @@
     </profile>
     <profile>
       <!--
+       mvn package cargo:start -Ptomcat6x
+      -->
+      <id>tomcat6x</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.cargo</groupId>
+            <artifactId>cargo-maven2-plugin</artifactId>
+            <version>1.0</version>
+            <configuration>
+              <container>
+                <containerId>tomcat6x</containerId>
+                <zipUrlInstaller>
+                  <url>http://apache.easy-webs.de/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.zip</url>
+                  <installDir>${project.build.directory}/tomcat6</installDir>
+                </zipUrlInstaller>
+              </container>
+              <configuration>
+                <home>${project.build.directory}/tomcat6/container</home>
+              </configuration>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <!--
        mvn package cargo:start -Ptomcat5x
       -->
       <id>tomcat5x</id>
@@ -199,12 +237,12 @@
           <plugin>
             <groupId>org.codehaus.cargo</groupId>
             <artifactId>cargo-maven2-plugin</artifactId>
-            <version>0.3</version>
+            <version>1.0</version>
             <configuration>
               <container>
                 <containerId>tomcat5x</containerId>
                 <zipUrlInstaller>
-                  <url>http://apache.easy-webs.de/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip</url>
+                  <url>http://apache.easy-webs.de/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.zip</url>
                   <installDir>${project.build.directory}/tomcat5</installDir>
                 </zipUrlInstaller>
               </container>

Modified: myfaces/tobago/trunk/example/test/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/pom.xml?rev=893121&r1=893120&r2=893121&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/test/pom.xml (original)
+++ myfaces/tobago/trunk/example/test/pom.xml Tue Dec 22 09:22:09 2009
@@ -73,8 +73,8 @@
       </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
-        <artifactId>xslt-maven-plugin</artifactId>
-        <version>1.0</version>
+        <artifactId>xml-maven-plugin</artifactId>
+        <version>1.0-beta-3</version>
         <executions>
           <execution>
             <phase>generate-resources</phase>
@@ -84,12 +84,22 @@
           </execution>
         </executions>
         <configuration>
-          <srcDir>src/main/webapp</srcDir>
-          <destDir>target/tobago-example-test</destDir>
-          <xslFile>../demo/src/main/xslt/facelet2jsp.xsl</xslFile>
-          <srcIncludes>**/*.xhtml</srcIncludes>
-          <fileNameRegex>(.*).xhtml</fileNameRegex>
-          <fileNameReplacement>$1.jspx</fileNameReplacement>
+          <transformationSets>
+            <transformationSet>
+              <dir>src/main/webapp</dir>
+              <outputDir>target/tobago-example-test</outputDir>
+              <stylesheet>../demo/src/main/xslt/facelet2jsp.xsl</stylesheet>
+              <includes>
+                <include>**/*.xhtml</include>
+              </includes>
+              <fileMappers>
+                <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+                  <pattern>(.*).xhtml</pattern>
+                  <replacement>$1.jspx</replacement>
+                </fileMapper>
+              </fileMappers>
+            </transformationSet>
+          </transformationSets>
         </configuration>
       </plugin>
       <plugin>
@@ -370,6 +380,33 @@
     </profile>
     <profile>
       <!--
+       mvn package cargo:start -Ptomcat6x
+      -->
+      <id>tomcat6x</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.cargo</groupId>
+            <artifactId>cargo-maven2-plugin</artifactId>
+            <version>1.0</version>
+            <configuration>
+              <container>
+                <containerId>tomcat6x</containerId>
+                <zipUrlInstaller>
+                  <url>http://apache.easy-webs.de/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.zip</url>
+                  <installDir>${project.build.directory}/tomcat6</installDir>
+                </zipUrlInstaller>
+              </container>
+              <configuration>
+                <home>${project.build.directory}/tomcat6/container</home>
+              </configuration>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <!--
        mvn package cargo:start -Ptomcat5x
       -->
       <id>tomcat5x</id>
@@ -383,7 +420,7 @@
               <container>
                 <containerId>tomcat5x</containerId>
                 <zipUrlInstaller>
-                  <url>http://apache.easy-webs.de/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip</url>
+                  <url>http://apache.easy-webs.de/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.zip</url>
                   <installDir>${project.build.directory}/tomcat5</installDir>
                 </zipUrlInstaller>
               </container>