Arnold
Arnold

Reputation: 4840

Is there a way to copy (parts of) a project to another project?

I have a large project tree and I decided to set up my tests in a different way. Setting up a new test project is easy but to copy hundreds of files from tens of directories is quite a problem. Is there an easy way to copy all these files from another project tree?

Upvotes: 0

Views: 995

Answers (1)

Francesca
Francesca

Reputation: 21640

I would not duplicate the files that should be used without change in both test projects, but use separate (sub)folders for the test projects specific files and refer to the common units with a relative path.

Something like:

...\MyProject\Test1  and using '..\MyCommonUnit.pas'  
...\MyProject\Test2  and using '..\MyCommonUnit.pas'  

You do that for the first Test1 project, then merely saving it in another folder with the 'Save Project As' will duplicate the test only files and you can start directly modifying code in the new Test project...

Upvotes: 5

Related Questions