ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Zimmer <bzim...@ignitemedia.com>
Subject <style> and file not found
Date Mon, 31 Jul 2000 14:19:05 GMT
All,

I am trying to use the <style> tag and am running into problems.  I have the
following setup in my build.xml:

 <target name="doc" depends="prepare">
  <mkdir dir="${build.doc}"/>
  <style extension=".html"
   basedir="${basedir}/doc"
   destdir="${build.doc}"
   style="ism.xlst">
   <include name="*.xml"/>
  </style>
 </target>

   I have xalan and xerces in my classpath and if run them outside of ant,
the correct html files are produced from the source xml and ism.xslt files.
However, when I run it from within ant, I get the following:

build.xml:80: org.apache.xalan.xslt.XSLProcessorException: File
"E:\home\development\src\ism\doc\documentation.xml" not found.
org.apache.xalan.xslt.XSLProcessorException: File
"E:\home\development\src\ism\doc\documentation.xml" not found.
        at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1630)
        at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:852)
        at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:552)
        at
org.apache.tools.ant.taskdefs.optional.XalanLiaison.transform(XalanLiaison.j
ava:83)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:301)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:156)
        at org.apache.tools.ant.Target.execute(Target.java:132)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Project.java:448)
        at org.apache.tools.ant.Project.executeTargets(Project.java:422)
        at org.apache.tools.ant.Main.runBuild(Main.java:279)
        at org.apache.tools.ant.Main.main(Main.java:107)
---------
org.xml.sax.SAXParseException: File
"E:\home\development\src\ism\doc\documentation.xml" not found.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:975)
        at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:499)
        at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:303)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:860)
        at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:248)
        at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:838)
        at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:552)
        at
org.apache.tools.ant.taskdefs.optional.XalanLiaison.transform(XalanLiaison.j
ava:83)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:301)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:156)
        at org.apache.tools.ant.Target.execute(Target.java:132)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Project.java:448)
        at org.apache.tools.ant.Project.executeTargets(Project.java:422)
        at org.apache.tools.ant.Main.runBuild(Main.java:279)
        at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 2 seconds

E:\home\development\src\ism>ls -als
E:\home\development\src\ism\doc\documentation.xml
   5 -rw-r--r--   1 544      everyone     9133 Jul 31 08:59
E:\home\development\src\ism\doc\documentation.xml

I'm not sure what's going on within Ant, but the files appear to be where
they are expected.  If anyone has any insight I would really appreciate it.

thanks,

brian

<signature>
<name>brian zimmer</name>
<email>bzimmer <at/> ignitemedia <dot/> com</email>
<voice>773.293.4344</voice>
</signature>


Mime
View raw message