"Move..." Refactoring not searching xml files

In my Irida EAP (build 3341), I've noticed that the "Move..." refactoring is not searching for usages in all files. I happen to use Spring, so have a lot of XML files with entries like this:
-


]]>
...
-


If I do the "Move..." refactoring with Irida, then this reference in my XML file is never seen or touched (I am forced to manually find it and change it), while my IDEA build 2242 will find all the entries in my Spring XML and change them without any problem.
Is this a bug, or am I just missing something?

Oh, and yes, I do have the "Search in comments and string" and "Search in non-java files" checked. I might also add that Irida will find references in my generated JavaDoc .html files, but it won't find them in other files (such as Spring XML)?

0
6 comments

That's probably because .xmls are located in module that doesn't depend on
where classes do reside. Personally I think .xmls should not use module dependencies
like java files do but that's a way it works now.
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0

Andy, is this really the reason?

"Maxim Shafirov (JetBrains)" <max@jetbrains.com> wrote in message
news:c8a8a1bfcacd8c72f80ff1afdf9@news.jetbrains.com...

That's probably because .xmls are located in module that doesn't depend on
where classes do reside. Personally I think .xmls should not use module

dependencies

like java files do but that's a way it works now.
-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>
>


0

Unfortunately, while the explanation makes sense, I double checked and these .xml files are in the exact same module in which I am performing the refactoring. I also tried an experiment and attempted to "Find Usages" of a class that I know is referenced in the .xml file and the system was not able to find those usages (the .xml and class are both in the same module) - though, again, it did find "usages" in the generated JavaDoc .html files. I then tried to "Find in Path" for the class name and set my scope to that one module and my filter to *.xml, and "Find in Path" was able to find the string.

0

I have found the exact same problem in the "Rename.." refactoring. In my case, the XML file is a JSF configuration file. If I want to rename a .JSP, I currently have to manually change the filename in the XML file after the refactoring.

I have everything under one Java module, so I don't think that is the problem.

0


>I have found the exact same problem in the "Rename.." refactoring. ...

>


It looks similar to:
"Move and FindUsage miss an inner class in xml file."
http://www.jetbrains.net/jira/browse/IDEADEV-1164
, that has FindUsage not working fine in the same conditions.


There's also:
"Renaming a class deletes its usage in plugin.xml"
http://www.jetbrains.net/jira/browse/IDEA-2186

Alain

0

This has appeared to be a core problem with caches for xml files building on
startup.
Fixed.

"Andy DePue" <no_mail@jetbrains.com> wrote in message
news:5151080.1117038349302.JavaMail.javamailuser@localhost...

In my Irida EAP (build 3341), I've noticed that the "Move..." refactoring

is not searching for usages in all files. I happen to use Spring, so have a
lot of XML files with entries like this:

------
<bean id="increaseFontCommand"

>

..
------
If I do the "Move..." refactoring with Irida, then this reference in my

XML file is never seen or touched (I am forced to manually find it and
change it), while my IDEA build 2242 will find all the entries in my Spring
XML and change them without any problem.

Is this a bug, or am I just missing something?

>

Oh, and yes, I do have the "Search in comments and string" and "Search in

non-java files" checked. I might also add that Irida will find references
in my generated JavaDoc .html files, but it won't find them in other files
(such as Spring XML)?


0

Please sign in to leave a comment.