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
21 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
21 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
21 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
21 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
22 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
22 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
Stefan Bodewig
4bdc90bd5e
misleading @since tag
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274249 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
f984f9775a
This is supposed to fix bug 17871.
The patch looks innocent enough for me to merge it into the 1.5 branch
right away, but I cannot really verify it fixes the bug because of my
persistent (and self-imposed) lack of a Windows system.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274248 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
24436a1c92
Remove email address from sources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274203 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1dc8a07905
Remove Jakarta Project from license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8ca6f54b9a
Fix some JDK 1.1 issues - only culprit remaining is Diagnostics with
its class locating code.
Learned by failing <xmlvalidate> tests that FileUtils.getFileURL
wouldn't append slashes where it should (because normalize strips
them).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273824 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
58f3cad4fb
Make sure random component of names is always purely numeric - no negative signs
PR: 15399
Submitted by: Rob Shafer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273673 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
fb2b9616dc
Rumors say that absolute file: URLs on Windows need a third slash.
Get rid of some code duplication.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273645 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
3c2bbbcda3
Real tired of seeing email address being abused.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273610 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
6b5c48061a
Don't stop with encoding # when creating URIs for the XML parser.
Code heavily inspired by Xerces-J code. This version is extremely
simplified as it doesn't deal with non-ASCII characters for now.
PR: 13679
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273552 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
acb441fdfa
fix issues reported by PMD
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273480 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
6bd8d6e938
Merge changes made to 1.5 Beta2.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272967 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
f40cbc60b3
Merge over a bug-fix needed to get jakarta-tomcat built by Gump.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272855 13f79535-47bb-0310-9956-ffa450edef68
23 years ago