ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: ANT XSLT : FileNotFoundException
Date Mon, 17 Nov 2003 06:55:17 GMT
You are using Ant 1.3?
Can you try Ant 1.6 beta 2?

I can´t see any really error in your file. 
Ok, you don´t _have_ to use the dot in "./website", simply "website" works
too, but
that shouldn´t have that effect.

Because 1.3 is very old
- you will find not very much people who can remind that problems
- it´s difficult to test for you (we have to set up a very old version)
- lots of errors are fixed


Jan



> -----Original Message-----
> From: rathna@email.arizona.edu [mailto:rathna@email.arizona.edu]
> Sent: Sunday, November 16, 2003 11:23 PM
> To: user@ant.apache.org
> Subject: ANT XSLT : FileNotFoundException
> 
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message