Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32241 invoked from network); 25 May 2006 11:33:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 11:33:21 -0000 Received: (qmail 50928 invoked by uid 500); 25 May 2006 11:33:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50345 invoked by uid 500); 25 May 2006 11:33:16 -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 50334 invoked by uid 99); 25 May 2006 11:33:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 04:33:16 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.69.200.28] (HELO pop04.mail.atl.earthlink.net) (207.69.200.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 04:33:14 -0700 Received: from nc-71-51-254-71.dhcp.sprint-hsd.net ([71.51.254.71] helo=[192.168.168.6]) by pop04.mail.atl.earthlink.net with esmtp (Exim 3.36 #10) id 1FjE5E-0004jY-00 for user@ant.apache.org; Thu, 25 May 2006 07:32:53 -0400 Message-ID: <447595E3.6030806@mindspring.com> Date: Thu, 25 May 2006 07:32:51 -0400 From: "Scot P. Floess" Reply-To: floess@mindspring.com User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 To: Ant Users List Subject: Re: how to use spawn in linux for exec References: <4555318.post@talk.nabble.com> <44759352.30001@gmx.de> In-Reply-To: <44759352.30001@gmx.de> Content-Type: multipart/alternative; boundary="------------060606050506050600000305" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------060606050506050600000305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I also don't think you want to use spawn in this instance... I am guessing you want to see the result of the call? If so, ant won't log anything with the spawn attribute set to true. Another thing, I note you are using ls - unfortunately, with no spawn, you will get an error from sh as follows: [exec] /bin/sh: - : invalid option [exec] Usage: /bin/sh [GNU long option] [option] ... [exec] /bin/sh [GNU long option] [option] script-file ... [exec] GNU long options: [exec] --debug [exec] --debugger [exec] --dump-po-strings [exec] --dump-strings [exec] --help [exec] --init-file [exec] --login [exec] --noediting [exec] --noprofile [exec] --norc [exec] --posix [exec] --protected [exec] --rcfile [exec] --rpm-requires [exec] --restricted [exec] --verbose [exec] --version [exec] --wordexp [exec] Shell options: [exec] -irsD or -c command or -O shopt_option (invocation only) [exec] -abefhkmnptuvxBCHP or -o option [exec] Result: 2 I think all you really want to do is to execute the "ls" command? Antoine Levy-Lambert wrote: > Hi, > > to find out which ant you are using, simply type : > > $ which ant > > in your console. > > To use another version of ant, for instance ant1.6.5, supposing you have > installed ant1.6.5 under /opt/apache-ant-1.6.5, set the following > environment variables : > > ANT_HOME=/opt/apache-ant-1.6.5 > export ANT_HOME > PATH=$ANT_HOME/bin:$PATH > export PATH > > these 4 lines can be added at the end of your .kshrc or equivalent. If > you are using csh as a login shell, the syntax is slightly different. > > setting ANT_HOME to the location of the ant distribution you want to use > is an absolute requirement. > setting PATH is a commodity. > > Regards, > > Antoine > > vamsee wrote: > >> Hi, >> >> I want to use spawn for exec in linux. >> >> I have used following code in my build.xml >> >> >> >> >> >> but when i ran ant in shell terminal, following msg is displayed: >> >> th task doesn't suppport spawn >> >> please provide some solution or any workaround so that i can have same >> affect as i use the command "spawn" >> >> Also guys can you please provide information on what files i want to modify >> to overwrite in built linux version with latest version of ant. >> >> Looking for your earliset response >> >> Regards, >> vamsee >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim --------------060606050506050600000305--