Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 92580 invoked from network); 10 Jun 2002 15:01:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Jun 2002 15:01:47 -0000 Received: (qmail 8623 invoked by uid 97); 10 Jun 2002 15:01:25 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 8577 invoked by uid 97); 10 Jun 2002 15:01:24 -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 8554 invoked by uid 98); 10 Jun 2002 15:01:23 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <005801c2108f$a0a57180$6a3b8f80@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Users List" References: <98D21B073202584C9125C860580DC4EDEC045D@lgchexch006.ad.lgc.com> Subject: Re: Display -XXX tasks in -projecthelp result? Date: Mon, 10 Jun 2002 11:00:57 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N While the special character tricks are cute, and I've thought about using them myself on occasion, I don't think you can rely on them. An IDE could invoke a target more directly through the API and bypass the command-line interpretation that prevents "-target" being invoked. So, it works if calling only from the command-line, but I'd be willing to bet that it does not work through IDE's with tight integration with Ant, such as perhaps NetBeans.?? Erik ----- Original Message ----- From: "Dominique Devienne" To: "'Ant Users List'" Sent: Monday, June 10, 2002 9:49 AM Subject: RE: Display -XXX tasks in -projecthelp result? > -projecthelp will not list tasks without a description attribute or element. > It is indeed a common idiom to prefix private target names with a dash to > prevent being callable from the command line (easily), but as you mention > it's kind of a hack. Since ANT doesn't seem to have any/much restrictions on > target names, it seems legit though (except maybe using a comma, since it's > the target separator of the depends attribute). > > I personally post-fix target names with a question mark when they check > something, usually setting properties conditionally. > > Regards, --DD > > -----Original Message----- > From: Ernst de Haan [mailto:ernsth@nl.euro.net] > Sent: Monday, June 10, 2002 6:49 AM > To: ant-user@jakarta.apache.org > Subject: Display -XXX tasks in -projecthelp result? > > Hi, > > Suggestion: Perhaps we should disable displaying of the 'private' tasks in > the > -projecthelp output? Private tasks can be implemented by having their name > start with a dash '-'. In fact this is a sort of dirty hack, because Ant > considers an argument starting with a hash as an argument instead of a > target > name. > > Ernst > > -- > Ernst de Haan > EuroNet Internet B.V. > > "Come to me all who are weary and burdened > and I will give you rest" -- Jesus Christ > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: