Signed out Xindice from the CVS into c:\Program Files\Xindice but the batch file wouldn't work.  I took a peek and it seems there were no quotes tossed in to deal with the space between Program and Files.  Unfortunately, that didn't help much because the compiler failed.  Looks to be the tearDown() method causing the problem.  Could somebody advise on how to overcome this problem?  Thanks again!

Attached is the build output, error and my modified ant.bat for anybody interested.
--
   Anthony Rabaa
   Software Developer & Network Administrator
   AMCon Research Inc.
   Ottawa, Ontario, Canada
   http://www.amconresearch.net

    [javac] C:\Program 
Files\Xindice\java\tests\src\org\apache\xindice\StressTests.java:65: warning: 
org.apache.xindice.core.filer.HashFiler in org.apache.xindice.core.filer has 
been deprecated
    [javac] import org.apache.xindice.core.filer.HashFiler;
    [javac]                                      ^
    [javac] C:\Program 
Files\Xindice\java\tests\src\org\apache\xindice\integration\client\services\XPathQueryTest.java:102:
 tearDown() in org.apache.xindice.integration.client.services.XPathQueryTest 
cannot override tearDown() in 
org.apache.xindice.integration.client.AbstractXmlDbClientTest; attempting to 
assign weaker access privileges; was public
    [javac]     protected void tearDown()
    [javac]                    ^
    [javac] C:\Program 
Files\Xindice\java\tests\src\org\apache\xindice\integration\client\services\XUpdateQueryTest.java:95:
 tearDown() in org.apache.xindice.integration.client.services.XUpdateQueryTest 
cannot override tearDown() in 
org.apache.xindice.integration.client.AbstractXmlDbClientTest; attempting to 
assign weaker access privileges; was public
    [javac]     protected void tearDown()
    [javac]                    ^
    [javac] C:\Program 
Files\Xindice\java\tests\src\org\apache\xindice\StressTests.java:86: warning: 
org.apache.xindice.core.filer.HashFiler in org.apache.xindice.core.filer has 
been deprecated
    [javac]       suite.addTest(new StressFilerTestSetup(new 
TestSuite(FilerTestCase.class), new HashFiler(), maxUsers));
    [javac]                                                                     
                 ^
    [javac] C:\Program 
Files\Xindice\java\tests\src\org\apache\xindice\UnitTests.java:93: warning: 
org.apache.xindice.core.filer.HashFiler in org.apache.xindice.core.filer has 
been deprecated
    [javac]       suite.addTest(new FilerTestSetup(new 
TestSuite(FilerTestCase.class), new HashFiler()));
    [javac]                                                                     
           ^
    [javac] 2 errors
    [javac] 3 warnings

BUILD FAILED
file:C:/Program Files/Xindice/build.xml:217: Compile failed; see the compiler 
error output for details.

Total time: 1 minute 22 seconds
java -classpath .\;"C:\Program Files\Xindice\config";"C:\Program 
Files\Xindice\java\lib\xerces_1.4.3.jar";"C:\j2sdk1.4.1_02\lib\tools.jar";"C:\j2sdk1.4.1_02\lib\classes.jar";"C:\Program
 Files\Xindice\java\lib\ant-1.5.1.jar";"C:\Program 
Files\Xindice\java\lib\commons-logging-1.0.1.jar";"C:\Program 
Files\Xindice\java\lib\junit-3.8.1.jar";"C:\Program 
Files\Xindice\java\lib\junit-addons-1.2.jar";"C:\Program 
Files\Xindice\java\lib\junitperf-1.8.jar";"C:\Program 
Files\Xindice\java\lib\servlet-2.3.jar";"C:\Program 
Files\Xindice\java\lib\xalan-2.4.0.jar";"C:\Program 
Files\Xindice\java\lib\xerces-2.2.1.jar";"C:\Program 
Files\Xindice\java\lib\xercesImpl-2.1.0.jar";"C:\Program 
Files\Xindice\java\lib\xml-apis-1.1.jar";"C:\Program 
Files\Xindice\java\lib\xmldb-api-20021118.jar";"C:\Program 
Files\Xindice\java\lib\xmldb-api-sdk-20021118.jar";"C:\Program 
Files\Xindice\java\lib\xmldb-common.jar";"C:\Program 
Files\Xindice\java\lib\xmldb-xupdate.jar";"C:\Program 
Files\Xindice\java\lib\xmlrpc-1.1.jar" -Dant.home="C:\Program Files\Xindice"  
org.apache.tools.ant.Main         
Buildfile: build.xml

init:

src-build:

test-build:
    [javac] Compiling 12 source files to C:\Program 
Files\Xindice\build\classes-tests
@echo off
rem find ANT_HOME
rem if not "%ANT_HOME%"=="" goto checkJava

rem check for ant in Program Files on system drive
if not exist "%SystemDrive%\Program Files\Xindice" goto checkSystemDrive
set ANT_HOME=%SystemDrive%\Program Files\Xindice
goto checkJava

:checkSystemDrive
rem check for ant in root directory of system drive
if not exist "%SystemDrive%\Xindice" goto checkXindice
set ANT_HOME=%SystemDrive%\Xindice
goto checkJava

:checkXindice
rem check for ant in root directory of system drive
if not exist "%SystemDrive%\Xindice" goto checkWorkXindice
set ANT_HOME=%SystemDrive%\Xindice
goto checkJava


:checkWorkXindice
rem check for ant in root directory of system drive
if not exist "%SystemDrive%\work\Xindice" goto checkCurrent
set ANT_HOME=%SystemDrive%\work\Xindice
goto checkJava

:checkCurrent
if exist ".\config" set ANT_HOME=
echo %ANT_HOME%
goto checkJava

:noAntHome
echo ANT_HOME is not set and ant could not be located. Please set ANT_HOME.
goto end

:checkJava
if "%JAVACMD%" == "" set JAVACMD=java

set 
LOCALCLASSPATH=%CLASSPATH%;"%ANT_HOME%\config";"%ANT_HOME%\java\lib\xerces_1.4.3.jar";"%JAVA_HOME%\lib\tools.jar";"%JAVA_HOME%\lib\classes.jar"
rem this is necessary since both xerces and xalan define jaxp
for %%i in ("%ANT_HOME%\java\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i"

if "%JAVA_HOME%" == "" goto runAnt
rem if exist %JAVA_HOME%\lib\tools.jar call %ANT_HOME%\bin\lcp.bat 
%JAVA_HOME%\lib\tools.jar
rem if exist %JAVA_HOME%\lib\classes.zip call %ANT_HOME%\bin\lcp.bat 
%JAVA_HOME%\lib\classes.zip

:runAnt
echo %JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS% 
org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

%JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS% 
org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

:end
set LOCALCLASSPATH=

Reply via email to