Browse Source

checkstyle: 100 char line limit

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277414 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
c6e5f7a47b
1 changed files with 12 additions and 7 deletions
  1. +12
    -7
      src/main/org/apache/tools/ant/taskdefs/repository/ScheduledUpdatePolicy.java

+ 12
- 7
src/main/org/apache/tools/ant/taskdefs/repository/ScheduledUpdatePolicy.java View File

@@ -33,8 +33,8 @@ import java.util.ListIterator;
import java.util.Properties;

/**
* This {@link org.apache.tools.ant.taskdefs.repository.LibraryPolicy} updates the files only when the schedule
* indicates that it should.
* This {@link org.apache.tools.ant.taskdefs.repository.LibraryPolicy} updates the files only
* when the schedule indicates that it should.
* <p/>
* The default interval is eleven hours; it's prime, it encourages
* regular but not excessive days.
@@ -53,10 +53,14 @@ public class ScheduledUpdatePolicy extends BaseLibraryPolicy {
*/
private Properties markerFileToSave;

public static final String ERROR_NO_MARKER_FILE = "No marker file";
public static final String MARKER_MISMATCH = "No match between last update and current one";
public static final String INTERVAL_TRIGGERS_UPDATE = "Interval between updates is long; updating";
public static final String INTERVAL_SHORT_NO_UPDATE = "Interval between updates is short; no update";
public static final String ERROR_NO_MARKER_FILE
= "No marker file";
public static final String MARKER_MISMATCH
= "No match between last update and current one";
public static final String INTERVAL_TRIGGERS_UPDATE
= "Interval between updates is long; updating";
public static final String INTERVAL_SHORT_NO_UPDATE
= "Interval between updates is short; no update";


public File getMarkerFile() {
@@ -148,7 +152,8 @@ public class ScheduledUpdatePolicy extends BaseLibraryPolicy {
markerFileToSave = now;
return true;
} catch (IOException e) {
throw new BuildException("Marker file " + markerFile.getAbsolutePath() + " access failed", e);
throw new BuildException(
"Marker file " + markerFile.getAbsolutePath() + " access failed", e);
}
}



Loading…
Cancel
Save