Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-24912] Android: Running a module after it was built fails on Windows. #9184

Merged
merged 6 commits into from Jul 6, 2017

Conversation

ypbnv
Copy link
Contributor

@ypbnv ypbnv commented Jun 30, 2017

JIRA: https://jira.appcelerator.org/browse/TIMOB-24912

Change parameters to work both on macOS and Windows.

Description:
On Windows Node child processes need to be run in a new console. This changes the command to point to the node executable and adds the old command as a parameter. This way it should work on both operating systems.

@ypbnv ypbnv added the bug label Jun 30, 2017
@ypbnv ypbnv requested a review from cb1kenobi June 30, 2017 11:59
@ypbnv ypbnv added the android label Jun 30, 2017
Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR'd and FR'd. APPROVED

}
function runTiCommand(cmd, args, logger, callback) {

// when calling on Windows, we need to escape ampersands in the command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the indention here. We use tabs, not spaces.

Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs some coding style fixes.

@ypbnv
Copy link
Contributor Author

ypbnv commented Jul 6, 2017

@cb1kenobi Updated with proper indentation.

if (process.platform == 'win32' && /\.bat$/.test(cmd)) {
args.unshift('/S', '/C', cmd.replace(/\&/g, '^&'));
cmd = 'cmd.exe';
function runTiCommand(cmd, args, logger, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to knit pick, but you have trailing whitespace.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have totally missed that.

@ypbnv
Copy link
Contributor Author

ypbnv commented Jul 6, 2017

@cb1kenobi Updated.

Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go. APPROVED!

@cb1kenobi cb1kenobi merged commit 4d4d643 into tidev:master Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants