Hi,
I am interested in some details on how the ScalaTask’s are being executed on
the remote machine. Are they run within the OpenMOLE OSGi console application
or simply run as standalone Scala App ?
The reason I am asking is that for some reason the reference typesafe config of
my plugin seems to be not read/found. This could be because of the following
code I am using to distinguish whether the code is executed as part of an OSGi
bundle or not. If it is, I have to use an URL to be able to access the
configuration file. In both cases it would use the “reference.conf” in the
plugin’s JAR file as fallback which works fine when I use the code on my local
machine. However, when the ScalaTask executes on the remote machine (SLURM
environment), the keys specified by this reference configuration are missing.
val config = {
ConfigFactory.defaultOverrides().withFallback(file match {
case Some(f) => ConfigFactory.parseFile(f)
case None => ConfigFactory.empty()
}).withFallback(System.getProperty("eclipse.application", "NotOpenMOLE")
match {
case "org.openmole.ui" => ConfigFactory.parseURL(new
URL("platform:/plugin/com.andreasschuh.repeat/reference.conf"))
case _ => ConfigFactory.defaultReference()
}).resolve()
}
Andreas
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users