Copy Project

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I'm really lazy.

When I start a new B4A project I would like to use an existing project as the starting point - copy the existing project into a new directory then modify the files as needed, without affecting the original project.

Can I just do that? Copy the entire directory from an old project into a new directory, then start modifying the files in the new directory as needed? Or, will opening the project in the new directory reference files from the old directory, so any modifications will affect the old files and not the new files – such as the XML files and designer files.

How will renaming the B4A files in the new directory affect things?

I notice there is not a "Save-As" or "Save Project As" option in the File menu.

Is there a way to have B4A display the files and locations of everything that is included in the project? Is this information incorporated into one of the files – for example the .b4a or one of the .xml files?

Thanks,
Barry.
 

Mahares

Expert
Licensed User
Longtime User
Timo is right on. Here are the steps in sequence:
1. Make a copy of the whole project folder you want to clone. Give it a new name
2. Open the folder and rename the .b4a project file to something other that its current name. Normally I like to give it the same name as the folder name. This way, I can tie the folder name to the project inside it, without opening the folder.
3. Open the new project that you just renamed. In the IDE, you must change its label and its package name. You can even change its icon if you want. That is all.
 
Upvote 0
Top