Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2203 invoked by uid 500); 4 Aug 2003 05:15:59 -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 2191 invoked from network); 4 Aug 2003 05:15:59 -0000 Received: from mail.tapiola.fi (193.209.71.68) by daedalus.apache.org with SMTP; 4 Aug 2003 05:15:59 -0000 Received: from S05023 (localhost [127.0.0.1]) by mail.tapiola.fi (8.12.9/8.12.9) with ESMTP id h744Ld0L014443 for ; Mon, 4 Aug 2003 07:21:40 +0300 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: How to make generic rules Date: Mon, 4 Aug 2003 08:15:08 +0300 Message-ID: <59DDE36CD52FA34D98909970572A28A50CDDB6@S05023.tapio001.tapiola.fi> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to make generic rules Thread-Index: AcNYon+w0rP97HN6QgK5XxFiDfW3JABo8RVA From: "North Alex" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >I'm an old makefile user. Now i'm an ant user. >But i haven't yet found a way to replace a powerfull=20 >functionality of make: implicit rules and import of rule from=20 >a makefile in another makefile (include). In fact i need to=20 >overide some task in order to define implicit properties. > >For example i want to set the compress attribute of jar task=20 >to false one time for the full build file and not to set it=20 >for each jar task. > >How can i do this? One way could be to set a property and use "unless" for a target that sets the properties you want. You can also call and set properties for that ant call ... or use : So, update.changehistory can be called from different places with different values for the history.version Hope that is useful. <=3D Alex =3D> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org