Matthew Jason Benson
37d079946a
antunitize length test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536552 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
dffefa0a03
add importable file to give any antunit file a base for running itself
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536549 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
512567d2f6
refactorings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536548 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
08f27b19f2
if either resource to be compared has an unknown size, we must compare content
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536536 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
b4101f5424
constructor with passed-in ProjectComponent and default loglevel
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536358 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
e9a41d2a09
guard against empty name oobe
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536356 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
6b652facf6
add a new constructor for programmatic construction of a StringResource with property substitution (will support fixing broken Concat tests)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536355 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
8b667be264
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536353 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
5486fb50f0
ws/doc/unnecessary else
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536352 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
9154805783
add assertion message
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536221 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
b29f5e1567
Bugzilla 42334: System properties may be none string objects
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@535312 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Stefan Bodewig
7dbe072645
whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@534434 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Stefan Bodewig
382f81dea5
Avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@534433 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
6d0fd1ee4c
fix the header. Sometimes the IDE get's over enthusiatic, and unless I add some location-awareness plugin, it assumes my laptop is always doing work code.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533567 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
758a6bcb93
Pr: 42259 inspired on optimization suggested by Tom Brus
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533498 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
95ce6ff3dc
-use FileUtils.close
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533464 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
88e48dbdd3
little bit of code review
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533214 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
4fbce1074a
ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533122 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
b6f25e8e14
Bug #41597 ; scriptdef should be resource-enabled.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533121 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
0fdff180f1
bug 42276: support nested text
bug 42277: String resources can have properties double expanded
Nested text is allowed, and property expansion is done at the tail end of a write, not on every read.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533115 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
77b327d069
not files, resources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533113 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
c089057ee8
Bind string resources to projects. There's no bugrep with this, but it is good practise
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533112 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
bcf84f5f14
Bug 42275: ant doesnt run from a network share, because of an error when trying to work out where we loaded from.
1. this exception is still raised, but caught and causes ant to skip setting ant.lib.
2. we now have a test class for Locator
3. I've split out the java1.3 support and made it public, so we can test it separately.
One of the tests is failing, showing the problem is still there. We need to decide what to do about it (ignore, switch to java1.3 code...)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533082 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
991ce3f231
-fix for bug #42227
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533024 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
36b05881a3
bug ID#42231, a static method is package scoped instead of public
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@532325 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
db412627e1
Bug 41940 : works for JUnit's own runners, but not for Ant's. Ideas?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@532247 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
f6516eea38
whitespace only
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531627 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
82545c7118
pr 41766 permissions for AllPermission not working correctly.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531625 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
51ef806814
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531604 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
c87de2b75e
make the name of application.xml a constant, use locale-sensitive case conversion
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531603 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
450a402c32
BuildExceptions get caught and rethrown
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531599 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
051ba1279d
pr 42179: Delete cannot handle (NPE) fileset without file or directory specified.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531575 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
ee2779b5b9
Very delicate changes to Introspection helper
1. warnings in the javadocs about how sensitive the file is
2. factoring out of the code to handle InvocationTargetExeptions
3. some more javadocs
4. some IDE-hinted warnings about static classes, access modifiers on abstract/private class constructors
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531486 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
db4fbb723e
Fix the version logic to work without having hard coded ant versions in there.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531485 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
07b3f5e912
Print out the name of the attribute and its value when there is a conversion error
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531483 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
0bb00fe4f6
Test didnt work on Unix. Assume that ${user.home} is in a partition with some (but finite) space. If anyone runs these tests on a disk array with >1 petabyte, they will still fail.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531472 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
d9fef33464
correct the comment to match the code -we only check for string args-
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531448 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
1d6d563a87
don't drop the underlying cause when thing can't be read
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531427 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
a8b79fd315
-fix problem with windows file uris (stupid "Documents and Settings" bloody folder)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531340 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
0a51af299e
Beautify error message.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@530818 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
c7f7d99c3d
Add tests. Document the regexp for attribute name.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@530664 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
b8bdf2149a
Check every single character instead of trying using regexp's.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@530662 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
4462d80608
Validate the name of manifest attributes. ATM only whitespaces are catched, need some help with the regexp version.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@530374 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Stefan Bodewig
781433259a
Java 6's javac doesn't understand -source 1.1 either (found by Gump and the log4j build < http://gump.zones.apache.org/gump/test/logging-log4j-12/logging-log4j-12/gump_work/build_logging-log4j-12_logging-log4j-12.html >)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@529855 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
f1e9c972fb
bugzilla: 42142 add name of missing archive for zipfileset
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@529630 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
7fe632db24
static inner should fix 1.2 probs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@528047 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
fae1165196
add test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@528046 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
41bd95f7ea
adding javadocs. It seems to me that this code could be replaced by deleteChars.indexOf(c)>=0, delegating the loop to the string class itself
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@527130 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
ef5fa00d23
Optimization of the change commited yesterday.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526722 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
a109f4fc4f
unused imports / serialverUID
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526568 13f79535-47bb-0310-9956-ffa450edef68
18 years ago