ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <erikhatc...@earthlink.net>
Subject Re: (java arg) Problem with full path
Date Tue, 07 Aug 2001 20:26:20 GMT
Would the <style> task work for you in this case?   Not quite the solution
to this particular issue you are having, but it might be a cleaner way to go
about running XSL for you.

    Erik


----- Original Message -----
From: "Dmitri Pichugin" <dpichugin@ptc.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, August 07, 2001 12:02 PM
Subject: (java arg) Problem with full path


> Hi!
>
> I'm trying to run xalan with ant1.3
>
> My build.xml is:
>
> ......
> <target name="task1" depends="prepare">
>    <echo message="[-IN ${tomcat-conf}/jboss.jcml -XSL ${stylesheet} -OUT
> ${result}]"/>
>    <java classname="org.apache.xalan.xslt.Process">
>        <arg line="-IN ${tomcat-conf}/jboss.jcml -XSL ${stylesheet} -OUT
> ${result}"/>
>        <classpath refid="xalan-path"/>
>    </java>
>    <copy file="${result}" tofile="${jboss-conf}/jboss.jcml"
> overwrite="yes"/>
> </target>
> ....
>
> I've got the following:
> .......
> task1:
>      [echo] [-IN /disk1/local/jakarta-tomcat/conf/jboss.jcml -XSL
> test.xsl -OUT build/result.xml]
>
> XSLT Error (javax.xml.transform.TransformerException):
> java.io.FileNotFoundException:
> /disk1/java/xsl/disk1/local/jakarta-tomcat/conf/jboss.jcml (No such file
> or directory)
> ^^^^^^^^^^^^
>
>
> The message attribute at <echo/> and line attribute at <arg/> are
> identical,
> BUT while running <java/> there are incorrect substitution of
> ${tomcat-conf} in arg's line.
> The  current directory [/disk1/java/xsl] was INCORRECTLY  added before
> ${tomcat-conf}.
>
> NOTE: Everything goes fine while I use relative path.
>
> Dmitriy Pichugin
>
>
>


Mime
View raw message