You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/06/27 13:08:05 UTC

cvs commit: maven/xdocs faq.fml

dion        2004/06/27 04:08:05

  Modified:    xdocs    Tag: MAVEN-1_0-BRANCH faq.fml
  Log:
  Use CDATA sections now that the faq plugin has been fixed
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.4.6   +28 -28    maven/xdocs/faq.fml
  
  Index: faq.fml
  ===================================================================
  RCS file: /home/cvs/maven/xdocs/faq.fml,v
  retrieving revision 1.5.4.5
  retrieving revision 1.5.4.6
  diff -u -r1.5.4.5 -r1.5.4.6
  --- faq.fml	7 Jun 2004 12:03:33 -0000	1.5.4.5
  +++ faq.fml	27 Jun 2004 11:08:05 -0000	1.5.4.6
  @@ -202,21 +202,21 @@
           <p>
             The solution is to add the JAXP system property via the Jelly script.
           </p>
  -        <source>
  +        <source><![CDATA[
   ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} 
  -&lt;ant:style in="${basedir}/some.xml" out="${maven.build.dest}/other.xml" style="${basedir}/sheet.xsl" processor="trax"/&gt; 
  -</source>
  +<ant:style in="${basedir}/some.xml" out="${maven.build.dest}/other.xml" style="${basedir}/sheet.xsl" processor="trax"/> 
  +]]></source>
           <p>
             Also make sure that Xalan is declared as dependencies in your project file:
           </p>
  -        <source>
  -&lt;dependency&gt;
  -  &lt;groupId&gt;xalan&lt;/groupId&gt; 
  -  &lt;artifactId&gt;xalan&lt;/artifactId&gt; 
  -  &lt;version&gt;2.3.1&lt;/version&gt; 
  -  &lt;url&gt;http://xml.apache.org/xalan/&lt;/url&gt; 
  -&lt;/dependency&gt;
  -       </source>
  +        <source><![CDATA[
  +<dependency>
  +  <groupId>xalan</groupId> 
  +  <artifactId>xalan</artifactId> 
  +  <version>2.3.1</version> 
  +  <url>http://xml.apache.org/xalan/</url> 
  +</dependency>
  +       ]]></source>
         </answer>
       </faq>
       <faq id="DownloadPlugin">
  @@ -266,12 +266,12 @@
           (These replace the deprecated versions of <code>${pom.getPluginContext(...).get/setVariable()}</code>
           and <code>maven:pluginVar</code>.)</p>
           <p>Example:</p>
  -        <source>
  -&lt;maven:get plugin="maven-war-plugin" property="maven.war.src" var="warSourceDir" /&gt;
  -&lt;echo>The WAR source directory is ${warSourceDir}&lt;echo&gt;
  +        <source><![CDATA[
  +<maven:get plugin="maven-war-plugin" property="maven.war.src" var="warSourceDir" />
  +<echo>The WAR source directory is ${warSourceDir}<echo>
   ...
  -&lt;maven:set plugin="maven-multiproject-plugin" property="maven.multiproject.includes" value="subprojects/*/project.xml"/&gt;
  -        </source>
  +<maven:set plugin="maven-multiproject-plugin" property="maven.multiproject.includes" value="subprojects/*/project.xml"/>
  +        ]]></source>
         </answer>
       </faq>
     </part>
  @@ -284,14 +284,14 @@
         <answer>
           When I try to generate my site I get something like this:
   
  -        <source>
  +        <source><![CDATA[
   BUILD FAILED
   null:58:46:
  -&lt;x:parse&gt; Invalid source argument. Must be a String, Reader,
  +<x:parse> Invalid source argument. Must be a String, Reader,
   InputStream or URL. Was type; java.io.File with value:
   /home/jvanzyl/js/com.werken/drools/target/jdepend-raw-report.xml
   Total time:  12 seconds
  -        </source>
  +        ]]></source>
           <p>
             This problem has been observed when a version of Jelly used as a
             dependency is different than the one distributed with Maven.
  @@ -351,15 +351,15 @@
           <p>
             The correct way to use ant tasks in maven.xml or a plugin is something like:
           </p>
  -        <source>
  -&lt;ant:taskdef name="checkstyle"
  -  classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"&gt;
  -  &lt;ant:classpath&gt;
  -    &lt;ant:pathelement location="${plugin.getDependencyPath('checkstyle:checkstyle')}"/&gt;
  -    &lt;ant:path refid="maven.dependency.classpath"/&gt;
  -  &lt;ant:classpath&gt;
  -&lt;ant:taskdef&gt;
  -        </source>
  +        <source><![CDATA[
  +<ant:taskdef name="checkstyle"
  +  classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
  +  <ant:classpath>
  +    <ant:pathelement location="${plugin.getDependencyPath('checkstyle:checkstyle')}"/>
  +    <ant:path refid="maven.dependency.classpath"/>
  +  <ant:classpath>
  +<ant:taskdef>
  +        ]]></source>
         </answer>
       </faq>
    
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org