You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2005/12/05 19:58:35 UTC

svn commit: r354128 - in /maven/maven-1/plugins/trunk/xdoc: plugin.jelly project.xml src/plugin-resources/sitemap.jsl

Author: ltheussl
Date: Mon Dec  5 10:58:32 2005
New Revision: 354128

URL: http://svn.apache.org/viewcvs?rev=354128&view=rev
Log:
Use commons-lang for string replacement, util:replace does not work with maven 1.0.2

Modified:
    maven/maven-1/plugins/trunk/xdoc/plugin.jelly
    maven/maven-1/plugins/trunk/xdoc/project.xml
    maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/sitemap.jsl

Modified: maven/maven-1/plugins/trunk/xdoc/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/plugin.jelly?rev=354128&r1=354127&r2=354128&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/xdoc/plugin.jelly Mon Dec  5 10:58:32 2005
@@ -569,9 +569,9 @@
   <goal name="xdoc:init"
     prereqs="xdoc:init-i18n"
     description="Generates the directory structure required for xdocs">
-    
+
     <echo message="Generates the directory structure required for xdocs"/>
-    
+
     <mkdir dir="${maven.gen.docs}"/>
     <mkdir dir="${maven.docs.dest}"/>
 
@@ -592,6 +592,9 @@
         <mkdir dir="${maven.gen.docs}/${locale}"/>
       </j:if>
     </j:forEach>
+
+    <j:useBean var="stringUtils" class="org.apache.commons.lang.StringUtils"/>
+
    </goal>
 
   <goal name="xdoc:init-i18n"

Modified: maven/maven-1/plugins/trunk/xdoc/project.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/project.xml?rev=354128&r1=354127&r2=354128&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/project.xml (original)
+++ maven/maven-1/plugins/trunk/xdoc/project.xml Mon Dec  5 10:58:32 2005
@@ -16,7 +16,8 @@
  * limitations under the License.
  */
  -->
-<project>
+<project xmlns="http://maven.apache.org/POM/3.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/3.0.0 http://maven.apache.org/maven-v3_0_0.xsd">
   <extend>../plugin-parent/project.xml</extend>
   <pomVersion>3</pomVersion>
   <id>maven-xdoc-plugin</id>
@@ -212,6 +213,15 @@
       <artifactId>commons-jelly-tags-xml</artifactId>
       <version>1.1</version>
       <url>http://jakarta.apache.org/commons/jelly/libs/xml/</url>
+      <properties>
+        <comment>This library is already loaded by maven's core. Be careful to use the same version number as in the core.</comment>
+      </properties>
+    </dependency>
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.0</version>
+      <url>http://jakarta.apache.org/commons/lang/</url>
       <properties>
         <comment>This library is already loaded by maven's core. Be careful to use the same version number as in the core.</comment>
       </properties>

Modified: maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/sitemap.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/sitemap.jsl?rev=354128&r1=354127&r2=354128&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/sitemap.jsl (original)
+++ maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/sitemap.jsl Mon Dec  5 10:58:32 2005
@@ -77,7 +77,7 @@
       <j:if test="${link.startsWith('/')}" trim="yes">
         <j:set var="link" value="${link.substring(1)}"/>
       </j:if>
-      <util:replace value="${link}" var="xml_link" old=".html" new=".xml"/>
+      <j:set var="xml_link" value="${stringUtils.replace(link, '.html', '.xml')}"/>
       <util:available file="${maven.docs.src}/${xml_link}">
         <util:file var="xmlfile" name="${maven.docs.src}/${xml_link}"/>
         <x:parse var="inputdoc" xml="${xmlfile}"/>