Hi,
This really neat as it really helps for editing with the dtd.
The problem is that the ant build file has to be run once before the
doctype can be added to the build.xml.
<!DOCTYPE project SYSTEM "project.dtd">
Any ideas other than generating first and then adding doctype to the
build.xml?
Seems like an ant -structure project.dtd might make more sense unless
the resolver can be made to ignore it if not found.
Thanks,
Eric
Buildfile: build.xml
/home/maxwell/ozonedoc/project.dtd could not be found
BUILD FAILED
/home/maxwell/ozonedoc/build.xml:2: External entity not found:
"file:/home/maxwell/ozonedoc/project.dtd".
--- Nested Exception ---
java.io.FileNotFoundException: /home/maxwell/ozonedoc/project.dtd (No
such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:64)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:68)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:132)
at com.sun.xml.parser.Resolver.createInputSource(Resolver.java:264)
at
com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:49)
at com.sun.xml.parser.Parser.pushReader(Parser.java:2768)
at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2504)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
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)
|