Would the +ADw-style+AD4- 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: +ACI-Dmitri Pichugin+ACI- +ADw-dpichugin+AEA-ptc.com+AD4-
To: +ADw-ant-user+AEA-jakarta.apache.org+AD4-
Sent: Tuesday, August 07, 2001 12:02 PM
Subject: (java arg) Problem with full path


+AD4- Hi+ACE-
+AD4-
+AD4- I'm trying to run xalan with ant1.3
+AD4-
+AD4- My build.xml is:
+AD4-
+AD4- ......
+AD4- +ADw-target name+AD0AIg-task1+ACI- depends+AD0AIg-prepare+ACIAPg-
+AD4-    +ADw-echo message+AD0AIgBb--IN +ACQAew-tomcat-conf+AH0-/jboss.jcml -XSL 
++ACQAew-stylesheet+AH0- -OUT
+AD4- +ACQAew-result+AH0AXQAi-/+AD4-
+AD4-    +ADw-java classname+AD0AIg-org.apache.xalan.xslt.Process+ACIAPg-
+AD4-        +ADw-arg line+AD0AIg--IN +ACQAew-tomcat-conf+AH0-/jboss.jcml -XSL 
++ACQAew-stylesheet+AH0- -OUT
+AD4- +ACQAew-result+AH0AIg-/+AD4-
+AD4-        +ADw-classpath refid+AD0AIg-xalan-path+ACI-/+AD4-
+AD4-    +ADw-/java+AD4-
+AD4-    +ADw-copy file+AD0AIgAkAHs-result+AH0AIg- 
+tofile+AD0AIgAkAHs-jboss-conf+AH0-/jboss.jcml+ACI-
+AD4- overwrite+AD0AIg-yes+ACI-/+AD4-
+AD4- +ADw-/target+AD4-
+AD4- ....
+AD4-
+AD4- I've got the following:
+AD4- .......
+AD4- task1:
+AD4-      +AFs-echo+AF0- +AFs--IN /disk1/local/jakarta-tomcat/conf/jboss.jcml -XSL
+AD4- test.xsl -OUT build/result.xml+AF0-
+AD4-
+AD4- XSLT Error (javax.xml.transform.TransformerException):
+AD4- java.io.FileNotFoundException:
+AD4- /disk1/java/xsl/disk1/local/jakarta-tomcat/conf/jboss.jcml (No such file
+AD4- or directory)
+AD4- +AF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBe-
+AD4-
+AD4-
+AD4- The message attribute at +ADw-echo/+AD4- and line attribute at +ADw-arg/+AD4- are
+AD4- identical,
+AD4- BUT while running +ADw-java/+AD4- there are incorrect substitution of
+AD4- +ACQAew-tomcat-conf+AH0- in arg's line.
+AD4- The  current directory +AFs-/disk1/java/xsl+AF0- was INCORRECTLY  added before
+AD4- +ACQAew-tomcat-conf+AH0-.
+AD4-
+AD4- NOTE: Everything goes fine while I use relative path.
+AD4-
+AD4- Dmitriy Pichugin
+AD4-
+AD4-
+AD4-

Reply via email to