Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6e076a35
Commit
6e076a35
authored
Oct 29, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #148 from alhaad/update_run_mojo_command
Modify run_mojo command to take path to devtools.
parents
5f742b70
dde6bd20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
run_mojo.dart
packages/flutter_tools/lib/src/commands/run_mojo.dart
+5
-4
No files found.
packages/flutter_tools/lib/src/commands/run_mojo.dart
View file @
6e076a35
...
...
@@ -27,7 +27,7 @@ class RunMojoCommand extends Command {
argParser
.
addFlag
(
'mojo-release'
,
negatable:
false
,
help:
'Use Release build of mojo (default)'
);
argParser
.
addOption
(
'app'
,
defaultsTo:
'app.flx'
);
argParser
.
addOption
(
'mojo-path'
,
help:
'Path to directory containing mojo_shell and services'
);
argParser
.
addOption
(
'mojo-path'
,
help:
'Path to directory containing mojo_shell and services
for Linux and to mojo devtools from Android.
'
);
}
// TODO(abarth): Why not use path.absolute?
...
...
@@ -39,9 +39,9 @@ class RunMojoCommand extends Command {
return
file
.
absolute
.
path
;
}
Future
<
int
>
_runAndroid
(
String
mojo
Path
,
_MojoConfig
mojoConfig
,
String
appPath
,
List
<
String
>
additionalArgs
)
{
Future
<
int
>
_runAndroid
(
String
devtools
Path
,
_MojoConfig
mojoConfig
,
String
appPath
,
List
<
String
>
additionalArgs
)
{
String
skyViewerUrl
=
ArtifactStore
.
googleStorageUrl
(
'viewer'
,
'android-arm'
);
String
command
=
_makePathAbsolute
(
path
.
join
(
mojoPath
,
'mojo'
,
'devtools'
,
'common'
,
'mojo_run'
)
);
String
command
=
_makePathAbsolute
(
devtoolsPath
);
String
appName
=
path
.
basename
(
appPath
);
String
appDir
=
path
.
dirname
(
appPath
);
String
buildFlag
=
mojoConfig
==
_MojoConfig
.
Debug
?
'--debug'
:
'--release'
;
...
...
@@ -80,9 +80,10 @@ class RunMojoCommand extends Command {
@override
Future
<
int
>
run
()
async
{
if
(
argResults
[
'mojo-path'
]
==
null
)
{
_logging
.
severe
(
'Must specify --mojo-path
to mojo_run
'
);
_logging
.
severe
(
'Must specify --mojo-path
.
'
);
return
1
;
}
if
(
argResults
[
'mojo-debug'
]
&&
argResults
[
'mojo-release'
])
{
_logging
.
severe
(
'Cannot specify both --mojo-debug and --mojo-release'
);
return
1
;
...
...
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