Commit f83ee076 by 钟明宏

release version 1.2.1

parent e5d74b0a
......@@ -11,7 +11,7 @@
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.2.1-SNAPSHOT</version>
<version>1.2.1-RELEASE</version>
<packaging>maven-plugin</packaging>
<name>docker-maven-plugin</name>
<description>A maven plugin for docker</description>
......
......@@ -847,9 +847,10 @@ public class BuildMojo extends AbstractDockerMojo {
final List<String> copiedPaths = newArrayList();
//
final boolean copyWholeDir = includes.isEmpty() && excludes.isEmpty() &&
resource.getTargetPath() != null;
//本地文件关联docker文件,使用最后生成的Dockerfile文件
// file location relative to docker directory, used later to generate Dockerfile
final String targetPath = resource.getTargetPath() == null ? "" : resource.getTargetPath();
......
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