I'm calling an Ant target using Java. I'm using the:
    <groupId>org.apache.maven.plugin-tools</groupId>
    <artifactId>maven-plugin-tools-ant</artifactId>
    <version>2.4</version>
plugin.

I have the following "build_foo.xml" Ant script in my Maven source dir:
    <project name="build_foo" default="info" basedir=".">
        <target name="info">
            <mkdir dir="${basedir}/foo" />
        </target>
    </project>

Upon calling "mvn clean package", this file is copied in the
"target/classes" directory, with the following content:
    <project name="build_foo" default="info" basedir=".">
        <target name="info">
            <mkdir dir="C\:\\Program
Files\\eclipse-3.4\\workspace\\maven-agp-plugin/foo" />
        </target>
    </project>

Then, doing "ant -f target/classes/build_foo.xml" fails with this error:
    C:\Program
Files\eclipse-3.4\workspace\maven-agp-plugin\target\classes\build_foo.xml:4:
Directory C:\Program
Files\eclipse-3.4\workspace\maven-agp-plugin\target\classes\C\:\Program
Files\eclipse-3.4\workspace\maven-agp-plugin\foo creation was not successful
for an unknown reason

Basically, it fails because of the backslash before the colon ("C\:").


Is this a bug in the Ant Maven plugin?
-- 
View this message in context: 
http://www.nabble.com/Backslash-colon-problem-with-%24%7Bbasedir%7D-using-maven-plugin-tools-ant-tp24111308p24111308.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to