Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
openmole
Commits
06853b78
Commit
06853b78
authored
Jul 07, 2021
by
Juste Raimbault
Browse files
[Plugin]juliatask:fix
parent
efa240b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
openmole/plugins/org.openmole.plugin.task.julia/src/main/scala/org/openmole/plugin/task/julia/JuliaTask.scala
View file @
06853b78
...
...
@@ -33,7 +33,7 @@ object JuliaTask {
implicit
def
isMapped
=
MappedInputOutputBuilder
(
JuliaTask
.
mapped
)
def
installCommands
(
install
:
Seq
[
String
],
libraries
:
Seq
[
String
])
:
Vector
[
String
]
=
{
(
install
++
Seq
(
"julia -e 'using Pkg; Pkg.add.([ "
+
libraries
.
map
{
l
⇒
"\""
+
l
+
"\""
}.
mkString
(
","
)+
"])'"
)).
toVector
(
install
++
Seq
(
"""sh -c
"julia -e 'using Pkg; Pkg.add.([ "
""
+
libraries
.
map
{
l
⇒
"\
\\
""
+
l
+
"\
\\
""
}.
mkString
(
","
)+
"
""
])'"
"""
)).
toVector
}
def
apply
(
...
...
@@ -141,7 +141,7 @@ object JuliaTask {
ContainerTask
(
containerSystem
=
containerSystem
,
image
=
image
,
command
=
s
"julia $scriptName"
+
argumentsValue
,
command
=
s
"
sh -c \"
julia $scriptName"
+
argumentsValue
+
"\""
,
workDirectory
=
None
,
relativePathRoot
=
None
,
errorOnReturnValue
=
errorOnReturnValue
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment