Bug 18817

Summary: Buildfile parser fails with relative paths in dtd or entity declarations
Product: [Eclipse Project] Platform Reporter: Matthew Conway <matt>
Component: AntAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Matthew Conway CLA 2002-06-03 13:19:44 EDT
When using "Run ant..." context menu on a build file, the parser fails when the
path to the dtd or external entity is a relative one, or doesn't contain the
"file:" prefix

i.e. on our system the following declaration fails:

The buildfile "Run ant" is being called on: w:/a-Source/CS/build/cs.xml
Our build infrastructure resides in: w:/a-Source/Build

<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "../../Build/ant/ant.dtd" [
   <!ENTITY build-driver SYSTEM "../../Build/ant/build-driver.xml">
   <!ENTITY build-defaults SYSTEM "../../Build/ant/build-defaults.xml">
]>

The above also fails when using the "file:" prefix
The ONLY way that works is as shown:

<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN"
"file:/w:/a-Source/Build/ant/ant.dtd" [
   <!ENTITY build-driver SYSTEM "file:/w:/a-Source/Build/ant/build-driver.xml">
   <!ENTITY build-defaults SYSTEM "file:/w:/a-Source/Build/ant/build-defaults.xml">
]>

Relative paths do not seem to be taken relative to the buildfile as they should be.
Comment 1 Rodrigo Peretti CLA 2002-06-03 17:01:34 EDT

*** This bug has been marked as a duplicate of 18692 ***