Quote from: Phil Beauvoir on May 13, 2025, 20:03:32 PMIt does work. I have it working here.
To test, create a localised copy of Archi 5.6 as follows:
1. Download Archi 5.6 zip version
2. Unzip it somewhere in a folder
3. Replace the Archi.ini file with this:
...
For me this is working and using the colors and settings in "custom_defaults.prefs" (the one you posted here)
Quote from: Phil Beauvoir on May 13, 2025, 20:30:40 PMI think I know what the problem might be - paths in the Archi.ini file are relative to the directory from where you launch Archi.
If you have the following in your "Archi.ini" file you need to also run Archi from the same directory:-pluginCustomization
custom_defaults.prefs
If you are not running Archi from the same directory in your CLI script, then you need to make it an absolute path something like this:-pluginCustomization
c:/path_to_archi_folder/custom_defaults.prefs
Or you could change directory to the Archi directory in the calling script:cd path_to_archi_folder
Archi -application com.archimatetool.commandline.app....
-pluginCustomization
c:/path_to_archi_folder/custom_defaults.prefs
-pluginCustomization
custom_defaults.prefs
-pluginCustomization
c:/path_to_archi_folder/custom_defaults.prefs
cd path_to_archi_folder
Archi -application com.archimatetool.commandline.app....
Quote from: Eric Vendeville on May 13, 2025, 19:47:58 PMArchi's CLI only search for (and work with) com.archimatetool.editor.prefs : it seems to ignore the custom_defaults.prefs) !
-startup
plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.1000.v20240507-1834
-cleanConfig
--launcher.defaultAction
openFile
-pluginCustomization
custom_defaults.prefs
-eclipse.keyring
@user.home/AppData/Roaming/Archi/secure_storage
-vmargs
-Dosgi.requiredJavaVersion=21
-Dfile.encoding=UTF-8
-Declipse.p2.data.area=@config.dir/p2
-Ddata.location=@user.home/Documents/Archi
--add-modules=ALL-SYSTEM
-Dosgi.instance.area=workspace
-Dosgi.configuration.area=workspace/config
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=%user.home%/AppData/Roaming/Archi/dropins
Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --modelrepository.loadModel "path_to_archi_repo" --html.createReport "C:\Users\YourName\Desktop\Test"
Quote from: Eric Vendeville on May 13, 2025, 17:56:40 PMBut on "archi's side", and after fixing the above mentioned problem, I realized that my "packaged version of archi" (with the custom_defaults.prefs), when first executed right after install (either through the GUI or the CLI), do not automatically create/generate the appropriate ~/.archi/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.archimatetool.editor.prefs as (I think) it should.