History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-19936
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Eugene Zhuravlev
Reporter: Mark Vedder
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Ant Target list does not refresh with targets from imported files

Created: 05 Aug 07 23:04   Updated: 06 Nov 08 23:11
Component/s: Ant Integration
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,111
Severity: High


 Description  « Hide
Upon adding a new target to an imported ant file, the new target does not appear in the list of targets in the Ant Build pane. For example, if my main build file, build.xml, imports additional-tasks.xml:
build.xml
<project ...>
    <import file="subdir/additional-targets.xml" optional="false" />
    ...
</project>

And as I am editing additional-targets.xml I add a new target, it does not appear in the list of targets. (Note that it is the build.xml file that I have added as an Ant build file to the IDEA project.) The only way I can get it to show is to go into the "master" build file and start a new <target> definition. Almost, immediately upon typing in "<", the target from the import file shows. So it appears the typing of the "<" triggers a re-parse.

The same thing happens if I rename a target in an imported file. The old name continues to show in the Ant build window until I make an edit in the master build file.

Also note that when I create a very simple project with a single imported file that is small in size, I can trigger the update behavior by switching to the master build file in the editor. I do not actually need to edit it. I am not sure how complex the combined ant files (i.e. size of and number of) need to get before editing is needed to trigger the re-parse.

I would think the new target from the imported file should show in the Ant Build window without the need to switch to or edit the master file.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.