GWT: how can I rename my module

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

unable to find test.gwt.xml 

he is still looking for the previous module name ..

how can i solve 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'/> 
+4
source share
3 answers

You can refer to the next video.

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

To rename

  • Right click on the project.
  • Select Run As ---> Run Configurations.
  • On the "Arguments" tab, change the names of the old modules in the program arguments.
  • Also make sure that the selected module name is correct in the GWT tab.

UPDATE

This video is no longer available on YouTube. It can be deleted by the owner.

+5
source

There are a few steps here. The module is controlled by the modulename.gwt.xml file. Rename this file first. I'm not sure, but I think you also need to change the package name of the Java path to a new name. Then edit the gwt.xml file and change the entry point and the "rename" line. If the module is the first module to start when the application starts, you need to change the project launch configuration to find out the new entry point. This is from my head, I hope that I have all the places.

+4
source

The problem that you most often encounter is that you have not changed the startup configuration in eclipse. As long as the package name does not change, there is no need to edit the .gwt.xml file other than renaming it. Changing the names of the rename name and entry point is not required, since it is not necessary that they match the name of the module. The renaming line changes the name of the created folder and javascript files, so if you change it, you need to remember the script tag in your html file.

+2
source

Source: https://habr.com/ru/post/1398625/


All Articles