I've slightly enhanced the generation to fix some links that were
pointing to the karaf online user doc.
Hope you don't mind ...

On Tue, Oct 13, 2009 at 11:19,  <[email protected]> wrote:
> Author: gnodet
> Date: Tue Oct 13 09:19:05 2009
> New Revision: 824650
>
> URL: http://svn.apache.org/viewvc?rev=824650&view=rev
> Log:
> Fix some broken links within the documents using regular expressions
>
> Modified:
>    felix/sandbox/filippo/karaf-manual/pom.xml
>
> Modified: felix/sandbox/filippo/karaf-manual/pom.xml
> URL: 
> http://svn.apache.org/viewvc/felix/sandbox/filippo/karaf-manual/pom.xml?rev=824650&r1=824649&r2=824650&view=diff
> ==============================================================================
> --- felix/sandbox/filippo/karaf-manual/pom.xml (original)
> +++ felix/sandbox/filippo/karaf-manual/pom.xml Tue Oct 13 09:19:05 2009
> @@ -35,6 +35,59 @@
>
>   <build>
>     <plugins>
> +
> +    <plugin>
> +        <artifactId>maven-antrun-plugin</artifactId>
> +        <version>1.2</version>
> +        <executions>
> +            <execution>
> +                <configuration>
> +                    <tasks>
> +                        <taskdef name="for" 
> classname="net.sf.antcontrib.logic.ForTask" 
> classpathref="maven.plugin.classpath"/>
> +                        <property name="ant.regexp.regexpimpl" 
> value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" />
> +                        <mkdir dir="target/site/manual"/>
> +                        <get 
> src="http://cwiki.apache.org/confluence/display/FELIX/Karaf+Users%27+Guide+in+one+page";
> +                             dest="target/site/manual/manual.html" />
> +                         <for list="1,2,3,4,5,6,7,8,9,10" param="letter">
> +                             <sequential>
> +                                 <replaceregexp
> +                                     file="target/site/manual/manual.html"
> +                                     flags="g"
> +                                     
> match='"/confluence/display/FELIX/([^"]*)\+([^"+]*)"'
> +                                     
> replace='"/confluence/display/FELIX/\1\2"' />
> +                             </sequential>
> +                         </for>
> +                         <replaceregexp
> +                             file="target/site/manual/manual.html"
> +                             flags="g"
> +                             match='"/confluence/display/FELIX/([^"]*)"'
> +                             replace='"#KarafUsers%27Guideinonepage-\1"' />
> +                         <replaceregexp
> +                             file="target/site/manual/manual.html"
> +                             flags="g"
> +                             match='"/confluence/([^"]*)"'
> +                             
> replace='"http://cwiki.apache.org/confluence/\1";' />
> +                    </tasks>
> +                </configuration>
> +                <goals>
> +                    <goal>run</goal>
> +                </goals>
> +                <phase>generate-resources</phase>
> +            </execution>
> +         </executions>
> +          <dependencies>
> +              <dependency>
> +                  <groupId>ant-contrib</groupId>
> +                  <artifactId>ant-contrib</artifactId>
> +                  <version>1.0b3</version>
> +              </dependency>
> +              <dependency>
> +                  <groupId>ant</groupId>
> +                  <artifactId>ant-optional</artifactId>
> +                  <version>1.5.3-1</version>
> +              </dependency>
> +         </dependencies>
> +    </plugin>
>
>      <plugin>
>         <groupId>org.apache.camel</groupId>
> @@ -49,7 +102,7 @@
>           </execution>
>         </executions>
>         <configuration>
> -          
> <page>http://cwiki.apache.org/confluence/display/FELIX/Karaf+Users%27+Guide+in+one+page</page>
> +          <page>file://${basedir}/target/site/manual/manual.html</page>
>           <head><![CDATA[
>               <link href="file:${basedir}/src/styles/print.css" 
> rel="stylesheet" type="text/css" />
>               <style type="text/css">
>
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to