Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Packages » howto duplicate main package and rename classes "in bulk"?
Re: howto duplicate main package and rename classes "in bulk"? [message #2696 is a reply to message #270] Fri, 21 April 2006 21:45 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Mon, 05 December 2005 17:38

fudadmin wrote on Mon, 05 December 2005 10:32

luzr wrote on Mon, 05 December 2005 04:04

fudadmin wrote on Mon, 05 December 2005 03:23

howto duplicate main package and rename classes "in bulk"?


No direct support. You can "clone" package by copying its folder and renaming ".upp" file (.upp file contans the package information and must much the name of directory).

To rename classes, use Find in files.


Thank you! That's great!

Now I have Aris versioning system Cool :

1. Preparation - performed once:
1.1. Create your working dir e.g "uppMyWork" (paralell with upp).
1.2. Make a copy of "MyApps.var" (file in "upp" dir) and Rename to e.g "MyProject1.var"
1.3. Edit inside e.g "MyProject1.var" (e.g with Notepad) to have the correct dirs.
(That should enough to show "MyProject1" in Assembly column of package dialogue)

2. Every time you want - a new Project(assembly?):
2.1. Make a copy of any existing "*.var" to e.g "MyProject2.var" 2.2. Edit inside e.g "MyProject2.var" (e.g with Notepad) to have the correct dirs.

3. Every time you want - a new Versions of a project:
3.1. Copy and Rename a subdir with inside files e.g. "MyProject1" (in e.g "uppMyWork") to "MyProject2" and
3.2. Rename "MyProject1.upp" file inside the subdir to "MyProject2.upp"

Does it breach any Myrek's good rules Smile ?



Well, just keep in mind that you can have more main packages - projects in single nest. So perhaps "MyProjects" would work too... (as does MyApps...).


I'm quoting an old post. Perhaps the solution changed since it.
I've a similar problem. My project is growing quickly and some time I want to work on a new version freezing the old.
Unfotunately copy and past of the folder package and renaming the upp file is not enough. In fact I use *lay and *iml file that depend by the package directory. So each time I must rename all the include.
Does exist a lazy way to do a copy of a package?

Luigi

PS: in my package I don't see any *.var file.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Link error when building ide\Debuggers module? [SOLVED] -not main package
Next Topic: Bug
Goto Forum:
  


Current Time: Wed Apr 24 12:46:50 CEST 2024

Total time taken to generate the page: 0.02475 seconds