I'm getting the error message: "Cannot perform refactoring. Selected Ant target is not located inside the project." But it is visible in the "Project" view and added to the "Ant Build" view.
I'm getting the error message: "Cannot perform refactoring. Selected Ant target is not located inside the project." But it is visible in the "Project" view and added to the "Ant Build" view.
Tom
Is the ant file located under the module content root, or attached inside a library? I.e., open the build file in the editor, press Alt+F1 and jump into the Project View from the menu. Do you come under Libraries node or under module content node?
I've got the same error, when the build file is under libraries. And this is correct: libraries content is not the project content.
Is the ant file located under the module content root, or attached inside a library? I.e., open the build file in the editor, press Alt+F1 and jump into the Project View from the menu. Do you come under Libraries node or under module content node?
It is shown in the "Project" view. The ANT file is located in the project, but not in a module or library.
It is shown in the "Project" view. The ANT file is located in the project, but not in a module or library.
Then it is probably in the same directory with .ipr / .iws files? The simplest solution I can suggest is to move ant file under some module's content root.
Then it is probably in the same directory with .ipr / .iws files?
Yes.
The simplest solution I can suggest is to move ant file under some module's content root.
Until I find another reason to move this file from where it is now, I'll keep it where it is. I don't want to have tools dictate where I have to store something.
yep, shift+F6 like all other renames.
Where to invoke - I've did not got it working and hence asked.
Tom
Invoke it when the cursor is on the target name.
I'm getting the error message: "Cannot perform refactoring. Selected Ant
target is not located inside the project." But it is visible in the
"Project" view and added to the "Ant Build" view.
Tom
Hello Tom,
Is the ant file located under the module content root, or attached inside
a library? I.e., open the build file in the editor, press Alt+F1 and jump
into the Project View from the menu. Do you come under Libraries node or
under module content node?
I've got the same error, when the build file is under libraries. And this
is correct: libraries content is not the project content.
(BTW, what IDEA version do you use?)
Alexander.
It is shown in the "Project" view. The ANT file is located in the project,
but not in a module or library.
#9757
Tom
Then it is probably in the same directory with .ipr / .iws files? The simplest
solution I can suggest is to move ant file under some module's content root.
Alexander.
Yes.
Until I find another reason to move this file from where it is now, I'll
keep it where it is. I don't want to have tools dictate where I have to
store something.
Tom