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

Generate dockerfile for java app #235

Merged
merged 2 commits into from
Mar 14, 2018

Conversation

testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Implement the feature #191, generate dockerfile for a typical maven/gradle java app.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@@ -300,6 +347,49 @@ async function readPackageJson(folder: vscode.WorkspaceFolder): Promise<PackageJ
return pkg;
}

async function readPomAndGradle(folder: vscode.WorkspaceFolder): Promise<PackageJson> {
Copy link

Choose a reason for hiding this comment

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

readPomOrGradle ?

const json = await gradleParser.parseFile(path.join(folder.uri.fsPath, 'build.gradle'));

if (json.jar && json.jar.version) {
pkg.version =json.jar.version;
Copy link

Choose a reason for hiding this comment

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

add space after '='

@chrisdias chrisdias self-assigned this Mar 14, 2018
@chrisdias chrisdias merged commit 916d9c7 into microsoft:master Mar 14, 2018
@testforstephen testforstephen deleted the jinbo_javadockerfile branch March 14, 2018 01:24
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants