I need to understand the best practices to use the same source code/libraries into multiple applications. The requirement is, e.g. I am selling my code/library to some company, lets say xyx
, then I should use xyz
as company name in my packages(and other places if required).
Later, if some other company pqr wants that code/library, I need to manually go and change all package names(and others) again and create another repository in source control software. This task is very time consuming and not good at all.
Whenever I find a bug in base code, I need to commit changes in all copies of the same code and release library to all companies.
I am trying to find how should I approach such situation.
I am here talking about some Java packages (contains very basic features that I wish to use in all company's software), and I am using tortoise svn as repository.