ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Cygwin, Ant, and java.class.path Weirdness
Date Fri, 18 Mar 2005 20:16:39 GMT
Ant Users/Developers,

I noticed some odd Ant behavior on an installation like:
    Windows 2K
    Cygwin 1.5.10-3 (will use the 'ant' shell script to run Ant)
    Bash 2.05b.0(1)-release (i686-pc-cygwin)
    Ant 1.6.2

Given a CLASSPATH like:
    U:\pkg\ant-1.6.2\lib\ant.jar;U:\pkg\ant-1.6.2\lib\ant-launcher.jar;U:\pkg\java\aaa-latest\jdk\jre\lib\rt.jar;U:\pkg\java\aaa-latest\jdk\lib\tools.jar;

And a simple Ant script like:
   <?xml version="1.0"?>
   <project name="xyz" basedir="." default="a">
     <target name="a">
         <echo message="path.separator: ${path.separator}"/>
         <echo message="java.class.path: ${java.class.path}"/>
     </target>
   </project>

I get the following weird output. The parts after "tools.jar" are the 
contents of the Ant
installation's lib directories. It's like Ant is using "U:\tmp\U;" instead 
of ";" as
the path separator. Note that "U:\tmp" is the current working directory 
from which
the Ant script is run.

a:
      [echo] path.separator: ;
      [echo] java.class.path: 
U:/pkg/java/aaa-latest/ant/lib/ant-launcher.jar;U:\tmp\U;U:\pkg\ant-1.6.2\lib\ant.jar;U:\tmp\U;U:\pkg\ant-1.6.2\lib\ant-launcher.jar;U:\tmp\U;U:\pkg\java\aaa-latest\jdk\jre\lib\rt.jar;U:\tmp\U;U:\pkg\java\aaa-latest\jdk\lib\tools.jar;U:\pkg\java\aaa-latest\ant\lib\ant-antlr.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-bcel.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-bsf.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-log4j.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-oro.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-regexp.jar;U:\pkg\java\aaa-latest\ant\lib\ant-apache-resolver.jar;U:\pkg\java\aaa-latest\ant\lib\ant-commons-logging.jar;U:\pkg\java\aaa-latest\ant\lib\ant-commons-net.jar;U:\pkg\java\aaa-latest\ant\lib\ant-contrib-1.0b1.jar;U:\pkg\java\aaa-latest\ant\lib\ant-icontract.jar;U:\pkg\java\aaa-latest\ant\lib\ant-jai.jar;U:\pkg\java\aaa-latest\ant\lib\ant-jakarta-regexp.jar;U:\pkg\java\aaa-latest\ant\lib\ant-javamail.jar;U:\pkg\java\aaa-latest\ant\lib\ant-jdepend.jar;U:\pk
g 
\java\aaa-latest\ant\lib\ant-jmf.jar;U:\pkg\java\aaa-latest\ant\lib\ant-jsch.jar;U:\pkg\java\aaa-latest\ant\lib\ant-junit.jar;U:\pkg\java\aaa-latest\ant\lib\ant-launcher.jar;U:\pkg\java\aaa-latest\ant\lib\ant-netrexx.jar;U:\pkg\java\aaa-latest\ant\lib\ant-nodeps.jar;U:\pkg\java\aaa-latest\ant\lib\ant-starteam.jar;U:\pkg\java\aaa-latest\ant\lib\ant-stylebook.jar;U:\pkg\java\aaa-latest\ant\lib\ant-swing.jar;U:\pkg\java\aaa-latest\ant\lib\ant-trax.jar;U:\pkg\java\aaa-latest\ant\lib\ant-vaj.jar;U:\pkg\java\aaa-latest\ant\lib\ant-weblogic.jar;U:\pkg\java\aaa-latest\ant\lib\ant-xalan1.jar;U:\pkg\java\aaa-latest\ant\lib\ant-xslp.jar;U:\pkg\java\aaa-latest\ant\lib\ant.jar;U:\pkg\java\aaa-latest\ant\lib\xercesImpl.jar;U:\pkg\java\aaa-latest\ant\lib\xml-apis.jar;U:\pkg\java\j2sdk1.4.2_02\lib\tools.jar


Has anyone else noticed this problem using Ant and Cygwin? Normally, I 
wouldn't care
because Ant seems to handle the weird path, but with a CLASSPATH of any 
significant
complexity other Ant task's like <xslt> and <junitreport> start dying with
StackOverflowErrors for whatever reasons.

Thanks,

The Wabbit 



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


Mime
View raw message