Bug 18817 - Buildfile parser fails with relative paths in dtd or entity declarations
Summary: Buildfile parser fails with relative paths in dtd or entity declarations
Status: RESOLVED DUPLICATE of bug 18692
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-03 13:19 EDT by Matthew Conway CLA
Modified: 2002-06-03 17:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***