ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Stevens <insomniacpeng...@googlemail.com>
Subject Re: Extension Points?
Date Tue, 20 Dec 2011 09:30:01 GMT
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ée" <nicolas.lalevee@hibnet.org> wrote:

>
> Le 16 déc. 2011 à 21:40, Perrier, Nathan a écrit :
>
> > 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message