ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Pichugin <dpichu...@ptc.com>
Subject (java arg) Problem with full path
Date Tue, 07 Aug 2001 19:02:43 GMT
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