Changing namespaces in huge project


My project has a lot of packages and a lot of custom JAVA code inside.
Im trying change root namespace for some common packages (example: now NS is company1.common.* changing to company2.common.*) Just renaming root folder via Designer is not applicable for me because of tons of references (it tool 1 day for one package, too slow...) Tried change NS using file system by find-replace in all files, except flow.xml.bak, but now I have issue with compiled java files, which are facing to old package namespace. Recompiling doesn't helped.

Maybe someone faced with similar problem?


Have you run a replacing script (sed or other) on the source files before reloading the packages?

Best Regards,