ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject proposal/xdocs : Anakia versus dvsl
Date Wed, 17 Dec 2003 20:31:32 GMT
Hi,

anybody has an idea why in the xdocs proposal we are using dvsl to 
format into html the documentation, while we are using the anakia task 
for the rest of ant's web site ?
There is one thing I like about anakia : it can process CDATA sections 
with build file examples where in the XML there are litteral < > ...

I have tried inserting such a CDATA section in the 
proposal/xdocs/src/org/apache/tools/ant/taskdefs/Javadoc.xml

This results in dvsl complaining and not processing this section :

     [dvsl]   [warn] 
org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = source [line 465,column 47] : $toolbox.htmlescape.getText( 
$node.value() ) is not a valid reference.

So, is there something that dvsl can do and that anakia can't ?

Cheers,

Antoine

Here is the snippet which I have tentatively inserted into Javadoc.xml :

<section anchor="examples" name="Example">
    <source><![CDATA[
<target name="cond" depends="cond-if,cond-else"/>

<target name="check-cond">
  <condition property="cond-is-true">
    <and>
      <not>
        <equals arg1="${prop1}" arg2="$${prop1}" />
      </not>
      <not>
        <equals arg1="${prop2}" arg2="$${prop2}" />
      </not>
      <equals arg1="${prop3}" arg2="$${prop3}" />
    </and>
  </condition>
</target>

<target name="cond-if" depends="check-cond" if="cond-is-true">
  <echo message="yes"/>
</target>

<target name="cond-else" depends="check-cond" unless="cond-is-true">
  <echo message="no"/>
</target>
]]></source>

(totally unrelated to Javadoc but a good example, taken from faq.xml.



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


Mime
View raw message