You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dmitri Pichugin <dp...@ptc.com> on 2001/08/07 21:02:43 UTC
(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