From user-return-72147-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Dec 20 09:30:29 2011 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C09C96FD for ; Tue, 20 Dec 2011 09:30:29 +0000 (UTC) Received: (qmail 847 invoked by uid 500); 20 Dec 2011 09:30:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 799 invoked by uid 500); 20 Dec 2011 09:30:28 -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 785 invoked by uid 99); 20 Dec 2011 09:30:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 09:30:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of insomniacpenguin@googlemail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 09:30:21 +0000 Received: by lags15 with SMTP id s15so2734179lag.4 for ; Tue, 20 Dec 2011 01:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mOI13POmgGOts1zc/u1LcOoPAkSGSOcyskG4hLO+dAE=; b=m8Etbdy7nHujF9bNVwfjbhJu3k8s1EML2Mzml7stUb7gWmca7WpgOVseFBAu4ECElX ioTK0AVApFiF82iP7U/oLok7he6XP1XZk9QSpBoVyd1ZqHUiVbOgvNUJdVDhLZBZH3a5 7I7XNMWS710jAnWhGLyr0m9P0/8Y4xlAgg2As= MIME-Version: 1.0 Received: by 10.152.112.103 with SMTP id ip7mr893002lab.46.1324373401385; Tue, 20 Dec 2011 01:30:01 -0800 (PST) Received: by 10.152.12.234 with HTTP; Tue, 20 Dec 2011 01:30:01 -0800 (PST) Received: by 10.152.12.234 with HTTP; Tue, 20 Dec 2011 01:30:01 -0800 (PST) In-Reply-To: References: <330B5A2BAB417E47A0BBB442C7BCB99D03F7A073@HQ-MAIL8.ptcnet.ptc.com> Date: Tue, 20 Dec 2011 09:30:01 +0000 Message-ID: Subject: Re: Extension Points? From: Andy Stevens To: Ant Users List Content-Type: multipart/alternative; boundary=f46d04083bf523bb4504b482b691 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04083bf523bb4504b482b691 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hmm... wonder if netbeans has switched to those for the build scripts it uses in project definitions? Sounds like they'd be just the thing to replace various -pre & -post "hook" targets that were in them last time I looked... Andy. On 18 Dec 2011 12:17, "Nicolas Lalev=E9e" wrot= e: > > Le 16 d=E9c. 2011 =E0 21:40, Perrier, Nathan a =E9crit : > > > http://ant.apache.org/manual/targets.html > > > > > > > > Anyone have an example of where they found extension points useful? > > > > > > > > I have to maintain a fairly large Ant framework, but I'm not quite of a > > good use-case for them. > > > > It helps writing generic build files. > For instance a build file may be responsible to publish some artifact to = a > maven repository. This script expects something to be build, and then it = do > the publish. The expectation here can be expressed via an extension point > "build-artifact". > Then there may be some script to build a jar, with a target "build-jar" > for instance. > Finally in the build.xml of your project, you import both files, and bind > the "build-jar" target to the "build-artifact" extension point with the > bintargets task. > > Nicolas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --f46d04083bf523bb4504b482b691--