You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2004/12/15 17:37:11 UTC

cvs commit: ant/src/main/org/apache/tools/ant/types/selectors DateSelector.java

mbenson     2004/12/15 08:37:11

  Modified:    src/main/org/apache/tools/ant/types/selectors
                        DateSelector.java
  Log:
  Javadoc
  
  Revision  Changes    Path
  1.15      +17 -17    ant/src/main/org/apache/tools/ant/types/selectors/DateSelector.java
  
  Index: DateSelector.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/selectors/DateSelector.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DateSelector.java	12 Nov 2004 15:17:03 -0000	1.14
  +++ DateSelector.java	15 Dec 2004 16:37:10 -0000	1.15
  @@ -88,10 +88,10 @@
       }
   
       /**
  -     * For users that prefer to express time in milliseconds since 1970
  +     * Set the time; for users who prefer to express time in ms since 1970.
        *
        * @param millis the time to compare file's last modified date to,
  -     *        expressed in milliseconds
  +     *        expressed in milliseconds.
        */
       public void setMillis(long millis) {
           this.millis = millis;
  @@ -99,7 +99,7 @@
   
       /**
        * Returns the millisecond value the selector is set for.
  -     * @return the millisecond value
  +     * @return the millisecond value.
        */
       public long getMillis() {
           if (dateTime != null) {
  @@ -109,19 +109,19 @@
       }
   
       /**
  -     * Sets the date. The user must supply it in MM/DD/YYYY HH:MM AM_PM
  -     * format
  +     * Sets the date. The user must supply it in MM/DD/YYYY HH:MM AM_PM format,
  +     * unless an alternate pattern is specified via the pattern attribute.
        *
  -     * @param dateTime a string in MM/DD/YYYY HH:MM AM_PM format
  +     * @param dateTime a formatted date <code>String</code>.
        */
       public void setDatetime(String dateTime) {
           this.dateTime = dateTime;
       }
   
       /**
  -     * Should we be checking dates on directories?
  +     * Set whether to check dates on directories.
        *
  -     * @param includeDirs whether to check the timestamp on directories
  +     * @param includeDirs whether to check the timestamp on directories.
        */
       public void setCheckdirs(boolean includeDirs) {
           this.includeDirs = includeDirs;
  @@ -130,7 +130,7 @@
       /**
        * Sets the number of milliseconds leeway we will give before we consider
        * a file not to have matched a date.
  -     * @param granularity the number of milliconds leeway
  +     * @param granularity the number of milliseconds leeway.
        */
       public void setGranularity(int granularity) {
           this.granularity = granularity;
  @@ -140,16 +140,16 @@
        * Sets the type of comparison to be done on the file's last modified
        * date.
        *
  -     * @param cmp The comparison to perform, an EnumeratedAttribute
  +     * @param cmp The comparison to perform, an EnumeratedAttribute.
        */
       public void setWhen(TimeComparisons tcmp) {
           this.cmp = tcmp.getIndex();
       }
   
       /**
  -     * Sets the pattern to be used for the SimpleDateFormat
  +     * Sets the pattern to be used for the SimpleDateFormat.
        *
  -     * @param pattern the pattern that defines the date format
  +     * @param pattern the pattern that defines the date format.
        */
       public void setPattern(String pattern) {
           this.pattern = pattern;
  @@ -159,7 +159,7 @@
        * When using this as a custom selector, this method will be called.
        * It translates each parameter into the appropriate setXXX() call.
        *
  -     * @param parameters the complete set of parameters for this selector
  +     * @param parameters the complete set of parameters for this selector.
        */
       public void setParameters(Parameter[] parameters) {
           super.setParameters(parameters);
  @@ -234,10 +234,10 @@
        * The heart of the matter. This is where the selector gets to decide
        * on the inclusion of a file in a particular fileset.
        *
  -     * @param basedir the base directory the scan is being done from
  -     * @param filename is the name of the file to check
  -     * @param file is a java.io.File object the selector can use
  -     * @return whether the file should be selected or not
  +     * @param basedir the base directory from which the scan is being performed.
  +     * @param filename is the name of the file to check.
  +     * @param file is a java.io.File object the selector can use.
  +     * @return whether the file is selected.
        */
       public boolean isSelected(File basedir, String filename, File file) {
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org