Stephane Bailliez
a05d1f1219
First attempt at optimizing the zip code to have decent performance
The performance problem was mainly due to the entry insertion in
the hashtable where all hash code were equals in the hashtable.
I also removed a lot of unecessary Zip(Long|Short) object creation by
adding static methods and suppressed a hashtable.
More can be done, but I tried not to break the interface and have as less code
as possible. The testcase attached in the bug report show that it is now 15% slower than Sun native code and 20% faster than Jazz libs.
Now watch for Gump...
PR: 31930
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277122 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
677491b927
use the FileUtils#close method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277121 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
9c8768b75b
checkstyle changes
Obtained from: Kev Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277119 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
e8e8e10d10
Try to speed up DirectoryScanner by using hash lookups instead of
linear searches and pattern matching on non-wildcard patterns.
Suggested by: Dominique Devienne
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277116 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
beba702180
Trivial Javadoc formatting edits.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277113 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
834ae12082
Small Javadoc change.
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277112 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
f2cdd9715f
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277110 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
b01e612b2b
opps
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277109 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
88b73e8d7f
Library flattens files; make class static in xmlvalidate
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277108 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
bc09dd9275
Library flattens files
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277107 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
Peter Reilly
f913afd3ad
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277103 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
b3c6270b7c
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277102 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
260563c196
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277100 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a3c195e588
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277098 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
94ae79c224
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277096 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
95b365dffc
sylecheck and implement DynamicElementNS instead of DynamicConfiguratorNS
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277095 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
99055de433
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277094 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
87a5510489
opps
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277092 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
5766a65012
use absolute path instread of canonical path in subant
PR: 30438
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277091 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a53a52b366
add unit test for signedslector
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277090 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a0a51d69b2
use isfileselected in test instead of the pathconvert hack
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277089 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
4d34b03883
added isfileselected test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277088 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
515949fd31
Please don't modify my working copy during tests, otherwise I'm going to commit changed files by accident
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277086 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
4ea37cc30e
changed error message to explain what was missing.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277082 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
c55c4a0106
make the preserveLastModified field private
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277080 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
6a3d5030bb
add new preservelastmodified attribute to signjar
PR: 30987
Obtained from: Ignacio Coloma
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277079 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
dea3b5a66a
Tuning
1-if you dont specify an archive name, use that of the project
2-its OK to specify suffix=""
3-you do need the "." in the suffix; this was not needed.
(3) will break anything which set the suffix. I assumed the user
base was small enough to avoid a compatibility hack.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277078 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
9ba8549bfd
exclude directories for signed selection
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277074 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
8fe43107a6
Some more whitespace fixes by Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277073 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
395f3939fc
checkstyle changes
Obtained from: Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277070 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
ea0d1cd08b
some simple tests for the issigned condition
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277069 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
5151c0c235
xdoclet complains it is illegal to have comments at the end.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277068 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
01cdbea8d0
Fix class name, make tests pass
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277067 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
0adae3872f
* Use <issigned> from <signjar>
* Refactor <issigned> by moving the test into a static method so it is
easier to use from a different task.
* Avoid IndexOutOfBoundsException if name is shorter than eight characters.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277066 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
81d29e52f1
remove issigned task, make it a condition only
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277065 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
070278beb2
Added isSigned condition and task and signedselector selector
PR: 32126
Obtained from: Tarlika Elisabeth Schmitz
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277064 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
7cd0fc4f66
In use, you need to know why your build file has paused for so long.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277056 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
f4c6f96bae
1. Move from optional.repository to tasks.repository
2. rename <libraries>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277054 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
f630ef56ed
Updated <getlibraries> code, plus new classes. After this
checkin I'm about to move and rename some of the existing stuff.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277053 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
4d831bb7cb
patch to stop java1.5 whining about character encodings.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277052 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
1628b5d839
Some Gump based Kaffe debugging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277050 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
0e1abe82d1
Set the location for the default target (the location will be the project tag)
PR: 32267
Reported by: Yves Martin
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277048 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
7e5837b080
Change <apply>'s "overwrite" attribute name to "force". Also commit missing
Java changes. Oops.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277044 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
2f1e0c35af
Add overwrite attribute to <apply>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277043 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
81e5eea8b4
Try to provide more information on an exception occuring in Kaffe
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277039 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
bcc7e3dff3
More Jikes warnings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277036 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
7ffe5725b3
fix self-comparision
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277034 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
866b754aad
Junit task -- display suite first
PR: 31962
Obtained from: Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277033 13f79535-47bb-0310-9956-ffa450edef68
21 years ago