You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ja...@rzf.fin-nrw.de on 2010/01/08 10:25:31 UTC

Txt2Html

I found a Task by the Tomcat team and created a target for discussion ...


Jan 


-----Ursprüngliche Nachricht-----
Von: jhm@apache.org [mailto:jhm@apache.org] 
Gesendet: Freitag, 8. Januar 2010 10:24
An: notifications@ant.apache.org
Betreff: svn commit: r897141 - /ant/core/trunk/docs.xml

Author: jhm
Date: Fri Jan  8 09:24:17 2010
New Revision: 897141

URL: http://svn.apache.org/viewvc?rev=897141&view=rev
Log:
Add a txt2html target for discussion.

Modified:
    ant/core/trunk/docs.xml

Modified: ant/core/trunk/docs.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs.xml?rev=897141&r1=897140&r2=897141&view=diff
==============================================================================
--- ant/core/trunk/docs.xml (original)
+++ ant/core/trunk/docs.xml Fri Jan  8 09:24:17 2010
@@ -117,5 +117,23 @@
     </target>
 
     <target name="all" depends="docs,javadocs" description="Create both XDocs and Javadoc."/>
+    
+    
+    <available property="jdk1.5+" classname="java.net.Proxy"/>
+    <target name="txt2html">
+        <fail unless="jdk1.5+" message="Tomcat BuildUtils requires Java5+"/>
+        <property name="build.dir" value="build"/>
+        <tempfile property="temp.dir"/>
+        <mkdir dir="${temp.dir}/org/apache/tomcat/buildutil"/>
+        <get src="http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java"
+             dest="${temp.dir}/org/apache/tomcat/buildutil/Txt2Html.java"/>
+        <javac srcdir="${temp.dir}" destdir="${temp.dir}" includeAntRuntime="true"/>
+        <taskdef name="txt2html" classname="org.apache.tomcat.buildutil.Txt2Html" classpath="${temp.dir}"/>
+        <mkdir dir="${build.dir}/html"/>
+        <txt2html todir="${build.dir}/html">
+            <fileset file="WHATSNEW"/>
+        </txt2html>
+        <delete dir="${temp.dir}"/>
+    </target>
 
 </project>



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


Re: Txt2Html

Posted by Antoine Levy Lambert <an...@gmx.de>.
I have uploaded a new version of RELEASE-NOTES done with this tool to 
http://people.apache.org/~antoine/dist/apache-ant-1.8.0RC1/RELEASE-NOTES-1.8.0RC1.html

So the changes done by Stefan to componentdef notes should be there. 
Plus this addresses the complaint about the too many blank lines in the 
previous version.

Antoine

Antoine Levy Lambert wrote:
> Uhhm. This makes a bare bones RELEASE-NOTES.html.
>
> This ant task does is just prepend <html><body>, append </body></html> 
> and escape some characters like "<" which would create trouble.
>
> What is missing is creating titles for text followed by ==== and 
> ------- lines, and creating <ul><li></li> .... </ul> tags where we 
> have stars.
>
> Regards,
>
> Antoine
>
>
> Antoine Levy Lambert wrote:
>> This looks cool. Let me try it !
>>
>> Antoine
>>
>> Jan.Materne@rzf.fin-nrw.de wrote:
>>> I found a Task by the Tomcat team and created a target for 
>>> discussion ...
>>>
>>>
>>> Jan
>
>


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


Re: Txt2Html

Posted by Antoine Levy Lambert <an...@gmx.de>.
Uhhm. This makes a bare bones RELEASE-NOTES.html.

This ant task does is just prepend <html><body>, append </body></html> 
and escape some characters like "<" which would create trouble.

What is missing is creating titles for text followed by ==== and ------- 
lines, and creating <ul><li></li> .... </ul> tags where we have stars.

Regards,

Antoine


Antoine Levy Lambert wrote:
> This looks cool. Let me try it !
>
> Antoine
>
> Jan.Materne@rzf.fin-nrw.de wrote:
>> I found a Task by the Tomcat team and created a target for discussion 
>> ...
>>
>>
>> Jan


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


Re: Txt2Html

Posted by Antoine Levy Lambert <an...@gmx.de>.
This looks cool. Let me try it !

Antoine

Jan.Materne@rzf.fin-nrw.de wrote:
> I found a Task by the Tomcat team and created a target for discussion ...
>
>
> Jan 
>
>
> -----Ursprüngliche Nachricht-----
> Von: jhm@apache.org [mailto:jhm@apache.org] 
> Gesendet: Freitag, 8. Januar 2010 10:24
> An: notifications@ant.apache.org
> Betreff: svn commit: r897141 - /ant/core/trunk/docs.xml
>
> Author: jhm
> Date: Fri Jan  8 09:24:17 2010
> New Revision: 897141
>
> URL: http://svn.apache.org/viewvc?rev=897141&view=rev
> Log:
> Add a txt2html target for discussion.
>
> Modified:
>     ant/core/trunk/docs.xml
>
> Modified: ant/core/trunk/docs.xml
> URL: http://svn.apache.org/viewvc/ant/core/trunk/docs.xml?rev=897141&r1=897140&r2=897141&view=diff
> ==============================================================================
> --- ant/core/trunk/docs.xml (original)
> +++ ant/core/trunk/docs.xml Fri Jan  8 09:24:17 2010
> @@ -117,5 +117,23 @@
>      </target>
>  
>      <target name="all" depends="docs,javadocs" description="Create both XDocs and Javadoc."/>
> +    
> +    
> +    <available property="jdk1.5+" classname="java.net.Proxy"/>
> +    <target name="txt2html">
> +        <fail unless="jdk1.5+" message="Tomcat BuildUtils requires Java5+"/>
> +        <property name="build.dir" value="build"/>
> +        <tempfile property="temp.dir"/>
> +        <mkdir dir="${temp.dir}/org/apache/tomcat/buildutil"/>
> +        <get src="http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java"
> +             dest="${temp.dir}/org/apache/tomcat/buildutil/Txt2Html.java"/>
> +        <javac srcdir="${temp.dir}" destdir="${temp.dir}" includeAntRuntime="true"/>
> +        <taskdef name="txt2html" classname="org.apache.tomcat.buildutil.Txt2Html" classpath="${temp.dir}"/>
> +        <mkdir dir="${build.dir}/html"/>
> +        <txt2html todir="${build.dir}/html">
> +            <fileset file="WHATSNEW"/>
> +        </txt2html>
> +        <delete dir="${temp.dir}"/>
> +    </target>
>  
>  </project>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>   


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