Grokbase Groups Ant user May 2004
FAQ

[Ant-user] cygpath: can't convert empty path

Robert Mark Bram
May 23, 2004 at 1:21 pm
Hi All!

Whenever I try to run any Ant build file in Cygwin, it seems to work ok
but I see this message first:
cygpath: can't convert empty path

Here is the full output from the simple build file below that:

$ant
cygpath: can't convert empty path
Buildfile: build.xml

helloWorld:
[echo] Hello World!

BUILD SUCCESSFUL
Total time: 1 second


<project name="Hello World!" default="helloWorld" basedir=".">
<target name="helloWorld">
<echo>Hello World!</echo>
</target>
</project>

Any advice would be much appreciated! I know I can ignore it, but I would
like to find out what is going on.

Rob
:)


--
Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA

Phone: 61 3 9904 4394
Facsimile: 61 3 9904 4124
Email: robert.mark.bram@infotech.monash.edu.au


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
reply

Search Discussions

3 responses

  • Yuji Yamano at May 23, 2004 at 1:33 pm

    On Sun, 23 May 2004 23:22:03 +1000, Robert Mark Bram wrote:

    Whenever I try to run any Ant build file in Cygwin, it seems to work ok
    but I see this message first:
    cygpath: can't convert empty path
    I guess something is wrong in your environment and empty path is
    passed to cygpath. Try to run:

    % /bin/sh -x `which ant`

    and find what is passed to cygpath.

    -- Yuji Yamano <yyamano@kt.rim.or.jp>
    Loan me your funky mind. So I can play with it,
    for nothing is good unless you play with it. --George Clinton

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
    For additional commands, e-mail: user-help@ant.apache.org
  • Robert Mark Bram at May 23, 2004 at 1:59 pm
    Hi Yuji!

    Thank you for the response!
    Whenever I try to run any Ant build file in Cygwin, it seems to work ok
    but I see this message first:
    cygpath: can't convert empty path
    I guess something is wrong in your environment and empty path is
    passed to cygpath. Try to run:

    % /bin/sh -x `which ant`

    and find what is passed to cygpath.
    Well, that was interesting..

    /cygdrive/f/notes/ant/build
    $/bin/sh -x `which ant`
    + [ -f /etc/ant.conf ]
    + [ -z ]
    + rpm_mode=false
    + [ -z ]
    + usejikes=false
    + [ -f /home/rob/.antrc ]
    + cygwin=false
    + darwin=false
    + uname
    + cygwin=true
    + [ -z -o ! -d ]
    + [ -d /opt/ant ]
    + [ -d /home/rob/opt/ant ]
    + PRG=/cygdrive/c/java/apache-ant-1.6.1/bin/ant
    + basename /cygdrive/c/java/apache-ant-1.6.1/bin/ant
    + progname=ant
    + [ -h /cygdrive/c/java/apache-ant-1.6.1/bin/ant ]
    + dirname /cygdrive/c/java/apache-ant-1.6.1/bin/ant
    + ANT_HOME=/cygdrive/c/java/apache-ant-1.6.1/bin/..
    + cd /cygdrive/c/java/apache-ant-1.6.1/bin/..
    + pwd
    + ANT_HOME=/cygdrive/c/java/apache-ant-1.6.1
    + true
    + [ -n /cygdrive/c/java/apache-ant-1.6.1 ]
    + cygpath --unix /cygdrive/c/java/apache-ant-1.6.1
    + ANT_HOME=/cygdrive/c/java/apache-ant-1.6.1
    + [ -n ]
    + ANT_LIB=/cygdrive/c/java/apache-ant-1.6.1/lib
    + [ -z ]
    + [ -n ]
    + which java
    + JAVACMD=/cygdrive/c/java/j2sdk1.4.2_02/bin/java
    + [ -z /cygdrive/c/java/j2sdk1.4.2_02/bin/java ]
    + [ ! -x /cygdrive/c/java/j2sdk1.4.2_02/bin/java ]
    + false
    + [ -z ]
    + LOCALCLASSPATH=/cygdrive/c/java/apache-ant-1.6.1/lib/ant-launcher.jar
    + [ -n ]
    + false
    + true
    + cygpath --windows /cygdrive/c/java/apache-ant-1.6.1
    + ANT_HOME=c:\java\apache-ant-1.6.1
    + cygpath --windows
    cygpath: can't convert empty path
    + JAVA_HOME=
    + cygpath --path --windows
    /cygdrive/c/java/apache-ant-1.6.1/lib/ant-launcher.jar
    + LOCALCLASSPATH=c:\java\apache-ant-1.6.1\lib\ant-launcher.jar
    + cygpath --windows /home/rob
    + CYGHOME=C:\cygwin\home\rob
    + [ -n C:\cygwin\home\rob ]
    + [ -n ]
    + exec /cygdrive/c/java/j2sdk1.4.2_02/bin/java -classpath
    c:\java\apache-ant-1.6.1\lib\ant-laun
    cher.jar -Dant.home=c:\java\apache-ant-1.6.1
    -Dcygwin.user.home=C:\cygwin\home\rob org.apache.t
    ools.ant.launch.Launcher -lib
    .;C:\java\JMF21~1.1E\lib\sound.jar;C:\java\JMF21~1.1E\lib\jmf.jar
    ;C:\java\JMF21~1.1E\lib;.;C:\java\mysql-connector-java-3.0.6-stable;c:\java\JMF21~1.1\lib\sound
    .jar;c:\java\JMF21~1.1\lib\jmf.jar;c:\java\JMF21~1.1\lib;C:\WINDOWS\java\classes;C:\cygwin\usr\
    local\bin;C:\cygwin\usr\local\bin
    Buildfile: build.xml

    helloWorld:
    [echo] Hello World!

    BUILD SUCCESSFUL
    Total time: 2 seconds

    /cygdrive/f/notes/ant/build
    $

    Cygpath is in that output, but it doesn't look empty..

    Rob
    :)


    --
    Robert Mark Bram
    B.Comp.(Systems Development/Business Systems)
    B.Net.Comp.(Hons)
    Doctor of Philosophy Student

    School of Network Computing
    Faculty of Information Technology
    Monash University
    Peninsula Campus
    McMahons Rd
    Frankston, VIC 3199
    AUSTRALIA

    Phone: 61 3 9904 4394
    Facsimile: 61 3 9904 4124
    Email: robert.mark.bram@infotech.monash.edu.au


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
    For additional commands, e-mail: user-help@ant.apache.org
  • Yuji Yamano at May 23, 2004 at 2:31 pm
    Hi Robert!

    On Sun, 23 May 2004 23:59:25 +1000,
    Robert Mark Bram wrote:
    + cygpath --windows
    cygpath: can't convert empty path
    + JAVA_HOME=
    JAVA_HOME doesn't seems to be defined.
    Cygpath is in that output, but it doesn't look empty..
    cygpath requires path name as its arg. The "empty path" means
    no path name arg.

    -- Yuji Yamano <yyamano@kt.rim.or.jp>
    Loan me your funky mind. So I can play with it,
    for nothing is good unless you play with it. --George Clinton

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
    For additional commands, e-mail: user-help@ant.apache.org

Related Discussions

Discussion Navigation
viewthread | post

2 users in discussion

Robert Mark Bram: 2 posts Yuji Yamano: 2 posts