ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev K <antuser2...@yahoo.com>
Subject Re: Help with file-based task
Date Mon, 16 Jul 2001 14:35:52 GMT
Thanks for all your help on this. I'll check out the
style tag!

--- Jon Eaves <jon@eaves.org> wrote:
> Hi all, 
> 
> I've had a couple of requests off list, and this
> one on-list.  I've included my build.xml.
> 
> Enjoy !
> 
> Cheers,
>     -- jon
> 
> ----- Original Message ----- 
> From: "Eric Richardson" <eric@milagrosoft.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Sunday, July 15, 2001 7:41 AM
> Subject: Re: Help with file-based task
> 
> 
> > Jon Eaves wrote:
> > > 
> > > Hi all,
> > > 
> > > Erm, at the risk of looking more stupid that I
> normally do,
> > > I just tried it.
> > > 
> > > It all just works.
> > > 
> > > I suppose I should be happy, but it's a bit hard
> at the
> > > moment ;-)
> > > 
> > > Thanks to the creators of the <style> task.
> > > 
> > > If anybody wants to see how I've done it, just
> drop me a
> > > line off the list (so as not to pollute it any
> further).
> > > 
> > You can share what you found here as this is what
> the list is for.
> > Thanks,
> > Eric
> > 
> > <project name="xslt" default="out" basedir=".">
> 
> <property name="file.xsl" value="test.xsl" />
> <property name="dest" value="output" />
> 
> <fileset id="file.set" >
> 	<include name="*.xml"/>
> 	<exclude name="build.xml" />
> </fileset>
> 
> <target name="out">
> 	<style basedir="." destdir="${dest}"
> extension=".html" style="${file.xsl}" >
> 		<include name="input/**/*.xml"/>
> 		<exclude name="build.xml" />
> 	</style>
> </target>
> 
> <target name="clean">
> 	<delete includeEmptyDirs="true">
> 		<fileset dir="${dest}" />
> 	</delete>
> </target>
> 
> 
> </project>
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message