Skip to content

stop gradle daemons when removing platform #2533

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

Merged
merged 2 commits into from
Feb 22, 2017

Conversation

petekanev
Copy link
Contributor

The android runtime (3.0) has had its gradle wrapper version updated where daemon processes are used by default.

Daemons are used to prevent the overhead of having to initialize the JVM on every build command, thus lowering the build time dramatically. The fact that the process remains alive appears to be a problem in Windows environments as the daemon locks the platforms/android directory.

The changes in this PR ensure that the currently running daemons will be terminated, and the lock over the platforms directory released, so that it may be freely removed.

Addresses #2528

}
}

private async gradleStop(projectRoot: string): Promise<ISpawnResult> {
Copy link
Contributor

Choose a reason for hiding this comment

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

looks great, just move logic to android-project-service.ts, and call through platformData.platformProjectService...

@petekanev petekanev force-pushed the pete/stop-daemons-platform-remove branch from fb7dff4 to 6949b63 Compare February 14, 2017 09:23
@petekanev petekanev force-pushed the pete/stop-daemons-platform-remove branch from 6949b63 to 68109f1 Compare February 14, 2017 13:18
@petekanev petekanev merged commit e3435eb into master Feb 22, 2017
@petekanev petekanev deleted the pete/stop-daemons-platform-remove branch February 22, 2017 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants