Gintas Grigelionis
30f52135af
Use null-or-empty pattern
8 years ago
Gintas Grigelionis
845c2c5b39
Avoid line.separator
8 years ago
Gintas Grigelionis
fe29fce36e
Java 8: computeIfAbsent/withInitial
8 years ago
Gintas Grigelionis
22b69b9273
Squash catch
8 years ago
Gintas Grigelionis
3f90aeba03
Use diamonds
8 years ago
Gintas Grigelionis
95495d57aa
Remove extraneous casts and (un)boxing, tersify logic
8 years ago
reudismam
782ec74638
Use the isEmpty method instead of comparing the value of size() to 0.
This closes #61 pull request at github/apache/ant repo
8 years ago
Gintas Grigelionis
6656db28bb
Let’s use doclint
8 years ago
Stefan Bodewig
b2b058dcf7
Merge branch '1.9.x'
closes #42 closes #43
8 years ago
Kui LIU
c141ef4009
Fix the problem of using '+=' operator to concatenate strings a in a loop.
The method is building a String using concatenation in a loop.
In each iteration, the String is converted to a StringBuilder, appended to, and converted back to a String.
This can lead to a cost quadratic in the number of iterations, as the growing string is recopied in each iteration.
Better performance can be obtained by using a StringBuilder explicitly.
http://findbugs.sourceforge.net/bugDescriptions.html#SBSC_USE_STRINGBUFFER_CONCATENATION
8 years ago
Matt Benson
b7d1e9bde4
java 5-8
9 years ago
Stefan Bodewig
af74d1f6b8
reduce GC pressure by replacing File(In|Out)putStream
9 years ago
Stefan Bodewig
0715dda317
use better suited exceptions
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
7ffc0970d5
false positives for exceptions thrown from finally
9 years ago
Stefan Bodewig
ac1b7652dd
Sonar false positives for resource leaks
9 years ago
Stefan Bodewig
494e865553
make ant.project.invoked-targets available for top-level tasks
https://bz.apache.org/bugzilla/show_bug.cgi?id=58908
10 years ago
Vladislav Bauer
f15c3de41b
Prevent string concatenations as argument to "StringBuffer.append()"
10 years ago
Ville Skyttä
47a3b5144e
PR 56747 Document which options exit in help output, submitted by Ville Skyttä
11 years ago
Stefan Bodewig
df33426bf2
whitespace
11 years ago
Jan Matèrne
13f6d98c9d
make it compile under Java5 (1.5.0_22-b03)
11 years ago
Jan Matèrne
1b76f1b6da
checkstyle
11 years ago
Jan Matèrne
bf6026a147
organize imports
11 years ago
Stefan Bodewig
834d0d1201
configurable User-Agent for <get>. PR 55489. Submitted by André-John Mas
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1548232 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jesse N. Glick
13000c1a46
sconnolly advises using TODO rather than XXX in comments.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1504315 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Nicolas Lalevee
eb08ea9fd0
Add the possibility to register a custom command line argument processor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1385262 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
Matthew Jason Benson
3d706ab818
java 5 updates
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1375137 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Nicolas Lalevee
38688e7583
Add a log mode which logs nothing but ant task output and build failures; useful for using ant output in scripts, like for cacti for instance
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1373334 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jesse N. Glick
ceaf7b9c69
@Override not supported when implementing interface methods in JDK 5 javac.
(Spec compliance bug fixed in JDK 6 even for -source 5.)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1345337 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jacobus Martinus Kruithof
1d63aeddfa
Bug 51792 - Unable to override system properties with 1.8.2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1343304 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jesse N. Glick
589af888eb
-f/-file/-buildfile accepts a directory containing build.xml.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1204655 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Stefan Bodewig
5f20b99140
microoptimizations. PR 50716
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1066963 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Nicolas Lalevee
db666cd282
remove useless import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1035336 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
568f81e947
trademark
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1034687 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Nicolas Lalevee
bdf0cfed42
fix my english
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1033072 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Nicolas Lalevee
3849918afc
If there is -d, debug mode, make the -p, project help, print the dependencies of the targets
This will help debugging extension points
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1032931 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
f67b8649e8
reinstate prefix handling of property task at the expense of even more state in a thread-unfriendly class and with a new attribute on two tasks to make everybody happy. PR 49373.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@959019 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
3f4cb68def
resolve properties defined via -propertyfile against each other. PR 18732
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@954939 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
af5b94e9d9
drop version check now that ant-nodeps.jar has been removed
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@948667 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
42f31b452b
Fix import's file attribute if file is imported from URL, test it, document it. Note to self - url resource needs a way to create relative urls. Not to self - the duplication in the manual pages for import and include must stop.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@836334 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Nicolas Lalevee
df121a6cf5
PR 47830 : implementation of the ProjectHelperRepository to make Ant able to choose a ProjectHelper, and some doc about it
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819284 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
99529fd6c5
At least try to log the real reason of an error. PR 26086
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@708584 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
94da71c764
change command line parser so that version is only printed once - and version as well as diagnostics methods know the current loglevel. The former is PR 45695, the later useful for 45692.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@689477 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
7ea420955e
normalize build file name. In essence, turn relative file names given on the command line into absolute ones. Submitted by: Justin Vallon. PR: 44323
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@633480 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
ab98957ff3
-typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@541546 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
d5836ac061
Changes after static code analysis.
Code totally equivalent
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526545 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
1af32c7d51
project cannot be null, few lines bewore and next line would throw NPE.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526485 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
71812c8dc2
bug id 41904; -autoproxy broken.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@520382 13f79535-47bb-0310-9956-ffa450edef68
19 years ago