Project

General

Profile

Actions

Support Request #6097

closed

Use of environment variables and paths for plugins in ADTF 3.x

Added by hidden over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 7 64bit
Topic:
ADTF::CE
FAQ Links:

Description

Support Anfrage:

I would like to make an ADTF3 project, but have a few questions about the paths. Currently I do the following:
1. My plugins and plugin description files (release and debug as well) are in a folder plugins and plugins/debug respectively.
2. I set an environment variable to this folder from a batch file and I start Configuration Editor from here.
I also load a .cesettings file with CE to extend the Plugins path with my environment variable to find my plugins.
3. CE finds my plugins in the Component window.
4. But if I would like to add a new plugin to my graph, or click Autofill from config all the paths for the plugins will be extended to the absolute paths on my computer without any use of the variable.
It is also a case if I define an Environment variable with my batch file variable in CE in the System Editor Window.

My question:
What would be the correct settings for CE to find my plugins with the provided environment variable, or something similar.
The problem is that currently I have to manually change the paths for my added plugins in the graph in the adtfsystem file to my environment variable.
But when I do that, the Launcher finds them and is running without a problem, but when I try to open the project with CE again, it does not find the plugins with the replaced environment variable.
This way unfortunately if I try to drag and drop the project to another computer, I can run it with the Launcher, but cannot open it with CE, because it cannot find my plugins defined with environment variables in the graph file. I have to click remove all and autofill from config to make CE find my plugins, but than it replaces my environment variables with absolute paths on my computer, so it is not drag and droppable to another computer anymore.

Is there a way to make my project drag and droppable to another computer and be able to edit it with CE as well?

Lösung:

please have a look to our Guides for the Configuration Editor and look for the info about environment variable in the area System Editor
You can use OS environment variables within your ADTF environment variables as shown in the guides. But you have to define these OS variables once in the ADTF variables.

Step 1 - define or check the OS environment variables.
Step 2 - define the ADTF environment variables (with use of the OS environment variables). (these will be saved in the .adtfsystem file of the project)
Step 3 - define or check the Plugins path in the "Options" settings for the Plugins settings (.cesettings file).

Actions

Also available in: Atom PDF