BugRat Report # 673

Project: Ant Release: 1.3alpha
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: low Severity: serious
Confidence: public

Submitter: Andreas Schaefer ( andreas.schaefer@madplanet.com )
Date Submitted: Dec 29 2000, 01:35:38 CST
Responsible: Z_Ant Alias ( ant-bugs@cortexity.com )

Jar-archives added to the class can cause a "Build Failed" error
Environment: (jvm, os, osrel, platform)
1.3, W2K, 5.00.2195, Dual-Pentium II

Additional Environment Description:
ANT is started from P:\jboss\src\build with the following batch file: @echo off @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal REM convenience bat file to build with set CP=%CP%;..\..\lib\ant.jar set CP=%CP%;..\..\lib\jaxp.jar set CP=%CP%;..\..\lib\parser.jar set CP=%CP%;..\..\lib\xmlbeans.jar set CP=%CP%;..\..\build\classes set CP=%CP%;..\..\lib\javac.jar java -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5

Report Description:
If you add a relative path of jar-archives to the classpath when you start ANT (let's say ..\..\lib\ant.jar) and your project base directory is on the drive level (c:) or in the first subdirectory (c:\jboss) then you get an BUILD FAILED error with this message: The file or path you specified (..\..\lib\ant.jar) is invalid relative to P:\jboss

How To Reproduce:


View this report online...