ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Knights" <>
Subject RE: How do I capture the current directory during execution?
Date Wed, 20 Jun 2001 00:24:55 GMT
Why can't you just use
<param name="workDir" expression="${root}"/>
or some variation on that theme?

If I may ask why do you need to pass in the directory? I can process directories with the
trax processor (with Saxon behind it)
without any trouble.

FWIW Saxon contains an extension function that will return the system id of the document being
processed. If you really need to use
the location of the document in your stylesheet you might find that a method in your stylesheet
engine will do this for you (as well
as making your stylesheet not dependent on Ant)

-----Original Message-----
From: Annie Frost []
Sent: Tuesday, June 19, 2001 4:52 PM
To: ''
Subject: RE: How do I capture the current directory during execution?

Lorenzo -

Did you figure this out?  I am having the same problem.  Want to keep it simple, but am having
problems only using ANT.  Seems like
I can only write some other code to read in the directory and pass it...

-----Original Message-----
From: Lorenzo Rodriguez []
Sent: Tuesday, June 19, 2001 10:48 AM
To: ''
Subject: How do I capture the current directory during execution?

How can I process documents in a directory structure, and capture the directory where the
files are being processed from? I need to
pass it to a style sheet.  Here is my code:
<target name="publishItems" depends="init, prepare">
        <style basedir="${root}"
            <!-- param name="workDir" expression=""/ -->
The includes will match **/*.ent, but how can I find out what ** is so that I can pass that
value to sgml.xsl?

View raw message