Re: Ant included
"Gregor J. Rothfuss" <[email protected]> Tue, 25 Feb 2003 16:06:10 +0100
| Newsgroups | gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <[email protected]> |
> 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?
-gregor