File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/display/convert-edm/src/main/java/org/csstudio/display/converter/edm Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11/*******************************************************************************
2- * Copyright (c) 2019-2022 Oak Ridge National Laboratory.
2+ * Copyright (c) 2019-2025 Oak Ridge National Laboratory.
33 * All rights reserved. This program and the accompanying materials
44 * are made available under the terms of the Eclipse Public License v1.0
55 * which accompanies this distribution, and is available at
1010import static org .csstudio .display .converter .edm .Converter .logger ;
1111
1212import java .io .File ;
13+ import java .nio .file .Files ;
1314import java .util .concurrent .ConcurrentHashMap ;
1415import java .util .concurrent .Semaphore ;
1516import java .util .logging .Level ;
@@ -142,7 +143,11 @@ private DisplayModel doConvert(final String display_path) throws Exception
142143 // Convert EDM input
143144 logger .log (Level .INFO , "Converting " + input + " into " + output );
144145 locator .setPrefix (new File (display_file ).getParent ());
145- new EdmConverter (input , locator ).write (output );
146+ final EdmConverter converter = new EdmConverter (input , locator );
147+
148+ // Save EDM file to potentially new folder
149+ Files .createDirectories (output .getParentFile ().toPath ());
150+ converter .write (output );
146151
147152 // Return DisplayModel of the converted file
148153 return ModelLoader .loadModel (output .getPath ());
You can’t perform that action at this time.
0 commit comments