[jbosstools-issues] [JBoss JIRA] (JBIDE-23274) Rename of batch artefact should affect batch.xml file
Lukáš Valach (JIRA)
issues at jboss.org
Thu Sep 29 05:57:00 EDT 2016
Lukáš Valach created JBIDE-23274:
------------------------------------
Summary: Rename of batch artefact should affect batch.xml file
Key: JBIDE-23274
URL: https://issues.jboss.org/browse/JBIDE-23274
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: batch
Affects Versions: 4.4.1.Final
Reporter: Lukáš Valach
Attachments: BatchRenameManualTest.zip
There are three ways how to refer batch artefact in job.xml file.
* Using @Name annotation
* Using fully qualified class name
* Using batch.xml
I noticed that the class name is not changed in batch.xml file during refactoring and the job.xml file become invalid for this reason.
There is a way how to avoid this problem. User can check the "Update fully qualified names in non-Java text files" option in Rename window, but this solution is not intuitive/is not user friendly I think.
In another case, when I don't use batch.xml and use the name comming from @Named annotation. The artefact is renamed in job.xml file even if the "Update fully qualified names in non-Java text files" option aren't selected. Non-Java text file (job.xml) is updated automatically in this case.
There is attached project that you can use to reproduce this problem.
[^BatchRenameManualTest.zip]. Just try to rename Writer class.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list