Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 64626 invoked from network); 8 Aug 2006 15:06:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 15:06:58 -0000 Received: (qmail 48194 invoked by uid 500); 8 Aug 2006 15:06:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 48099 invoked by uid 500); 8 Aug 2006 15:06:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 47868 invoked by uid 99); 8 Aug 2006 15:06:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 08:06:47 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cknell@onebox.com designates 69.25.242.10 as permitted sender) Received: from [69.25.242.10] (HELO securemail.onebox.com) (69.25.242.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 08:06:46 -0700 Received: from outgoing.onebox.com (unverified [172.21.6.71]) by securemail.onebox.com (Rockliffe SMTPRA 7.0.3) with SMTP id for ; Tue, 8 Aug 2006 11:06:25 -0400 Message-ID: From: cknell@onebox.com To: user@ant.apache.org Subject: Command line arguments with task. Date: Tue, 08 Aug 2006 11:06:22 -0400 Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Last week I had a problem when installing ANT, a build file, and some supporting files on three computers at my workplace. On two of the three computers I was not able to force the task to use the XSLT transformer I choose. At least that appeared to be the problem because the error messages sent to the console suggested that the XSLT processor being used didn't understand some XSLT 2.0 functions in the stylesheet. So far that problem is still unresolved. Since a serious approach to troubleshooting the problem would require that I have exclusive access to the workstations in question for an extended period, thus denying the regular users the opportunity to carry out their normal work. I got heavily involved in another task, but now I'm back to finding a "Plan B" for this matter. It occurred to me that I could use the task and call the XSLT processor directly. So I looked at the ANT manual concerning the task where I found this: Examples is a single command-line argument containing a space character. represents two separate command-line arguments. To my eye, these appear to be indentical. Which one is wrong? The test case task in my build file looks like this: The problem I'm now having involves the first element. When I run the transformer from the command line, passing in the same values for the arguments as shown above, the transformation works as expected. Of course I susbstitute literal strings for the ANT properties in the last three arguments. When I run the target above instead, I get an error message from the Java class via ANT: [java] Unknown option -o h:\sars-reports\lib\temp\pbd.xml If I omit the first element, the task executes successfully, outputting the transformation to the console window. I suspect it has something to do with the warning in the ANT manual that I quoted earlier, but as you can see, I find that section of the manual to be incomprehensible. Please help if you can. Thanks. -- Charles Knell cknell@onebox.com - email --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org