This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233878 - Target -pre-init not called, thus cannot be used for custom tasks
Summary: Target -pre-init not called, thus cannot be used for custom tasks
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-03 06:35 UTC by bbll
Modified: 2013-08-06 12:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bbll 2013-08-03 06:35:11 UTC
See title. Simple as that.

Create new Java project, add an ANT task to build.xml
(of course after <import file="nbproject/build-impl.xml"/>):

<target name="-pre-init">
    <echo>I'm never going to be called</echo>
</target>

Not working.

Besides that, no documentation, no FAQ entry ragarding custom tasks for ANT projects. At least it's so burried away that after an hour I still can't find it. Either way, something has to be fixed here, code or user friendliness.

Thank you.
Comment 1 bbll 2013-08-03 06:36:25 UTC
Have to correct myself, I'm talking about a NetBeans Module project.
Comment 2 Jiri Rechtacek 2013-08-06 12:15:51 UTC
(In reply to comment #0)
> See title. Simple as that.
> 
> Create new Java project, add an ANT task to build.xml
> (of course after <import file="nbproject/build-impl.xml"/>):
> 
> <target name="-pre-init">
>     <echo>I'm never going to be called</echo>
> </target>
> 
> Not working.
> 
> Besides that, no documentation, no FAQ entry ragarding custom tasks for ANT
> projects. At least it's so burried away that after an hour I still can't find
> it. Either way, something has to be fixed here, code or user friendliness.

See <NetBeans-IDE>/harness/README, section TARGETS AVAILABLE FOR OVERRIDING IN YOUR build.xml