提交 c7ea4b7c 编写于 作者: C Christoph Kutzinski

a single !file.isFile() does the same thing

上级 61f0aa2f
......@@ -141,8 +141,8 @@ public final class MavenArtifact implements Serializable {
File file = a.getFile();
if(file==null)
return null; // perhaps build failed and didn't leave an artifact
if(!file.exists() || file.isDirectory())
return null; // during a build maven sets a class folder instead of a jar file as artifact. ignore.
if(!file.isFile())
return null; // file doesn't exist or artifact points to a directory
return new MavenArtifact(a);
}
......@@ -180,7 +180,7 @@ public final class MavenArtifact implements Serializable {
*/
private String getSeed(String extension) {
String name = artifactId+'-'+version;
if(classifier!=null)
if(Util.fixEmpty(classifier)!=null)
name += '-'+classifier;
name += '.'+extension;
return name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册