Matthew Jason Benson
4c83562c6c
On DOS and Netware, filenames beginning with a drive letter
and followed by a colon but with no directory separator following
the colon are no longer (incorrectly) accepted as absolute pathnames
by FileUtils.normalize() and FileUtils.isAbsolutePath(). Netware
volumes can still be specified without an intervening separator.
UNC pathnames on Windows must include a server and share name, i.e.
"\\a\b" to be considered valid absolute paths.
FileUtils.resolveFile() promised to return absolute files but
did not always do so.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277759 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
dd91a1732e
Javadoc (okay DD? ;) )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277599 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
a5f7ccbe7d
Personal taste
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277598 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
79b7beb400
Fixed isSymbolicLink logic for null parent file; made isAbsolutePath() public.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277564 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
333d594f5e
Prepare to merge to 1.6 branch.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277474 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
3ca199cab8
Various aesthetic changes + isSymbolicLink() works when parent arg is null.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277463 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
f5d98f1e2c
Extended FileUtils with a comparison that ignores the kind of line break.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277345 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
7c99089196
PR: 32979
Modification to FileUtils to only accept : on the second position as absolute path for dos-like os.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277306 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
257dadeaf0
Make use of FileUtils in a uniform way via the getFileUtils method and a static final reference in the using files.
Also removed unused/* imports along the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277295 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
58cf8485c5
Made more consequent use of the method available in FileUtils to get the granularity.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277276 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
0a03dc4b5d
Use close method to close streams, Submitted by Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277207 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
1ddaea8055
touch gets nested mapper plus verbose, mkdirs, and pattern attributes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277197 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
6653c42a77
If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile, right?
(Comment re-used from jglick)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277179 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
13435b6628
If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile, right?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277173 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
76122e84be
Various changes => fewer LOC
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277146 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
677491b927
use the FileUtils#close method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277121 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
395f3939fc
checkstyle changes
Obtained from: Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277070 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
c31f5ae257
Somewhat reworked patch for bug# 31106, submitted by Isao Yanagimachi.
Took the opportunity to clean up the tasks slightly, such as removing duplication in various methods.
We need a unit test for long command line java, and many parameter java, just to see what breaks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276922 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b6da0f3f12
1. some factoring out of the timestamp checks for even more reuse. That way the granularity logic can all go in one place.
2. a refactoring of close() to ignore exceptions. I made this static because I want to use it everywhere we close things in a finally clause. NB, note that all four methods would all be unified if the writer/reader/instream/outstream classes had a base class "Closeable" with method void close().
No, I have not refactored everything to use these yet.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276747 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
642befb440
Javadoc syntax error corrections
PR: 28998
Obtained from: Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276466 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
122c6ddd9e
A new uptodate test that includes granularity. the
intent is to move all date tests to this single place, to eliminate inconsistencies.
The only place I use it is signjar, which, by virtue of the fact there is no signjar test, means I know it wont break the tests.
Also, cleaned up the reflection hacks for 1.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276381 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d8657e9108
One not too much
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276375 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
3988c2b07f
move to the Java1.2 implementation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276358 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
32276de419
Check if character is in range for special array
PR: 26642
Obtained from: Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276008 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
5086d93694
<touch> to handle filelists. Forced me to add more tests for new and existing touch code, and in the process note that the granularity for unix filesystems is not 0 but 1000 milliseconds. oops.
PR: 23526
Submitted by: gudnabrsam@yahoo.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275869 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
6cd4baf0a8
Check if parent file is not null before using it
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275649 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
b3ddeeaa0d
comment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275554 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
655ad8f525
improved OpenVMS support, submitted by Knut Wannheden <knut dot wannheden at paranor dot ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275346 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
962a59d64f
Style
Submitted by: Larry Shatzer (larry dot shatzer at spirent dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275272 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
6f50296c91
factored out the FAT granularity constant into FileUtils, though I am sure it is used in many other places.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275189 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
3396e7c321
Remove direct call to deprecated project, location, tasktype Task field,
replaced by an accessor way into tasks.
Remove too some unused variable declaration and some unused imports.
PR: 22515
Submitted by: Emmanuel Feller ( Emmanuel dot Feller at free dot fr)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275133 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
149ce34431
Refactor: move LineTokenizer out of TokenFilter
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274905 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
d7b9ddf84d
there was still a little bone :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274888 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
e955e3d961
removeLeadingPath doesn't work if leading is a filesystem root - found by Antoine
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274887 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
24eb5693d6
Coding conventions
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274859 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
02f7f5bc1e
Make toURI and fromURI work correctly on Netware.
Submitted by: Jeff Tulley <JTULLEY at novell dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274827 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
f3939727d9
Refactor some code into the Launcher.
Update ant script to use new launcher.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274793 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
f463bd2cab
More cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274774 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
4613fe2ba9
Remove double-check pattern.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274767 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
4ae9767592
Make filtersets preserve line endings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274720 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
7f18b8f611
Make fixcrlf work even with /tmp on a separate filesystem
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274712 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
b4cde9dabb
Use java.io.tmpdir as location for temporary files
in FileUtils#createTempFile (when the directory parameter is null)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274706 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
b3e94490f5
removeLeadingPath didn't work as expected when trying to remove a path
from itself.
PR: 19979
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274596 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
e596d350ae
filter readers modify lineendings.
PR: 18476
Submitted by: peter.reilly@corvil.com (peter reilly)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274499 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c84425e271
Add outputencoding attribute to <copy> and friends.
PR: 18217
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274328 13f79535-47bb-0310-9956-ffa450edef68
23 years ago