Matthew Jason Benson
3628209a35
problems 49079, 48961
Address indexOf inefficiency in PropertyHelper default propertyexpander implementation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@932588 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Matthew Jason Benson
16d4f876a8
problems 49079, 48961
Address indexOf inefficiency in PropertyHelper embedded skip-double-dollar propertyexpander
implementation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@932456 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
c767541c7d
As Jesse points out, equalsIgnoreCase is not locale-sensitive
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@911324 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
58f0bb04db
if user input is compared to fixed strings in a case insensitive manner we should use the default locale. Use Locale.ENGLISH consistently
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@910955 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
8a848413c4
better deal with null projects
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821836 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
df102bb3a3
Move "don't check conditions if the attribute hasn't been set at all" logic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821675 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
c6b7ba94ce
Make target's if/unless treat true/false strings as booleans
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@820881 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e25dc381ca
implement a new ${ant.refid:} syntax to expand project references as properties
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@816153 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e2c45d16da
method level Javadocs for PropertyHelper
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@811318 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
12d6181057
Improve PropertyHelper documentation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@811283 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
b312b88638
wrong classname
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@809955 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
b8a829b11b
make allowNativeBasedir work even when nested, PR 45711. fixes PR 30569 at the same time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@690251 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Scokart Gilles
4c4ad3483d
Thread safety fix (list of delegates were modified and copied concurrently without common lock). The hashtable is thread safe and not published outside the class, so no need to copy it (synchronize non atomic modification is enought). However, the list contained in the delegates hashtable are published and should thus be copied. I put the copy in the add method so that the getDelegates doesn't need to be synchronized.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@687325 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
979cf1d7ca
whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@687077 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Scokart Gilles
1c7138c4df
fix very unlikely thread safety issue (may occur if PropertyHelperTask is used in a parallel, which would be a strange use case)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@687070 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
65b09851fd
scale back synchronization
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@668686 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
902b72ec83
Some cleanups of property expansion
* extact expand property from PropertyExpander
* extact resolve property map from Property task
* remove use of ThreadLocal from Property task
* remove need of cloning of PropertyHelper when resolving properties
in a map.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578769 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
735315c1ea
allow a propertyevalulator to signal that it 'owns' the property, but the property is not set
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568511 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
68d4cfaac3
add in property delegate to set properties
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@567752 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
8967c1546c
add some helper methods on PropertyHelper to access the get/get methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@567747 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
af8481f32b
opps
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565113 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
073153dd37
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565104 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
9d2aa2ba1d
fix interface detection; I knew this. :(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@559638 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
73ebd04c68
refine clone()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557045 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
339e72629f
Cloneable; update Delegate order on re-add
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557025 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
1e599c6651
BZ 42736: PropertyHelper API changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@554394 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
5850df1c86
fmting
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@549703 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
4212c03c3d
fmting, add getProject()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@547411 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
15789b09bb
Bugzilla: 41594 copy setnewproperty sanity protection to setproperty
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@506547 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
bf283617db
Synchonization issues in PropertyHelper. Bugzilla 41353.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@495340 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
290108eb35
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@476582 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
40b8196df0
Perforamce:
do not bother to check if need to expand for
strings that do not have $
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448379 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
Stefan Bodewig
1d3df84f02
2006
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@405626 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
6747349936
Moving some magic names to a single file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@405523 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
4da759f146
bug# 31972
PropertyHelper data members should be protected, not private
-added protected accessors to the live data, so that we have more of a choke point on their use/abuse.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@348764 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
cfdc7c5f3e
date
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277366 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
781a2ed11e
revert local property patch until memory leakage problem is fixed
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277365 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
b2b649d12d
Attempt to cut down on memory usage of local properties
for threads that do not use properties.
This is a quick fix and not tested too much.
The whole thing may be scrapped...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277364 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
d0a27f1de9
2005
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277358 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
540da9c081
remove a printf
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277356 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
7517bc7058
**** EXPERMINTAL ************
add in local properties
these can be activated by <localproperty/> nested element to macrodef
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277355 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
8e9a25e46f
For non-debug (verbose) log messages, enclose property names in double quotes
for clarity. Fix cases where "property name" is logged as '${property name}'
as that notation more appropriately refers to the property's value.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277212 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
f16558e639
use copy constructor Simplified copying of Hashtables in propertyhelper.java
PR: 30163
Obtained from: Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276852 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
be8d99f40e
javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276817 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
5ee9f7e6b5
-breakiterator fixes by Jack Woehr
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276313 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