Re: Re: Ant included
Michael Wechner <[email protected]> Tue, 25 Feb 2003 22:14:10 +0100
| Newsgroups | gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <[email protected]> |
Gregor J. Rothfuss wrote:
>>The changes are because we are currently working on the "separation" of
>>the publications from the actual CMS.
>>
>>
>
>i may be mistaken, but it looks like this is another thing that doesnt work
>on windows:
>
><mapper type="regexp" from="(.*)/java/src/(.*)" to="\2">
></mapper>
>
>doesnt match any files.
>
>according to http://ant.apache.org/manual/CoreTypes/mapper.html :
>
>Note that Ant will not automatically convert / or \ characters in the to and
>from attributes to the correct directory separator of your current platform.
>If you need to specify this separator, use ${file.separator} instead.
>
>if i change this to:
>
><mapper type="regexp"
>from="(.*)${file.separator}java${file.separator}src${file.separator}(.*)"
>to="\2">
></mapper>
>
>it fails with:
>
>[copy] BUILD FAILED: file:C:/src/wyonacms/build.xml:261:
>java.util.regex.PatternSyntaxException: Illegal/unsupported escape squence
>near index 5
>(.*)\java\src\(.*)
>
>now if i were to add \ to escape the \ it would no longer run on unix..
>catch-22?
>
yeah, quite tricky. To be honest I haven't found much informationen
concerning ant and the usage
of regexp (except the page you are refering to).
I see two solutions:
1) Digging the ant mailing lists and possibly subscribe to them.
Wouldn't hurt ;-)
2) Write an Ant custom task, which is copying the publication specific
java sources into
the build tree. This would allow us to throw out the regexp stuff ...
any other suggestions?
Thanks
Michael
>
>-gregor
>
>
>
>_______________________________________________
>WyonaCMS-dev mailing list
>[email protected]
>http://mail.wyona.org/cgi-bin/mailman/listinfo/wyonacms-dev
>
>
>