stevel 2005/01/21 05:15:34 Modified: src/main/org/apache/tools/ant/taskdefs/repository ForceUpdatePolicy.java Libraries.java Library.java TimestampPolicy.java docs/manual/CoreTasks libraries.html Log: renaming as per Peter's suggestion. Made one of the attributes visible, too. Revision Changes Path 1.3 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/repository/ForceUpdatePolicy.java Index: ForceUpdatePolicy.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/ForceUpdatePolicy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ForceUpdatePolicy.java 18 Nov 2004 16:25:03 -0000 1.2 +++ ForceUpdatePolicy.java 21 Jan 2005 13:15:34 -0000 1.3 @@ -47,7 +47,7 @@ */ public boolean beforeConnect(Libraries owner, ListIterator libraries) { owner.markAllLibrariesForFetch(true); - owner._setUseTimestamp(false); + owner.setUseTimestamp(false); return true; } 1.6 +4 -4 ant/src/main/org/apache/tools/ant/taskdefs/repository/Libraries.java Index: Libraries.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/Libraries.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Libraries.java 21 Jan 2005 07:12:52 -0000 1.5 +++ Libraries.java 21 Jan 2005 13:15:34 -0000 1.6 @@ -325,7 +325,7 @@ * set the timestamp flag. Not for export into XML * @param useTimestamp */ - public void _setUseTimestamp(boolean useTimestamp) { + public void setUseTimestamp(boolean useTimestamp) { this.useTimestamp = useTimestamp; } @@ -501,7 +501,7 @@ //record the fact in the library log("success; marking as fetched", Project.MSG_DEBUG); - library._setFetched(fetched); + library.assignFetched(fetched); } catch (IOException e) { log(ERROR_LIBRARY_FETCH_FAILED + library); log(e.getMessage()); @@ -540,7 +540,7 @@ Iterator it = libraryIterator(); while (it.hasNext()) { Library library = (Library) it.next(); - library._setToFetch(fetch); + library.assignToFetch(fetch); } } @@ -553,7 +553,7 @@ Iterator it = libraryIterator(); while (it.hasNext()) { Library library = (Library) it.next(); - library._setToFetch(!library.exists()); + library.assignToFetch(!library.exists()); } } 1.7 +7 -7 ant/src/main/org/apache/tools/ant/taskdefs/repository/Library.java Index: Library.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/Library.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Library.java 20 Jan 2005 23:09:15 -0000 1.6 +++ Library.java 21 Jan 2005 13:15:34 -0000 1.7 @@ -193,7 +193,7 @@ * set the library file. Hidden from Ant users. * @param file */ - public void _setLibraryFile(File file) { + public void assignLibraryFile(File file) { this.libraryFile = file; } @@ -330,10 +330,10 @@ /** * prefixed to avoid ant picking up on it, this sets * the fetch/no-fetch flag. - * @param toFetch + * @param toFetchFlag */ - public void _setToFetch(boolean toFetch) { - this.toFetch = toFetch; + public void assignToFetch(boolean toFetchFlag) { + this.toFetch = toFetchFlag; } /** @@ -355,10 +355,10 @@ /** * another not-for-end-users attribute; a flag set to true if the * library has been fetched. - * @param fetched + * @param fetchflag */ - public void _setFetched(boolean fetched) { - this.fetched = fetched; + public void assignFetched(boolean fetchflag) { + this.fetched = fetchflag; } /** 1.3 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/repository/TimestampPolicy.java Index: TimestampPolicy.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/TimestampPolicy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TimestampPolicy.java 18 Nov 2004 16:25:03 -0000 1.2 +++ TimestampPolicy.java 21 Jan 2005 13:15:34 -0000 1.3 @@ -38,7 +38,7 @@ */ public boolean beforeConnect(Libraries owner, ListIterator libraries) { owner.markAllLibrariesForFetch(true); - owner._setUseTimestamp(true); + owner.setUseTimestamp(true); return true; } 1.3 +9 -1 ant/docs/manual/CoreTasks/libraries.html Index: libraries.html =================================================================== RCS file: /home/cvs/ant/docs/manual/CoreTasks/libraries.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- libraries.html 20 Jan 2005 15:59:52 -0000 1.2 +++ libraries.html 21 Jan 2005 13:15:34 -0000 1.3 @@ -58,6 +58,13 @@ <td valign="top" align="center">No -default false</td> </tr> <tr> + <td valign="top">usetimestamp</td> + <td valign="top">flag to indicate that timestamps should + be compared when probing for updates. + </td> + <td valign="top" align="center">No -default false</td> + </tr> + <tr> <td valign="top">pathID</td> <td valign="top">Name of a path to create containing all libraries in this declaration. @@ -261,7 +268,8 @@ <h4>timestamp</h4> <P>This policy tells Ant to check the repository to see if the files have changed -using timestamp checks. Any files which are up to date will not be downloaded again. </P> +using timestamp checks. Any files which are up to date will not be downloaded again. +It is equivalent to setting the <code>useTimestamp</code> flag. </P> <p>Example:</p> <pre>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]