forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Noels <stev...@outerthought.org>
Subject Re: Forrest 0.2-rc1 released :)
Date Thu, 14 Nov 2002 08:30:59 GMT
Jeff Turner wrote:

> Try running 'forrest -v', which will print out a fuller stack trace.  I
> tried briefly on my ageing Win95 box, eventually gave up and tried just
> Ant 1.6.. I think there's a problem with ant.bat: it ignores ANT_HOME,
> and I could only get Ant working by putting it in c:\ant

it looks like the classpath is badly constructed... I patched 
ant\bin\ant.bat for debugging like this:

:runAnt
echo %LOCALCLASSPATH%
echo "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" 
%ANT_OPTS% org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
"%_JAVACMD%" -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" 
%ANT_OPTS% org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
goto end

and those echo produce:

(classpath) 
"C:\bin\java\j2sdk1.4.1\lib\tools.jar";C:\Program;Files\apache-forrest-0.2-bin\ant\lib\resolver.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\nodeps.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-xalan2.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-trax.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-apache-resolver.jar;;C:\Program;C:\Program;C:\Program;C:\Program

(invocation) "C:\bin\java\j2sdk1.4.1\bin\java.exe" -classpath 
""C:\bin\java\j2sdk1.4.1\lib\tools.jar";C:\Program;Files\apache-forrest-0.2-bin\ant\lib\resolver.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\nodeps.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-xalan2.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-trax.jar;C:\Program;Files\apache-forrest-0.2-bin\ant\lib\ant-apache-resolver.jar;;C:\Program;C:\Program;C:\Program;C:\Program"

  "-Dant.home=C:\Program Files\apache-forrest-0.2-bin\ant" 
org.apache.tools.ant.Main  -buildfile "C:\Program 
Files\apache-forrest-0.2-bin\forrest.build.xml" -Dbasedir "C:\Documents 
and Settings\stevenn\My Documents\dump\testje" -Dproject.home 
"C:\Documents and Settings\stevenn\My Documents\dump\testje" 
-Dforrest.home "C:\Program Files\apache-forrest-0.2-bin" -emacs -logger 
org.apache.tools.ant.NoBannerLogger -v -projecthelp
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/Main

Question: do we need to use ant.bat, can't we just write our own Ant 
invocation script?

ps: Jeff, any instant messaging protocol I can use to reach you?

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0103539/
stevenn at outerthought.org                stevenn at apache.org


Mime
View raw message