Skip to content
Snippets Groups Projects
Commit b1f52e7d authored by Javier.Errea-Moreno's avatar Javier.Errea-Moreno Committed by Jakob.Fittler
Browse files

Checking if pathcode exeists performed

parent 5121cf0b
No related branches found
No related tags found
1 merge request!171Mbed
......@@ -103,6 +103,18 @@ public class AVATAR2CMBED {
public void saveInFiles(String path) throws FileException {
//TraceManager.addDev("save In Files AVATAR2CPOSIX");
if (!SpecConfigTTool.checkAndCreateAVATARCodeDir(path)) {
TraceManager.addDev("Directory cannot be created: " + path);
throw new FileException("ERROR: Executable code directory cannot be created.");
}
//TraceManager.addDev("Creating dir for saving generated code");
File src_dir = new File(path + GENERATED_PATH);
if (!src_dir.exists()) {
TraceManager.addDev("Creating: " + src_dir.getAbsolutePath());
src_dir.mkdir();
}
TraceManager.addDev("Generating files");
if (mainFileMbed != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment