Menu

#92 current directory is prepended to imported file

open
nobody
None
5
2005-01-08
2005-01-08
Anonymous
No

From <dguptill@acceswave.ca>

modified build.xml is attached.

dguptill@blackpearl:~/douglas/resume$ ant -v txt
Apache Ant version 1.5.1 compiled on October 2 2002
Buildfile: build.xml
Detected Java version: 1.3 in: /usr/local/jdk1.3.1_06/jre
Detected OS: Linux
parsing buildfile build.xml with URI = file:/home/dguptill/douglas/
resume/build.
xml
Project base dir set to: /home/dguptill/douglas/resume
Build sequence for target `txt' is [txt]
Complete build sequence is [txt, fo, pdf, rtf, clean, html, all, filter]

txt:
[echo] Making text with org.apache.xalan.xslt.Process.
[java] Executing '/usr/local/jdk1.3.1_06/jre/bin/java' with
arguments:
[java] '-classpath'
[java] '/usr/local/xfc-20/xfc.jar:/usr/local/xfc-20/lib/jaxp.jar:/usr/local
/xfc-20/lib/sax.jar:/usr/local/xfc-20/lib/xp.jar:/usr/local/xalan/bin/xalan.
jar'
[java] 'org.apache.xalan.xslt.Process'
[java] '-in'
[java] 'DGuptillResume.xml'
[java] '-xsl'
[java] '/usr/local/resume/xsl/output/us-text.xsl'
[java] '-out'
[java] 'DGuptillResume.txt'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] Error at xsl:import on line -1 of /usr/local/resume/xsl/output/
us-te
xt.xsl:
[java] Failure reading file:/home/dguptill/douglas/resume/usr/
local/resum
e/xsl/format/text.xsl: /home/dguptill/douglas/resume/usr/local/resume/
xsl/format
/text.xsl (No such file or directory)

[java] (Location of error unknown)XSLT Error (javax.xml.
transform.Transform
erConfigurationException): Failed to compile stylesheet. 1 error
detected.
[java] Java Result: -1

BUILD SUCCESSFUL
Total time: 7 seconds

Discussion

  • Nobody/Anonymous

    build.xml - modified

     
  • Douglas Guptill

    Douglas Guptill - 2005-01-11

    Logged In: YES
    user_id=1193065

    Please cancel.

    Error seems to be due to order of items in classpath: This order
    <classpath refid="xfc.classpath" />
    <classpath refid="xsl.classpath" />
    gives the error. When the two items are reversed, everything works.

    Sorry for the false report.
    Doug.

     

Log in to post a comment.