Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT:how can i rename my module

Tags:

gwt

I want to rename my module name below from test to testing but when i change it from refactor to testing , it says

           unable to find test.gwt.xml

its still looking for the previous module name ..

how can i resolve this

thanks9+

               <?xml version="1.0" encoding="UTF-8"?>
               <module rename-to='test'>

              <!-- Inherit the core Web Toolkit stuff.                        -->
               <inherits name='com.google.gwt.user.User'/>
like image 608
user1226162 Avatar asked Dec 22 '22 01:12

user1226162


2 Answers

You can refer to the following Video.

http://www.youtube.com/watch?v=UW4WSYs1bKE

To rename

  1. Right Click on the project.
  2. Select Run As ---> Run Configurations.
  3. In the Arguments Tab, change the Old Module Names in Program Arguments.
  4. Also Make sure, in GWT Tab, Selected module name is correct.

UPDATE

Given Video is not available now in YouTube. It might be removed by the owner.

like image 66
Vijay Sarin Avatar answered Jan 01 '23 17:01

Vijay Sarin


There are a few steps here. The module is controlled by the modulename.gwt.xml file. First rename that file. I'm not sure but I think you also need to change the java path package name to the new name. Then edit the gwt.xml file and change the entry point and the 'rename' lines. If the module is the first module to launch when running your app you need to change the project run configurations to know the new entry point. That's off the top of my head, I hope I got all the places.

like image 31
Deanna Avatar answered Jan 01 '23 17:01

Deanna