ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Using tidy.jar in Java task-problem
Date Sat, 24 Jul 2004 14:22:38 GMT
Hello,
look at ant-contrib http://ant-contrib.sourceforge.net/
in ant-contrib, there are for and foreach tasks that you can use to iterate
over a set of files.
Cheers,
Antoine
> Hi,
> 
> I have to use the tidy.jar to make the html files in a
> directory - as well formed.
> 
> I tried it with ant java task.
> 
> <java classname="org.w3c.tidy.Tidy" output="f:\test\"
> fork="true">
> <arg line="-f C:\june18\errs.txt -asxhtml -numeric
> f:\test\ &gt;&gt; f:\test\output1.txt"/>
> </java>
> 
> It works fine.
> 
> But how can I make this to work for an entire set of
> directory. I understood that ant java task takes
> argument and so it takes only 1 file.
> 
> for example, i have a directory structure
> 
> c:\w\x\y\z\
> 
> I have some html files in each subdirectory. I want
> the these files to be tidy up using ant java task and
> placed in another directory as
> 
> d:\w\x\y\z\
> 
> i.e. I want the diretory structure to be the same with
> the html files made well formed and the extension
> changed as .ehtml
> 
> How can this be done. i.e. how can I add srcdir,
> destdir, includes, excludes etc attributes to ant java
> task?
> 
> bye,
> with regards,
> Deepak.
> 
> =====


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


Mime
View raw message