This content has been marked as final. Show 11 replies
Select the project in the application navigator and select
But this only renames the jpr file. If you want to rename other stuff too you have to be careful as some files or content does not get renamed by the refactor operation.
click your project..
selct Refactor Menu
Select Rename and then Rename your project
I guess this option just rename the jpr file alone. What if I want to rename the folder which contain this jpr file? Is there any option ? or I can just go to this folder and rename it without any issues ?
i dont think so u have an option for that.. simple thing u can do is.. click on the project.. Edit - Copy Path.. goto run... for to the specific folder and rename.. or
After updating the project name. .you go to project source path and update the source.. in project properties..
You can rename the folder in the file system (after closing jdev as it locks the folder once you open the workspace). After restarting jdev and opening the workspace you need to add the now renamed project folder back to the workspace (right click on the workspace and select open project). Select the jpr file and you are done.
then you can remove the still present old project by just hit del on the project.
What about the dependencies ? Can we change the dependency to this project in the jpr file if it is getting referred by other projects through dependencies ?
Yes you should check all dependencies of all other projects in the same workspace and set the new project as dependence and remove the old one.
yes.. as Timo said.. the dependencies should be manually edited/renamed.. to make it work.. without any problem..
When you want to rename the project, you have to do the following:
For example, if you have the project ViewController.jpr.
The default folder JPR file would be present in ./ViewController/ViewController.jpr
1) Renaming the project to UIProject would make it as
2) Close the application in JDeveloper and rename the folder in the filesystem so that
./UIProject /UIProject .jpr
3) Open the application in JDeveloper and the project would show up as the reference for the project would be missing in Application.JWS.
Open the UIProject .jpr thru JDeveloper - this would automatically add the project to the application.
best and the tested way to refactor a project under an Application is:
1. use only console/ command prompt to do all the file related changes.
2. Change the project reference in the application's /jws file. Look at various deployment descriptors.
3. Change the .jpr and .jpx file to point to the refactored project. meticulously check the file references.
All the above steps are to done using the console and not from JDEV. close JDEV before doing any of the above changes.
Then open up the java, xml files from JDEV and take care of the compilation errors.
I have tried this and its working fine for me.
ND - why, oh why would you do that? The solutions mentioned earlier work just fine and don't involve unsupported editing hacking of the .jpr, .jws, and .jpx files.