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 2006/01/14 16:14:15 UTC

svn commit: r369031 - in /myfaces/impl/trunk: pom.xml src/main/tld/misc/resolve_entities-tlddoc.xsl

Author: bommel
Date: Sat Jan 14 07:14:10 2006
New Revision: 369031

URL: http://svn.apache.org/viewcvs?rev=369031&view=rev
Log:
added javadoc for assembly generate javadoc artifact with profile generate-assembly mvn -Pgenerate-assembly
added separate xsl for generate separate tld for the tlddoc
added tlddoc to site enable with profile generate-site mvn -Pgenerate-site
fixed missing java.lang in type of some attributes.xml in sandbox

Added:
    myfaces/impl/trunk/src/main/tld/misc/resolve_entities-tlddoc.xsl
Modified:
    myfaces/impl/trunk/pom.xml

Modified: myfaces/impl/trunk/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/pom.xml?rev=369031&r1=369030&r2=369031&view=diff
==============================================================================
--- myfaces/impl/trunk/pom.xml (original)
+++ myfaces/impl/trunk/pom.xml Sat Jan 14 07:14:10 2006
@@ -1,7 +1,7 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-
   <groupId>org.apache.myfaces</groupId>
   <artifactId>myfaces-impl</artifactId>
   <packaging>jar</packaging>
@@ -18,6 +18,7 @@
   </parent>
 
   <dependencies>
+
     <dependency>
       <groupId>org.apache.myfaces</groupId>
       <artifactId>myfaces-api</artifactId>
@@ -46,7 +47,6 @@
       <scope>provided</scope>
     </dependency>
 
-
     <dependency>
       <groupId>commons-logging</groupId>
       <artifactId>commons-logging</artifactId>
@@ -61,7 +61,6 @@
       <scope>provided</scope>
     </dependency>
 
-
     <dependency>
       <groupId>cactus</groupId>
       <artifactId>cactus</artifactId>
@@ -79,6 +78,7 @@
   </dependencies>
 
   <build>
+
     <resources>
       <resource>
         <directory>src/main/resources</directory>
@@ -87,6 +87,7 @@
         <directory>src/main/resources-facesconfig</directory>
       </resource>
     </resources>
+
     <plugins>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
@@ -107,10 +108,138 @@
         </executions>
       </plugin>
     </plugins>
+
   </build>
+
+  <reporting>
+
+    <plugins>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>changelog-maven-plugin</artifactId>
+        <version>2.0-beta-1</version>
+        <reportSets>
+          <reportSet>
+            <id>dual-report</id>
+            <configuration>
+              <type>range</type>
+              <range>30</range>
+            </configuration>
+            <reports>
+              <report>changelog</report>
+              <report>file-activity</report>
+              <report>dev-activity</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.0-beta-3</version>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>jxr-maven-plugin</artifactId>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>taglist-maven-plugin</artifactId>
+        <version>2.0-beta-1</version>
+        <configuration>
+          <tags>TODO, FIXME, XXX, @deprecated</tags>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>surefire-report-maven-plugin</artifactId>
+      </plugin>
+
+    </plugins>
+
+  </reporting>
+
+  <profiles>
+    <profile>
+      <id>generate-site</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xslt-maven-plugin</artifactId>
+            <version>1.0-SNAPSHOT</version>
+            <configuration>
+              <xslFile>src/main/tld/misc/resolve_entities-tlddoc.xsl</xslFile>
+              <srcIncludes>**/*.tld</srcIncludes>
+              <srcDir>src/main/tld</srcDir>
+              <destDir>target/tlddoc-site</destDir>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>transform</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+
+      </build>
+      <reporting>
+        <plugins>
+          <plugin>
+            <groupId>net.sourceforge.maven-taglib</groupId>
+            <artifactId>maven-taglib-plugin</artifactId>
+            <configuration>
+              <taglib.src.dir>${basedir}/target/tlddoc-site</taglib.src.dir>
+              <tldDocDir>${basedir}/target/site/tlddoc</tldDocDir>
+            </configuration>
+          </plugin>
+        </plugins>
+      </reporting>
+    </profile>
+    <profile>
+      <id>generate-assembly</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+             <artifactId>maven-javadoc-plugin</artifactId>
+             <executions>
+               <execution>
+                 <id>attach-javadoc</id>
+                 <goals><goal>jar</goal></goals>
+               </execution>
+             </executions>
+           </plugin>
+           <!--plugin>
+             <groupId>net.sourceforge.maven-taglib</groupId>
+             <artifactId>maven-taglib-plugin</artifactId>
+             <configuration>
+               <taglib.src.dir>${basedir}/target/classes/META-INF</taglib.src.dir>
+               <tldDocDir>${basedir}/target/tlddoc</tldDocDir>
+             </configuration>
+             <executions>                                                  
+               <execution>
+                 <id>attach-tlddoc</id>
+                 <goals><goal>taglibdocjar</goal></goals>
+               </execution>
+             </executions>
+           </plugin-->
+         </plugins>
+       </build>
+     </profile>
+   </profiles>
+
   <scm>
     <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/impl/trunk</connection>
     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/impl/trunk</developerConnection>
-    <url>http://svn.apache.org/viewcvs.cgi/myfaces/</url>
+    <url>http://svn.apache.org/viewcvs.cgi/myfaces/impl/trunk</url>
   </scm>
+
 </project>

Added: myfaces/impl/trunk/src/main/tld/misc/resolve_entities-tlddoc.xsl
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/main/tld/misc/resolve_entities-tlddoc.xsl?rev=369031&view=auto
==============================================================================
--- myfaces/impl/trunk/src/main/tld/misc/resolve_entities-tlddoc.xsl (added)
+++ myfaces/impl/trunk/src/main/tld/misc/resolve_entities-tlddoc.xsl Sat Jan 14 07:14:10 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  - Stylesheet to expand xml entity references inline. 
+  - 
+  -->
+<xsl:stylesheet version="1.1"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:output method="xml"
+      encoding="ISO-8859-1"
+      doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+      doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+      indent="yes"/>
+
+  <xsl:template match="*" priority="2">
+    <!-- avoiding copy to get get rid of namespace attribute -->
+    <xsl:element name="{name(.)}">
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:element>
+  </xsl:template>
+
+  <xsl:template match="@*|node()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>