Arturo Bernal
fbb42627ad
Use an empty array in favor of pre-sized array.
4 years ago
twogee
ae0c87be2b
Class.newInstance() is deprecated in Java 9+
5 years ago
jkf
3a4980e3c4
updated reference to license from http to https using
find . -type f -exec sed -i "s/http:\/\/www.apache.org\/licenses\/LICENSE-2.0/https:\/\/www.apache.org\/licenses\/LICENSE-2.0/" {} \;
7 years ago
Gintas Grigelionis
095aaaef75
Chop extraneous parentheses
8 years ago
Gintas Grigelionis
3af9a7305a
Tidy up the code
8 years ago
Gintas Grigelionis
1c80d507f4
Use foreach loops
8 years ago
Gintas Grigelionis
7f1e7628b3
Checkstyle: whitespace, line continuation and modifier idiosyncrasies
8 years ago
Gintas Grigelionis
6656db28bb
Let’s use doclint
8 years ago
Matt Benson
b7d1e9bde4
java 5-8
9 years ago
Stefan Bodewig
4cecc03af6
there simply is no better logger around
9 years ago
Stefan Bodewig
bcc245e991
fields don't need to be static
9 years ago
Stefan Bodewig
df33426bf2
whitespace
11 years ago
Jan Matèrne
1b76f1b6da
checkstyle
11 years ago
Jan Matèrne
bf6026a147
organize imports
11 years ago
Jan Matèrne
71ae871274
checkstyle
11 years ago
Nicolas Lalevee
97d423a273
Don't mess with classloading of the launcher
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1376031 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Nicolas Lalevee
055f4eb650
Make Locator.fileToURL and replace its use by FileUtils.getFileUtils().getFileURL()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1376019 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Matthew Jason Benson
da5f3bfd25
java 5, continued
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1375571 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jesse N. Glick
cc47289e1e
#48633 : pass correct parent to loader.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1233420 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jan Materne
4d63751039
Clarification + typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@698496 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Steve Loughran
6e72d89be8
Bug 42275 running ant off a network share can cause Ant to fail
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@631263 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
a8b485c525
refactor Launcher#run to reduce its line count
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@485296 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
Antoine Levy-Lambert
105b2252ce
Launcher should not depend upon parent package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466643 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
Steve Loughran
7bf41207e0
change error code of the launcher. We could change it from 2, its now in a constant where we can tune it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@433793 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
91ee1ced95
This is a little bit of fun; something asked for on the mail list. You can now use -main to specify a new entry point for ant, so if you override ant.Main with a subclass, you can switch to that.
It has a side effect of making ant a generic launcher of things; anything that implements AntMain.startAnt.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@421588 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
bce9fe013a
Bugzilla Report: 39295
Reporter: Waldek Herka
extract the fileToURL code
use it for tools jar as well as the other paths
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396563 13f79535-47bb-0310-9956-ffa450edef68
20 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
Peter Reilly
27c1d843ca
change name of Locator.encodeUri to Locator.encodeURI
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@395304 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
22891078b1
compete toUri code for launcher
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@395248 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Kevin Jackson
d9ef771122
revert back to while loop after discussion over prior change
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@394596 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Kevin Jackson
e0b24ddfd6
slight tweak while -> for (reduce scope of variable to just loop)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@393996 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
b73a6c6b82
Improved use of MagicNames for ant internal properties
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@388834 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Dominique Devienne
739c2b6278
Can't use {@value} for computed property, only for constants. Fix up indentation and docs a bit. --DD
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@280652 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
c5c26543a4
bug #36171 ; -noclasspath crashes ant if no system classpath is set.
submitted by Benjamin Burgess
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278540 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
b0078a5471
just making some strings constants, adding javadocs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278534 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
abf0a93840
remove reflective toArray calls
PR: 36092
Obtained from: Dave Brosius
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278510 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
b32f4587da
PR: 35246
As suggested by Darin Swanson.
(use USER_LIBDIR, and use File.separatorChar in there)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278406 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
d50c8c978b
If launcher gets an InstantiationException when using the
default constructor of ant, change the error message
to say that this is an incompatible version of ant main
and attempt to print out the location of this class.
Some jar files have old version of ant within them
- (weblogic in particular) so this should help in
showing if this is the case.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278310 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b0003afe36
complete rework of reporting when we cant instantiate an element
old: generic error message
new: step by step diagnostics with instructions.
The code treats ant tasks and ant optional tasks specially, based on package names.
Also: moved some constants into the appropriate places.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277750 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
8c5847195e
whitespace + javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277569 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
9e260d7fa3
diagnostics should list lib dir too.
Refactored the constants in the launcher for better sharing.
I worry about the hard coded file separator there (/),
so replaced in the code, but left the constant in,
in case someone was using it.
Updated WHATSNEW. Added which.jar to the fetchables.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277559 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
12d182f4cc
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277460 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
0f9572806f
doc explanation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277152 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
d84de6b846
-noclasspath option
Added -noclasspath option to allow running ant WITHOUT using CLASSPATH env
variable. Modified ant.bat to do this so that %CLASSPATH% is not looked at.
Modified build.sh and build.bat to use the option.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276912 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
c2a7acd9b1
javadoc fixup -only because IntelliJ is so fussy.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276908 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
acd0bcd1e0
Add a new option -nouserlib to the ant command.
This allows running ant without loading the jars from ${user.home}/.ant/lib.
This is useful for building ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276880 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
e9930da203
InstantiationException.getCause() not in jdk 1.3.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276833 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
81531e4ccc
Root cause of InstantiationException may be null in class.newInstance()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276829 13f79535-47bb-0310-9956-ffa450edef68
21 years ago