Browse Source

Provide more meaningfull message if source doesn't exist in <.+zip>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273447 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
ea4a6f2985
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main/org/apache/tools/ant/taskdefs/Pack.java

+ 4
- 1
src/main/org/apache/tools/ant/taskdefs/Pack.java View File

@@ -124,7 +124,10 @@ public abstract class Pack extends Task {
public void execute() throws BuildException {
validate();

if (zipFile.lastModified() < source.lastModified()) {
if (!source.exists()) {
log("Nothing to do: " + source.getAbsolutePath() +
" doesn't exist.");
} else if (zipFile.lastModified() < source.lastModified()) {
log("Building: " + zipFile.getAbsolutePath());
pack();
} else {


Loading…
Cancel
Save