Stefan Bodewig
6b265b5612
use the same logic as <delete> if deletion of a recently closed file fails on Windows during rename. PR 45960.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@703151 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
9f30d05509
factor out symlink methods into a separate utils class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@702350 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
f625d964c0
delete broken symbolic links. PR 41285
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@693071 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
6352c4ac1c
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@615452 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
46bf9d8c85
improved lay-out + add since ant 1.7.1 instead of 1.8
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@608999 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
94dd480d07
request from cactus team, backward incompatible change in FileUtils made backward compatible
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@608939 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
ad82fe67bd
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@589762 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
ac16a45be3
magicnumbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579953 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
95a74e9637
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@574889 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
7e05b3d981
pr33969: tempfile task / FileUtils.createTempFile now actually creates the file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@574339 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
529a3f8250
revert readfully change, add in safeReadFully
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@572363 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
a9592b869e
Bugzilla 43292: filtermapper could throw an NPE. - change FileUtils to return an empty string rather than null for zero-length files
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@572302 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
17137c34f7
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@564912 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
424bee292b
checkstyle: remove trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@564891 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
c0649769e0
fix the filename case junk again without relying on OS-level tests; reverting earlier changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@552350 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
adb161cdc4
fmting; tiny refactorings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@552042 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
c717727548
detect cs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@549684 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Antoine Levy-Lambert
e52412cab9
restore detailed import lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@523683 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
25b1695de8
adding since tag for new method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@523682 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
1e4c39fb60
adding a method to find wrong cased files
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@523681 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
b73a3b386a
no need to mark static methods as final
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@520384 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Kevin Jackson
aa90e61cd6
-revert to non-reflective close
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@519857 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Kevin Jackson
8a9e8a9034
-sorry prevent NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@518897 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Kevin Jackson
08ece01ed6
-use reflection to avoid duplicated code for close (various things that can be closed)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@518896 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
9dfd03133b
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475983 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
5e4d3d0c93
do not uppercase systematically drive letters in FileUtils#normalize
append drive letter to absolute paths in Locator#fromURI
make FileUtilsTest pass under JDK 1.3
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475206 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
5d029deab9
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@474079 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
e6e70c16c1
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@471560 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0c318edc89
Performace:
cache last FileUtils.fromUri() result
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448377 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
c5d57a281a
Bugzilla 40300: incorrent handling of exceptions in <copy>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@441294 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
2e897819a8
copy2license.pl
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439418 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
69c95afa02
Some Javadoc corrections.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@432709 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
869b123c04
#40281 : "Cannot resolve path" error thrown gratuitously.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@432379 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jan Materne
303b70f86b
Bug 21042 "Setting XSL parameter to input filename when processed whole directory."
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@422692 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
ac92e4e6bd
add tempfile deleteOnExit. PR# 39842. Submitted by Patrick Martin (then slightly modified).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@415695 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
7eb22e8cdc
indicated when methods/classes became deprecated, as to give us the possibility to remove deprecated methods in the future.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396012 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
27c1d843ca
change name of Locator.encodeUri to Locator.encodeURI
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@395304 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
58dfcc03e8
Sorry, copyright update forgotten
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@388818 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
f5f6982c88
Refactored translatePath from Project to FileUtils.
Project now also fails with explicit message on java 1.1.
Added javadoc comment for the ant.java.version property
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@388814 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
e12c63a6ee
more systematic handling of URIs, delegation of work to the JDK
for toURI and fromURI
patches prepared by Jesse Glick, Bugzilla 8031
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@357131 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
c3788e23d0
Replace try-catch with a preemptive check.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@350260 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
58b30633ee
Fix import / removed unused variables
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@350258 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
551b204c24
percent encode the relative paths in ManifestClassPath
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@350061 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
6a71283099
properly convert URIs back to file paths when non ascii characters are percent-encoded
matches with the change in FileUtils.toURI recently done
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@349552 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
98f8daca39
add a test case for bugrep 37348 in the xslt task, also remove
unneeded imports in FileUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@345256 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
c9f87e7168
restore credit for the xerces-j team, sorry ...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@345144 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
c4ad42ed39
fix for bug report 37348
encode non ascii characters in FileUtils.toURI()
this allows to process XML documents with System entities
housed in non ASCII paths.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@345141 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
fa84f9f461
Move Resource-based utility methods in FileUtils to ResourceUtils (static).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@292553 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
ec53cbb02a
delete + resource collection support
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@280944 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
653aa05d13
removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278418 13f79535-47bb-0310-9956-ffa450edef68
20 years ago