Building Mobile Enterprise Applications : webMethods Mobile Development Help : Managing a Project : Changing the Package Name
Changing the Package Name
You initially define the package name for a Mobile Project when you create the project using the New Mobile Development Project wizard. If you want to change the setting you specified in the wizard, you can do so by updating the Bundle Id property for the root application node.
To change the package name for a Mobile Project
1. Ensure the Mobile Project is displayed in the Outline Editor. For instructions, see Displaying a Mobile Project in the Outline Editor.
2. In the Model section of the Outline Editor, expand the project so that you can view the top-level child node that represents the root application for the project.
3. Select the root application node.
4. In the Properties section of the screen, type the new package name in the Bundle Id property.
5. Save the Mobile Project.
6. In the Outline Editor, right-click and select Generate Mobile Designer Sources to regenerate the sources for your project so that your changes are incorporated.
Mobile Development generates new Java classes for the project that use the new package name.
In the project’s gen/src folder, Mobile Development removes the Java classes that use the old package name, replacing them with Java classes that use the new name.
In the src folder, Mobile Development creates new Java classes that use the new package name, but retains all existing Java classes that use the old package name. Mobile Development retains the files with the old package name in the event that you previously added custom code to them.
7. For each Java class in the src folder that contains custom code that you need added, copy the code from the old Java class files into the corresponding new Java class files.
Look for custom code that you might have added in Java classes that reside in the following, where old_package is the old package name:
*src.old_package.ui.controller.impl
*src.old_package.ui.templates
8. Delete the following folders, where old_package is the old package name:
*src.old_package.ui.controller/impl
*src.old_package.ui.templates
Note:  
Mobile Development does not automatically delete these files because you might have added custom code that you need to copy, as described in the previous step.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback