This looks cool. Let me try it !
Antoine
jan.mate...@rzf.fin-nrw.de wrote:
I found a Task by the Tomcat team and created a target for discussion ...
Jan
-----Ursprüngliche Nachricht-----
Von: j...@apache.org [mailto:j...@apache.org]
Gesendet: Freitag, 8. Januar 2010 10:24
An: notificati...@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-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org