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 160804 - Ant code refactoring
Summary: Ant code refactoring
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2009-03-21 20:21 UTC by rafo
Modified: 2016-07-10 19:37 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description rafo 2009-03-21 20:21:55 UTC
I think it would be VERY nice if Netbeans would support Ant properties/tasks refactoring.

For example I have code:

<property name="myProperty" value="myValue" />

And I want to rename/delete this property. And in this case I should get this property references renamed in all places.
If I delete it - the functionality should be like refactor/delete a java-class field/method.

I think it will be very useful to handle big/legacy ant scripts.

Thank you.
Comment 1 Jesse Glick 2009-03-21 20:59:02 UTC
It would be useful. There is unfortunately no one to work on enhancements for the Ant integration.

As with any scripting language, such a feature could not be precise; there is no way to know what other scripts might
load this one, or what tasks might treat certain property names, specially, etc.
Comment 2 rafo 2009-03-21 21:16:24 UTC
I am not too proficient with Ant.

But as far as I know into Ant there is <import> directive that shows scripts have to be imported.

And I think use of properties/tasks can be tracked via the application.

If I am wrong and it cannot be tracked - I think this feature anyway will be useful. At developer's risk :)

Also please add to future plans the functionality like that:

1. highlight all propertiy/task usages in current script
2. show targets hierarchy
Comment 3 Martin Balin 2016-07-07 08:38:58 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
Comment 4 markiewb 2016-07-10 19:37:24 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)