Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 49677 invoked from network); 22 Apr 2002 22:08:12 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Apr 2002 22:08:12 -0000 Received: (qmail 26819 invoked by uid 97); 22 Apr 2002 22:08:11 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 26803 invoked by uid 97); 22 Apr 2002 22:08:10 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 26760 invoked from network); 22 Apr 2002 22:08:10 -0000 X-VirusChecked: Checked Message-ID: From: Daniel Barclay To: Ant Users List Subject: RE: Newbie question about exec/chown Date: Mon, 22 Apr 2002 18:08:02 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: David Adams [mailto:DAdams@ignitesports.com] > ... > I am trying to write an exec task in UNIX to chown a > directory and files (as well as the subdirectories). The task > command I am using is: > > > > > > This returns: > [exec] chown: /data/netscape/docs/target/*: No such file > or directory > [exec] Result: 1 > > This seems to come out well when I the entire task command. Do you mean it comes out with an asterisk or it comes out with a list of names that is the expansion of that wildcard character? Your wildcard character is not being expanded before chown is called. I'm not sure, but evidently Ant running the command directly, not calling a shell which can expand wildcards before executing the command. You need to use the shell or use Ant to expand the wildcard. (I don't recall what options you have with the task to use Ant to do the expansion.) Daniel -- To unsubscribe, e-mail: For additional commands, e-mail: