Skip to content
Snippets Groups Projects
Commit bd13c4c4 authored by tranoris's avatar tranoris
Browse files

Merge branch 'develop' into parent-child-characteristics

parents 12582fb8 3381c271
No related branches found
No related tags found
2 merge requests!12Merging 2024Q2_RC into main, creating 2024Q2 Release,!10Parent child characteristics
Pipeline #4426 failed
......@@ -21,6 +21,7 @@ import javax.tools.ToolProvider;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.etsi.osl.tmf.lcm.model.LCMRuleSpecification;
import org.springframework.boot.system.ApplicationHome;
/**
* @author ctranoris
......@@ -162,10 +163,12 @@ public class LCMRulesExecutor {
* This is the location of the jar inside the running container
*/
File classesJar = new File("/opt/openslice/lib/org.etsi.osl.osom-1.2.0-SNAPSHOT.jar");
ApplicationHome home = new ApplicationHome(LCMRulesExecutor.class);
File classesJar = home.getSource();
if ( classesJar.exists() ) {
optionList.addAll(Arrays.asList("-classpath", classesJar.getAbsoluteFile().toString() ));
}
optionList.addAll(Arrays.asList("-classpath", classesJar.getAbsoluteFile().toString().replace("-exec", "") ));
}
logger.debug("classesJar = "+ classesJar);
logger.debug("optionList = "+ optionList.toString());
......
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