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 Wed, 13 Nov 2002 22:14:22 GMT
Jeff Turner wrote:

> I'm particularly interested in getting feedback from Windows users about
> the various scripts, eg whether they run in directories with spaces.

Have dl'ed the bin dist and unzipped in the dreaded c:\Program Files 
directory, and fighting ever since. The closest I get to a working 
version is using a forrest.bat modified like this (basically removed 
some quotes):


 >>>>>>>>>>>>>>>>
rem @echo off
setlocal

Rem ----- use the location of this script to infer $FORREST_HOME -------
set DEFAULT_FORREST_HOME=%~dp0\..
if "%FORREST_HOME%"=="" set FORREST_HOME=%DEFAULT_FORREST_HOME%

Rem ----- set the current working dir as the PROJECT_HOME variable  ----
call "%FORREST_HOME%\bin\setpwdvar.bat"
set PROJECT_HOME="%PWD%"

Rem ----- set the ant file to use --------------------------------------
set ANTFILE="%FORREST_HOME%\forrest.build.xml"

Rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME=%FORREST_HOME%\ant

set OLD_CLASSPATH=%CLASSPATH%
set CLASSPATH=
for %%i in ("%FORREST_HOME%\lib\endorsed\*.jar") do call appendcp.bat %%i

echo "Apache Forrest.  Run 'forrest -projecthelp' to list options"

Rem ----- call ant.. ---------------------------------------------------
"%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir=%PROJECT_HOME% 
-Dproject.home=%PROJECT_HOME% -Dforrest.home="%FORREST_HOME%" -emacs 
-logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9

Rem ---- Restore old ANT_HOME
set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%

endlocal
<<<<<<<<<<<<<

but still it produces (@echo off uncommented):


 >>>>>>>>>>>>>
C:\Documents and Settings\stevenn\My Documents\dump\testje>forrest 
-projecthelp

C:\Documents and Settings\stevenn\My Documents\dump\testje>rem @echo off

C:\Documents and Settings\stevenn\My Documents\dump\testje>setlocal

C:\Documents and Settings\stevenn\My Documents\dump\testje>Rem ----- use 
the location of this script to infer $FORREST_HOME -------

C:\Documents and Settings\stevenn\My Documents\dump\testje>set 
DEFAULT_FORREST_HOME=C:\Program Files\apache-forrest-0.2-bin\bin\\..

C:\Documents and Settings\stevenn\My Documents\dump\testje>if 
"C:\Program Files\apache-forrest-0.2-bin" == "" set 
FORREST_HOME=C:\Program Files\apache
-forrest-0.2-bin\bin\\..

C:\Documents and Settings\stevenn\My Documents\dump\testje>Rem ----- set 
the current working dir as the PROJECT_HOME variable  ----

C:\Documents and Settings\stevenn\My Documents\dump\testje>call 
"C:\Program Files\apache-forrest-0.2-bin\bin\setpwdvar.bat"
"Apache Forrest.  Run 'forrest -projecthelp' to list options"
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/Main
<<<<<<<<<<<<<<

echo'ing the line which calls forrest-ant:

"C:\Program Files\apache-forrest-0.2-bin\ant\bin\ant" -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 -projecthelp

Will investigate further tomorrow morning.

</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