[Discuss OpenCPI] [UK OFFICIAL] Renaming components/workers/devices

From: Walters Dominic A <dawalters_at_mail.dstl.gov.uk>
Date: Mon, 27 Jan 20 11:34:03 +0000

Classification: UK OFFICIAL


What would you suggest is the best way to rename an existing device worker?
Right now I just go through and edit each file that I think uses the device worker name, and then build and try to work out which files I've missed :D
Is there a better way of doing this atm?
I think it'd be useful to have something like "ocpidev rename <old> <new>", although I appreciate that that'd be basically impossible to get to work reliably especially when something like an assembly uses the old name.
I might end up just writing a script to at least "find and replace" the name in project.xml and mv the .xml, .vhd/.cc, and the folder containing them to the new name.

Dominic Walters

"This e-mail and any attachment(s) is intended for the recipient only. Its unauthorised use,
disclosure, storage or copying is not permitted. Communications with Dstl are monitored and/or
recorded for system efficiency and other lawful purposes, including business intelligence, business
metrics and training. Any views or opinions expressed in this e-mail do not necessarily reflect Dstl policy."

"If you are not the intended recipient, please remove it from your system and notify the author of
the email and centralenq_at_dstl.gov.uk"


Received on Mon Jan 27 2020 - 11:34:03 CST

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT