ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: Using the script task
Date Fri, 30 Aug 2002 16:12:41 GMT
--- "Shah, Lokesh" <> wrote:
> I am using the script task to extract the name of a file from the
> path.

If you're running Ant1.5, you can use <basename> to do this, and avoid the

> What if my project name has blank spaces in it e.g.
> <project default="doNightlyBuild" name="Project Name">

Never tried it -- but, again, if you're using Ant1.5, you can reference
"project", rather than having to reference the project's name.

> Also , what is the diference between setUserProperty(...) and
> setProperty(...)?

     * Sets a user property, which cannot be overwritten by
     * set/unset property calls. Any previous value is overwritten.
  * Sets a property. Any existing property of the same name
  * is overwritten, unless it is a user property.



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

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

View raw message