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.lale...@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-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >