You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/11/21 04:28:56 UTC

[Bug 64927] Arguments passed using "value" attributes are split by space

https://bz.apache.org/bugzilla/show_bug.cgi?id=64927

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Jaikiran Pai <ja...@apache.org> ---
I haven't been able to reproduce this on a *nix setup with a similar project:

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="" name="64927" default="dist">
    <target name="dist" xmlns:if="ant:if" xmlns:unless="ant:unless">
        <echo message="projectFile: ${project.file}" />
        <echo message="script.location: ${script.location}" />

        <exec executable="sh" failonerror="yes">
            <arg value="${script.location}"/>   

            <!-- Set the project xml file -->
            <arg value="--project"/>
            <arg value="${project.file}"/>
        </exec>
    </target>
</project>


The command:

ant "-Dscript.location=./Directory With White Spaces/test.sh"
"-Dproject.file=./project file.xml" 

works fine:

 [echo] projectFile: ./project file.xml
     [echo] script.location: ./Directory With White Spaces/test.sh
     [exec] Hello world

(contents of test.sh is just a simple echo "Hello world" which gets printed in
that output).

I don't have access to any Windows setup to give this a try there.

-- 
You are receiving this mail because:
You are the assignee for the bug.