Sharing Ant Targets Across NetBeans IDE Projects
By Geertjan-Oracle on Apr 06, 2005
<import file="path-to-build-file/ide-generic-targets.xml"/>Then, when I build the project, the targets from the IDE-generic build script are imported into the project's project-specific build script. It also means that when I delete a project, I won't be deleting a target that other projects (now or in the future) might find useful. I guess this solution is pretty obvious, but it took me a while to think of it...
NB: Maybe an even better solution is to create a web free-form project with a build script containing all the IDE-generic targets. That project could then have all these targets mapped to project commands, with shortcuts like buttons and menu items for actions such as opening external applications that are useful for all projects. Yup. That works. And is a much better solution: