ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Re: Cygwin, Ant, and java.class.path Weirdness
Date Fri, 18 Mar 2005 22:38:23 GMT
Thanks all, for the bug/fix pointers!

-The Wabbit


At 04:20 PM 3/18/2005, you wrote:

>--- Martijn Kruithof <jm@kruithof.xs4all.nl> wrote:
>
> > I recently fixed bug 31245. The problems seem to
> > emerge from the way
> > cygwin, the jvm, windows and the ant script expect
> > the CLASSPATH to be.
> > : being the path separator on cygwin and the drive
> > letter separation on
> > windows gives not so nice effects when paths are
> > normalized using the
> > utilities of cygwin.
>
>That does look like the same thing, doesn't it?  I
>knew you had fixed something, hence my suggestion of
>upgrading to a later version of the script or go to
>1.6.3 when available.  :)
>
>-Matt
>
> >
> > Martijn
> >
> > Matt Benson wrote:
> >
> > >Remember that both path.separator and
> > java.class.path
> > >are technically VM settings so the only part of Ant
> > >that could be responsible is really the invoking
> > >script.  There are always adjustments being made
> > for
> > >cygwin in that script.  Things I would try:
> > >
> > >remove the trailing semicolon from your CLASSPATH
> > >
> > >upgrade to a recent CVS version of the ant script
> > (if
> > >not possible just wait for 1.6.3 out probably by
> > early
> > >May I would guess)
> > >
> > >unset your CLASSPATH
> > >
> > >HTH,
> > >Matt
> > >
> > >--- Wascally Wabbit <wascallywabbit@earthling.net>
> > >wrote:
> > >
> > >
> > >>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-j 
> sch.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