ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rat...@email.arizona.edu
Subject ANT XSLT : FileNotFoundException
Date Sun, 16 Nov 2003 22:22:35 GMT
Hi,
I am new to ANT. Here is my problem :
I have a set of xml files in a directory and would like to transform them into
html files using ant.
Here is my dir structure :
-d:\aid
 -website
  -aboutus.xml
  -style
     -page.xsl
  -misc
     -misc.xml
  ...

I have the following build.xml
<?xml version="1.0"?>
<project name="AID" default="generate-pages" basedir=".">
 <property name="xmldir" value="./website" />
 <property name="htmldir" value="./website_dest" />
 <target name="generate-docs">
    <style basedir="${xmldir}" destdir="${htmldir}" includes="**/*.xml"
style="style/page.xsl"/>
  </target>
</project>


When I run ant I get the following FileNotFoundException. (Please note that ANT
tries to read the file D:\aid\website\aboutus.xml as
d:\aid\d:\aid\website\aboutus.xml which causes the exception)
Am I doing anything wrong ?

Thanks in advance
Prabhu

$ ant -v
Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows XP
parsing buildfile d:\aid\build.xml with URI = file:d:/aid/build.xml
Project base dir set to: D:\aid
Build sequence for target `generate-docs' is [generate-docs]
Complete build sequence is [generate-docs]

generate-docs:
    [style] Transforming into D:\aid\website_dest
    [style] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison
    [style] Loading stylesheet D:\aid\website\style\page.xsl
    [style] Transforming into D:\aid\website_dest
    [style] Failed to process D:\aid\website\aboutus.xml

BUILD FAILED

d:\aid\build.xml:7: javax.xml.transform.TransformerException:
java.io.FileNotFoundException: d:\aid\D:\aid\website\aboutus.xml (The filename,
directory name, or
 volume label syntax is incorrect)
--- Nested Exception ---
javax.xml.transform.TransformerException: java.io.FileNotFoundException:
d:\aid\D:\aid\website\aboutus.xml (The filename, directory name, or volume
label syntax
 is incorrect)
...



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message