Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
a0ed1760
Commit
a0ed1760
authored
7 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Plain Diff
[GR-5176] Don't skip arguments when pre-parsing in RCommand.
PullRequest: fastr/1225
parents
ae2879b2
962096c0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RCommand.java
+12
-7
12 additions, 7 deletions
....launcher/src/com/oracle/truffle/r/launcher/RCommand.java
with
12 additions
and
7 deletions
com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RCommand.java
+
12
−
7
View file @
a0ed1760
...
...
@@ -31,6 +31,7 @@ import java.nio.file.Files;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
...
...
@@ -144,13 +145,17 @@ public class RCommand {
boolean
useJVM
=
false
;
RLauncher
launcher
=
new
RLauncher
(
Client
.
R
);
Map
<
String
,
String
>
polyglotOptions
=
new
HashMap
<>();
for
(
int
i
=
1
;
i
<
argsList
.
size
();
i
++)
{
String
arg
=
argsList
.
get
(
i
);
if
(
"--jvm"
.
equals
(
arg
))
{
useJVM
=
true
;
argsList
.
remove
(
i
);
}
else
if
(
launcher
.
parsePolyglotOption
(
"R"
,
polyglotOptions
,
arg
))
{
argsList
.
remove
(
i
);
Iterator
<
String
>
iterator
=
argsList
.
iterator
();
if
(
iterator
.
hasNext
())
{
iterator
.
next
();
// skip first argument
while
(
iterator
.
hasNext
())
{
String
arg
=
iterator
.
next
();
if
(
"--jvm"
.
equals
(
arg
))
{
useJVM
=
true
;
iterator
.
remove
();
}
else
if
(
launcher
.
parsePolyglotOption
(
"R"
,
polyglotOptions
,
arg
))
{
iterator
.
remove
();
}
}
}
if
(
launcher
.
runPolyglotAction
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment