ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: [HOWTO] from a filename to a <fileset>
Date Mon, 22 Jul 2002 20:49:56 GMT
--- Dominique Devienne <> wrote:
> I wanted to run <antdoc> on the current build file (whose absolute
> filename is in ${ant.file}), but <antdoc> doesn't have a 'file'
> attribute, only a <fileset> subelement. 
> If you know of a better way to do this, thanks to let me know.

  <target name="getBuildFile">
    <script language="javascript"> <![CDATA[
      file = new"ant.file"));
      projname.setUserProperty("", file.getName());

If you want to also get the dir, add:
      projname.setUserProperty("buildfile.dir", file.getParent());



Do You Yahoo!?
Yahoo! Health - Feel better, live better

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message