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

From: James Kulp <jek_at_parera.com>
Date: Mon, 27 Jan 20 08:29:52 -0500

Hi Walter,

Are you using the AV GUI?  That has different "caching" issues than if
you are just using the command line and ocpidev.

For VHDL workers (with release 1.5 and the version=2 attribute), there
is no embedding of the name in the worker's own source code.

So normally renaming the worker's directory name, its OWD XML file and
its source file is sufficient (and a "clean" in the worker's directory).

A "rename" verb in ocpidev is a good idea (as well as a "copy").

There will still be some remnants of the old worker until a clean build
happens at the project level.

Jim





On 1/27/20 6:34 AM, Walters Dominic A via discuss wrote:
> 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 - 13:29:52 CST

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