Conor MacNeill
8dcbae63e7
Change delete failure checks to use return code rather than separate call
to exists
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267717 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
7dff158a65
Detect situations when files and directories cannot be deleted.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267716 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
0998ef9232
Fixes from Stefan
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267714 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
d42633d63a
Oops - make the new Javadoc work under JDK 1.1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267713 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
689fca4158
Update javadoc task to support multiple link and group options.
Submitted by: Patrick Chanezon <chanezon@netscape.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267712 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
03c8be4a90
reverted unnecessary change to Task.setProject intorduced with the
Touch patch. Expand and Untar use Project.createTask now.
Submitted by: Glenn McAllister <glennm@ca.ibm.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267710 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
0619426c2b
Fixed typo in comment.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267709 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
1f4fe213e2
New task Touch. Expand now also retains the time from the Zipfile.
Touch works somewhat like the Unix touch(1) command. It changes the
modification time of files and maybe creates a new file if the
requested one doesn't exist.
In JDK 1.1 only the creation of new files will work, all other cases
generate warning messages.
Expand and Untar reuse Touch to set the modification times of the
expanded files from the information inside the archive.
I had to make Task.setProject public to ease reuse.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267708 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
bc4dee0c5c
Store the modification time of the files inside the ZIP file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267706 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6d0c86e082
Added forceoverwrite attribute to copydir.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267705 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
017c6059a3
Added -version switch.
Suggested by: Peter Donald <donaldp@mad.scientist.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267704 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
3dd76dec2e
Add includesfile and excludesfile attributes to MatchingTask.
This adds the ability to keep the patterns for inclusion/exclusion
separate from the buildfile - increasing the readability in some
difficult cases.
The code is based on the patch submitted by Aaron on 2000/05/24 with
some modifications.
Submitted by: Aaron Knauf <AaronK@geniesystems.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267703 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
4ec8012f43
Propagate a caught Exception inside the thrown BuildException.
Suggested by: Julien Couvreur <jcouvreur@redcart.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267702 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
3d1eba05e4
Deprecate the implicit copying of support files by Javac.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267700 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
003b013e23
Make <replace> a matching task
This is based on the concept in the patch submitted by Charles Tewksbury
although the implementation details are a little different.
Submitted by: Charles Tewksbury <tewks@adhesive.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267699 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
948ce9bca7
Remove System.exit calls.
These have been replaced by propagating BuildExceptions. This will allow ant
to be more easily used from GUIs, IDEs, etc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267698 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
b8678d9774
Fix handling of $$ in properties
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267697 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
4d68f55377
Fix typo in netrexxc optional task
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267696 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
965dcd92c7
Update NetRexxC task to new build events system
PR:
Obtained from:
Submitted by: Matt Foemmel <mpfoemme@ThoughtWorks.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267695 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
1ba5087df4
Add BuildEvents to Ant
The basic idea is to keep the core build engine "clean" and free of any
presentation logic, and to make it easier to extend Ant with other features
without cluttering up the core. To do this, I've defined a BuildListener
interface and added an "addBuildListener" method to Project that can be
used to register listener objects. Listeners could be implemented to
generate reports, send out emails when the build is complete, create a
bill of materials, etc...
The only new functionality visible to the end-user is a "-listener" option
on the command line that will let you specify the name of a class. An
instance of this class will be added as a listener to the project. I've
included a listener that will generate an XML log file, which you can use
by typing the command below.
build -listener org.apache.tools.ant.XmlLogger
PR:
Obtained from:
Submitted by: Matt Foemmel <mpfoemme@ThoughtWorks.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267694 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
d507d57df1
Fine tune startup (handle liaison being present but processor not in
classpath)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267692 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
08efe2fdd4
Now, commit something that works...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267691 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
32495c7f82
Add an XSLT (style) task. Based on code from Assaf Arkin.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267690 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c7f9557b5f
Added date attribute to CVS task.
Submitted by: Steven_Yelton@adware.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267689 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2b68afe917
Several contributed documentation updates. New task patch.
Submitted by: Gary Murphy <jakarta@hilbertinc.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267688 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e4181e32ab
Improved error messages if srcdir doesn't exist.
Submitted by: Peter Nordlund <peter.nordlund@lentus.se>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267687 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
a3288a923a
Fix typo. Thanks Conor!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267685 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
39d7abbb4d
Add a test which will compile and load a task definition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267683 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
4f8bb2ee77
Better reporting of errors when JAXP not present.
Catch NoClassDefFoundError as well as NullPointerException and
emit a more meaningful error message.
Change BuildException to accept Errors as well as Exceptions
as cause.
Submitted by: Stefan Bodewig <bodewig@bost.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267682 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
32647e2835
Extend CVS Task functionality.
This patch adds quiet and noexec attributes (for the -q and -n
switches) and a command attribute that specifies which CVS command to
execute.
The default command is "checkout" to remain compatible to the existing
behaviour.
Submitted by:
Wolfgang Werner [wwerner@picturesafe.de ]
update by Stefan Bodewig [bodewig@bost.de ]
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267680 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Arnout J. Kuiper
0fce1960af
Fix for Tar-time
Submitted by: Stefan Bodewig <bodewig@bost.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267679 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
2c8c53f98a
Make Delete a matchingTask
Submitted by: Tom Dimock <tad1@cornell.edu>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267678 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
b50848acba
Javadoc 1.2 multiple group support
Submitted by: Donald Leslie <Donald_Leslie@lotus.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267676 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
9662217bcd
log informational messages when classes are not available
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267675 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
049d4a294a
Make sure that properies from the command line and/or parent projects
override properties specified in the build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267673 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Arnout J. Kuiper
95ffb1ce49
Two new tasks, untar & gunzip, to complement the tar & gzip.
Submitted by: Stefan Bodewig <stefan.bodewig@megabit.net>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267671 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Arnout J. Kuiper
320e41bc89
Fixed problem when an empty tag was supplied.
Submitted by: Jean-Noel Gadreau <jngadreau@activcard.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267670 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
07dbc9cafa
Support JDK 1.3 (a.k.a. "modern") compiler.
Submitted by: Robin Green <greenrd@hotmail.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267667 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Arnout J. Kuiper
d180ff4e65
Added a "compress" attribute to the Zip and Jar task.
Submitted by: Stefan Bodewig (bodewig@bost.de )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267665 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
James Duncan Davidson
b9c9d1a29c
Hack to make clear that Modern compiler isn't yet implemented. Of course,
a real solution is needed, but I didn't want to see any more unneeded
confusion over this.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267664 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Arnout J. Kuiper
1b5eae2230
Properly set the "ant.java.version" property.
Submitted by: Justyna Horwat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267663 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
a773e14e42
Cleanup things missed with JAXP/SAX 1.0 fixes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267657 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
fe4a5cb029
Support JAXP and SAX1.0
Submitted by: Matt Foemmel
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267656 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
299bd97429
Ant should not depend on tasks unless they are used.
PR: 217
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267651 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
1b4714d042
Now make it work with JDK1.2.2. Thanks Craig for bringing it to my
attention!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267650 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
9fd8da35d2
JavaDoc doesn't use basedir for sourcePath
PR: 61
Obtained from: will+ant@cs.cmu.edu
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267648 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
9207ca8a59
Support UNC filenames (\\server\path\file) on Windows platforms
PR: 131
Submitted by: wolf.siberski@tui.de
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267647 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
d3ee9a7555
<available file="name"> doesn't work
PR: 95
Submitted by: mdaniel@scdi.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267646 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
4461e98f84
Restore the ability to define properties and taskdefs outside the scope
of any target.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267645 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Sam Ruby
888d09c107
Allow java classes to be called with no arguments
PR: 133
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267644 13f79535-47bb-0310-9956-ffa450edef68
26 years ago