You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/01/04 22:12:05 UTC

DO NOT REPLY [Bug 5696] New: - parser error using include

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5696>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5696

parser error using include

           Summary: parser error using include
           Product: Ant
           Version: 1.3
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Build Process
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: KitCrumpton@gd-decisionsystems.com


-- PROBLEM --
ANT command generates parser errors on Solaris and Linux. Errors
generated are shown below.

-- TEMPORARY FIX --

The build.xml file contained the following first 6 lines of code:

<?xml version="1.0"?>
<!-- This is a technique used to include define a file to include -->
<!DOCTYPE project [
  <!ENTITY IncludeBuildEnv SYSTEM "/../../../../../../buildEnv.xml">
  %IncludeBuildEnv;
]>  

I removed any references to the include file. Briefly, I replaced the
above code with

<?xml version="1.0"?>
<!-- This is a technique used to include define a file to include -->
<!DOCTYPE project>  

and copied the code from buildEnv.xml into build.xml. I'm looking
for a better, long term solution. 

Note: The unmodified version of the build.xml file works fine with
Windows 2000 and Windows NT.


-- ERROR GENERATED --

# ant 
Buildfile: build.xml

BUILD FAILED

java.lang.InternalError
        at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2421)
        at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2390)
        at com.sun.xml.parser.Parser.maybeEntityDecl(Parser.java:2301)
        at com.sun.xml.parser.Parser.maybeMarkupDecl(Parser.java:1181)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1113)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
        at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:403)
        at org.apache.tools.ant.Main.main(Main.java:149)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>