Stefan Bodewig
c8e91147e3
properly set CodeSource when loading classes. PR 20174
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796702 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
26f846b838
allow access to parent. PR 35436
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796649 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
8ebe808f72
override getResources in a new AntClassLoader subclass that will be used consistently when Ant is running on Java5+. PR 46752
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796647 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e04ff4d52c
make all classes use the same AntClassLoader constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796614 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
430b0251e5
what started as an innocent minor performance improvement of antClassLoader lead to an infinite recursion and thus to a testcase for VectorSet.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@699377 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
59f1d67945
don't add the same file more than once. PR 45848.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@698947 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Jesse N. Glick
a3e9c2a63d
Better error reporting in case a corrupt ZIP file is on the classpath.
Formerly would show a ZipException stack trace but give no indication of which file was responsible.
(Of course it would be better if ZipFile.open itself included the file path in the detail message!)
Cf.: http://www.netbeans.org/nonav/issues/show_bug.cgi?id=142733
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@683997 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
4e74021ca2
checkstyle: 100char limit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557215 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
575c81fdc8
checkstyle - ws and tab
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557213 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
a840de1ce8
fmt/refac
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557013 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
b01075559f
-use FileUtils.close
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@545087 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
19 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
19 years ago
Peter Reilly
221b05d059
allow path components to be directly added to AntClassLoader
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490081 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0aa2b2528f
some checkstyle changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@469717 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b10bf232ba
another go at bugzilla 38747, isolate resources
get the baseloader for resources in isolate mode
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453032 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
da045acc91
revert 38747: resource isolation, should fix one of gumps issues - look at other later
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450614 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
f1415bcf04
revert Bugzilla: 35436, getResources is final in java 1.4
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@440332 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0f55b6b9d6
Bugzilla 38747: isolate resources in antclassloader when requested
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@440199 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
1fe0291e09
fix failing unit test by fixing moving getResources code from findResource to getResiources()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439868 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
445abf598a
opps: made setParent private by accident
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439802 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
56e61f039f
Set the parent of the antClassLoader correctly: bugzilla 35436
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439801 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
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
Jesse N. Glick
9af46a2ca0
#38799 : <junit> task should work so long as junit.jar
present in <classpath> even if not among Ant libs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@381467 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
176d949191
Removing unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@357509 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
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
54b56c89e0
make bootstrap on JDK 1.2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@348558 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
44cf7f076c
solve problem refering jars specfied by Class-Path attribute in manifest of a ant task jar file, when this ant task jar file is located in a directory with space. Bugzilla Report 37085.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@327061 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jesse N. Glick
67c71a89e9
#27285 : simplify AntClassLoader by removing reflection hacks
(and separate ACL2) only needed for JDK 1.1 support.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278074 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
3c129d0e9a
add cast to allow java1.5 to compile without whining
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277918 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
823aadf5aa
Removed superfluous cast
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277909 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
34e8714938
deal with javac1.5 whinings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277810 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
6005d26265
Removed unecessary cast,
Removed caught Throwable while Exception was expected
Documented empty blocks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277770 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
Peter Reilly
569f22aceb
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277105 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
29b76e0c01
These are all patches to stop java1.5 whining about varargs.
In java.15 some of the reflection APIs are overloaded to be
usable via varargs, so untyped things cause confusion. These
are everywhere that bootstrap complains.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277008 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Antoine Levy-Lambert
8fdf272627
Impossible to use implicit classpath for <taskdef> when Ant core loader != Java application loader and Path.systemClassPath taken from ${java.class.path}
PR: 30161
Submitted by: Jesse Glick (jglick at netbeans dot org)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276721 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
a22c8c09c8
Follow Conor's and Jose Alberto's advice - improved fix for PR 8689
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276622 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
55c133cecd
Generate proper file URLs in AntClassLoader#getResource, PR: 28060
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276354 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
Stefan Bodewig
b25ce96904
Some typo fixes
well formed != valid
better debug support in ApacheCatalogResolver
PRs: 24059, 24060, 24069, 24070, 24074
Submitted by: Jesse Glick <jglick at netbeans dot org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275565 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
3de1a4577e
fix typeofs
Patch from Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275207 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
5d4f445f37
Rename some enums ...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275058 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
5a2fc04fee
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274954 13f79535-47bb-0310-9956-ffa450edef68
22 years ago