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 244981 - Shortcut to ant target ignores build.xml overridden targets
Summary: Shortcut to ant target ignores build.xml overridden targets
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-10 14:12 UTC by reinouts
Modified: 2016-07-07 08:37 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 reinouts 2014-06-10 14:12:31 UTC
Similar to issue 34802.

I have imported an Eclipse project that needs some specific environment variables to run. To that end, I have overridden -init-macrodef-java and init-macrodef-debug targets in build.xml and added some <env> entries to them, as explained on http://wiki.netbeans.org/FaqEnvVarsDuringRun .

When I run the project through activating the run target in build.xml, it works as expected. However, when I create a shortcut to this target on the toolbar, the overridden targets in build.xml are ignored and an error occurs because of missing environment variables.

Expected behavior is that the shortcut to a target works identical to directly calling the target.
Comment 1 Martin Balin 2016-07-07 08:37:45 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss