Stefan Bodewig
fa9eca56a6
* refactor <filesmatch> condition to take advantage of FileUtils.
* improve FileUtils.contentEquals by adding two additional shortcut
tests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271004 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
17997f266a
- Fix order of modifiers
- Fix duplicate/unecessary imports
- Fix single if/else and loop without block
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270814 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
86a2654071
JDK 1.1 compatibility.
Submitted by: Finn Bock <bckfnn@worldonline.dk>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270014 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
150b0c8bba
Make <replace> more robust by:
(1) making sure that files will be closed
(2) deleting temporary files
even if something goes wrong.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269961 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4db248f63f
add method that compares file contents to FileUtils, use it in FixCrLf.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269960 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
307c136939
push createTempFile to FileUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269859 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d12e6411cc
Code clean up:
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
490a7cd059
remove redundant code from FileUtils, handle Netware case in
IntrospectionHelper's testcase.
Submitted by: Jeff Tulley <JTULLEY@novell.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269800 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
361eba4355
Make FileUtils.resolveFile more robust - modelled after File(File, String).
This avoids the explicit checks for null directories in
SourceFileScanner as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269755 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f66cab0ea7
Merge from ANT_145_BRANCH up to Beta 2
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269587 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
25484253db
Move resolveFile methods to FileUtils, add a normalize method there.
Make sure Ant normalizes whatever it takes as its basedir - since
we've dropped canonicalPath
ant -f foo.xml
and
ant -f ./foo.xml
would have given different results (the . needed to be stripped).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269522 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0bcf1432f2
give a better name to FileUtil's factory method.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269482 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
21426bf475
Move FileUtils into util package.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269478 13f79535-47bb-0310-9956-ffa450edef68
24 years ago