On Mon, 8 Mar 2004, Dominique Devienne <[EMAIL PROTECTED]> wrote:

>           file = project.resolveFile("@{file}");
...

> In the <last-modified> macro, when called from the other macro,
> the file attribute has lost of its back-slashes '\'...

Because it lives inside a JavaScript string and JavaScript uses
backslashes as escape characters.  <macrodef> is only doing a textual
replace.

Is there the equivalent of C#'s @"string" syntax in JavaScript?  I
don't think so.

Turn

>       <property name="@{name}.dest"
>                 location="${helpzips}/[EMAIL PROTECTED]" />

into

      <property name="@{name}.dest"
                value="${helpzips}/[EMAIL PROTECTED]" />

It won't hurt since you are using project.resolveFile anyway and you
don't have any backslashes in the string - unless the expanded
helpzips property contains some.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to