Stefan Bodewig
fb2b9616dc
Rumors say that absolute file: URLs on Windows need a third slash.
Get rid of some code duplication.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273645 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
ef9539bad9
remove catalogfiles from xmlcatalog
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273638 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
3255fa8ff4
Add support for Unix permissions to <zip> and friends, doing it the
Info-Zip way.
PR: 6492
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273629 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
063e02e940
exposing the internal class for testing
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273624 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
fbe839d144
Roll back. I'll do more testing and try again...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273623 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
a13fd8fd14
Another small improvement - if the 'coreLoader' is set, try
it before Class.forName().
AFAIK nobody sets it right now. The 'only' system property is
checked.
I'll wait for the gump runs to see if anything breaks and revert
the "lazy task creation" if it does.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273622 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
b59acbe7ba
Few extra checks and small improvements to the delayed tasks
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273621 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
df59903f13
2 small (?) changes.
References are stored in a special hashtable that automatically
configures UnknownElements. ( this will probably be a noop with
the current execution model most of the times - since ProjectHelper
already does that ).
Also task and type creation is delayed and not all tasks are
constructed. That should remove few seconds from the startup time,
and will simplify a lot of code that modifies the classpath at
runtime.
Please review - and if you see any problem -1 it. I checked it in
mostly to allow other people to verify the Script with lazy
eval. If there are objections I can turn this into a hook
and move it to [embed].
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273620 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
b03d49c69f
Added a hashtable that allows delayed initialization.
In most build files you don't use _all_ tasks and types -
and it takes few second to process all exceptions due to class not
found ( for optional tasks ). This class will allow tasks to
be created when needed, and will also improve the behavior
when the main class loader is changed.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273619 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
6c7ff01478
getting close to Info-Zip now, will enable it next week
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273617 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
d66c043757
Some prelimnary commit for bug 6492 - I'm still trying to understand how Info-Zip stores the permissions
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273616 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
3c2bbbcda3
Real tired of seeing email address being abused.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273610 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
db9a46b384
The zip task doesn't work correctly if you're using filesetmanifest and update is false - Fix for this problem caused by previous patch.
Submitted by: Brian Deitte <bdeitte@macromedia.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273609 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
972b069add
Actually test the resolver stuff of xmlcatalog
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273605 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
9feeebfbf8
Add download from mirror links
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273604 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c8d9f6406f
Don't append a dot to package roots if there already is one.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273601 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
d4b5f4f17a
make XMLCatalog less verbose
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273600 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
4193003d23
Add <catalogpath> to <xmlcatalog>.
PR: 14978
Submitted by: Jeff Turner <jefft at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273599 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
cdc9a6f724
remove trailing dot
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273596 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
cac0c1cdb8
because I had a pressing need to be find out which parser I was using on java1.4, and new all the code was a cut and paste away
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273595 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
58cee40515
<http>'s errorsbeginat didn't work, Bug 14833
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273585 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
0378839169
<xmlvalidate> ignored the encoding declaration of files it should
validate.
PR: 11279
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273582 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
e2d3dfc0c9
Expand tasks did not behave as expected with PatternSets.
PR: 11100
Submitted by: gudnabrsam@yahoo.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273572 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
dba647572b
Patch that fix memory leaks in SelectorUtils.java
The method matchPatternStart generates memory leaks due to the 2 Vectors: patDirs and strDirs, used to hold tokenizedPaths.
Submitted by: "Francis ANDRE" <francis.andre@e-xmlmedia.fr>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273571 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
90b811d74b
The filesetmanifest attribute of <jar> has been reenabled.
PR: 13296
Submitted by: bdeitte@macromedia.com (Brian Deitte)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273570 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
1dd390137b
Allow start and end tokens to be multiple characters long.
PR: 13939
Submitted by: "Don Brown" <mrdon@twdata.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273569 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
e7474bf8bb
Good-Bye resolver 1.0.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273559 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
ec7017acb2
bug ID 14613: no passdown of webinc and webxml, by toby.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273556 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
98f3237b31
Add drimode attribute for the permissions od directories to <tarfileset>.
PR: 12289
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273555 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
de06c1b597
Don't add newlines in <concat> that haven't been in the files
originally - no matter what encoding.
PR: 12511
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273553 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
6b5c48061a
Don't stop with encoding # when creating URIs for the XML parser.
Code heavily inspired by Xerces-J code. This version is extremely
simplified as it doesn't deal with non-ASCII characters for now.
PR: 13679
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273552 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
092cd9e58f
The cvschangelog task doesn't seem to report changes for the current
calendar day.
The problem lies in the fact that the exec'ed cvs command is in the form:
> cvs log "-d >=2002-11-7"
rather than:
> cvs log -d ">=2002-11-7"
The two commands return different results when changes have been made today!
PR: 14397
Submitted by: Paul Berrevoets <paul at swi.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273550 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
389d6115a7
merge some minor changes from 1.5 branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273547 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
411b9f267d
Throw in a reuseloadedstylesheet attribute for <style> (feel free to
come up with a better name). This provides a workaround for a bug in
Xalan-J - the version that gets distributed with JDK 1.4.1.
PR: 13859
based on a patch submitted by: Jens Elkner <elkner at linofee.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273545 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
87c70578dc
correct attribute name in icontract docs, PR13972
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273543 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
7381c1f077
Switching to Apache BSF
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273541 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
ec3031196a
Print a warning and don't create an output file if there is no input
to <concat>.
PR: 14310
Submitted by: Gus Heck <gus.heck at olin.edu>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273539 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
7361a15e69
forgot the since tags
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273535 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
cb5b4ae2bb
added user/password support in the proxy, though I cant test it myself. Also added removal of http host in cleanup routine.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273530 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
657f089143
Make PMD a bit more happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273527 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
aea9fac4c0
-source is a javadoc option, not one of the standard doclet.
PR: 13747
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273524 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
a7bc732943
Add Date header to MailLogger by reusing code from <mail> task.
PR: 14046
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273522 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b905f0902c
Improve error reporting in <fixcrlf>
PR: 14061
Submitted by: Jesse Glick <jesse.glick at netbeans.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273520 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
abd749ac59
Fix NPE in <concat>.
PR: 14310
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273518 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1967c958ff
Missing pieces from Craeg's patch.
Fix small backwards incompatibility introduced by last commit.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273515 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
51efe539a6
re-enable tests that failed after the first iteration of Craeg's
resolver patch.
Submitted by: Craeg K Strong <cstrong@arielpartners.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273514 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
925f19f6d4
Simplify a few methods by using FileSet#setFile, remove redundant dir
attribute from the three latest task additions.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273512 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
beaeb40c3d
New task <attrib>
Submitted by: Shiraz Kanga <SKanga at ingenuus.com>,
J�r�me Lacoste <jerome.lacoste at smartcardsystem.com>
seventeen months ago 8-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273509 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8f788f7a2c
New tasks <chown> and <chgrp>
PR: 9809
Submitted by: Gus Heck <gus.heck at olin.edu>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273508 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8d84ae5aef
fix misleading message in <replace>.
PR: 14315
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273505 13f79535-47bb-0310-9956-ffa450edef68
23 years ago