Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 1696 invoked from network); 11 Nov 2004 14:42:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 14:42:56 -0000 Received: (qmail 94117 invoked by uid 500); 11 Nov 2004 14:42:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 94079 invoked by uid 500); 11 Nov 2004 14:42:50 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 94064 invoked by uid 99); 11 Nov 2004 14:42:50 -0000 Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.94.219.177] (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 11 Nov 2004 06:42:50 -0800 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id iABEgdwS007680 for ; Thu, 11 Nov 2004 14:42:40 GMT (envelope-from peterreilly@apache.org) Message-ID: <41937A64.1070804@apache.org> Date: Thu, 11 Nov 2004 14:42:44 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: getUserProperty and getProperty References: <6293513$1100182996419375d440e3b9.48998783@config20.schlund.de> In-Reply-To: <6293513$1100182996419375d440e3b9.48998783@config20.schlund.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N User properties are those specified on the command line. They are always inherited when across boundaries. You should use project.setNewProperty() to set a normal property. - this maintains property imutablity. project.getProperty() is used to retrieve the value of a property (this may be a normal property or a user property). An example of setting properties is in src/main/org/apache/tools/ant/taskdefs/CheckSum.java Peter lists@bitfaeule.net wrote: >Hi folks, > >What is the exact difference between the API-calls getUserProperty and >getProperty. >And: >What is the exact difference between the API-calls setUserProperty and >setProperty. >When ist advised to use which? > >I'm a bit confused. I am writing my own tasks and I have started to use >getUserProperty because it did what I wanted but I didn't know that >[s|g]etProperty existed. > >Thanks for enlightenment. > >-jacques > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org