Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
OSL
code
org.etsi.osl.osom
Compare revisions
12582fb87006db24ac94a191a38c2db1fcf68a82...bd13c4c49417091a21e575f17005949e8e0544b7
Commits (5)
attempt to fix
#16
· 4212c633
tranoris
authored
Feb 06, 2024
4212c633
with absolute path, fix for
#16
· 25e4c2c8
tranoris
authored
Feb 06, 2024
25e4c2c8
Fix for
#16
· baff373d
tranoris
authored
Feb 06, 2024
baff373d
fix for
#16
· 3381c271
tranoris
authored
Feb 06, 2024
3381c271
Merge branch 'develop' into parent-child-characteristics
· bd13c4c4
tranoris
authored
Feb 06, 2024
bd13c4c4
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/etsi/osl/osom/lcm/LCMRulesExecutor.java
View file @
bd13c4c4
...
...
@@ -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
());
...
...