Commit 7294cb6b by 钟明宏

Update BuildMojo.java

parent 5a75c80b
......@@ -204,7 +204,7 @@ public class BuildMojo extends AbstractDockerMojo {
* The workdir for the image. Ignored if dockerDirectory is set
*/
@Parameter(property = "workDir")
private String workdir;
private String workDir;
/**
* The user for the image. Ignored if dockerDirectory is set
......@@ -588,7 +588,7 @@ public class BuildMojo extends AbstractDockerMojo {
baseImage = get(baseImage, profileConfig, "baseImage");
entryPoint = get(entryPoint, profileConfig, "entryPoint");
cmd = get(cmd, profileConfig, "cmd");
workdir = get(workdir, profileConfig, "workdir");
workDir = get(workDir, profileConfig, "workdir");
user = get(user, profileConfig, "user");
}
......@@ -640,7 +640,7 @@ public class BuildMojo extends AbstractDockerMojo {
if (runList != null && !runList.isEmpty()) {
getLog().warn("Ignoring run because dockerDirectory is set");
}
if (workdir != null) {
if (workDir != null) {
getLog().warn("Ignoring workdir because dockerDirectory is set");
}
if (user != null) {
......@@ -687,8 +687,8 @@ public class BuildMojo extends AbstractDockerMojo {
}
}
if (workdir != null) {
commands.add("WORKDIR " + workdir);
if (workDir != null) {
commands.add("WORKDIR " + workDir);
}
for (final String file : filesToAdd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment