Browse Source

Fix static access

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270903 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
260a8dd4d9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Touch.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Touch.java View File

@@ -176,7 +176,7 @@ public class Touch extends Task {
} }
} }


if (millis >= 0 && project.getJavaVersion() == Project.JAVA_1_1) {
if (millis >= 0 && Project.getJavaVersion() == Project.JAVA_1_1) {
log("modification time of files cannot be set in JDK 1.1", log("modification time of files cannot be set in JDK 1.1",
Project.MSG_WARN); Project.MSG_WARN);
return; return;
@@ -220,7 +220,7 @@ public class Touch extends Task {
throw new BuildException("Can not change modification date of read-only file " + file); throw new BuildException("Can not change modification date of read-only file " + file);
} }


if (project.getJavaVersion() == Project.JAVA_1_1) {
if (Project.getJavaVersion() == Project.JAVA_1_1) {
return; return;
} }




Loading…
Cancel
Save