glennm
9f766c7fa0
Removed dir attribute from Copy and
Move tasks. Now you can only copy
or move entire directories with
nested FileSets.
Prompted by a patch submitted by
Nico Seessle.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268061 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
47dce162e8
Allow the user to specify a classpath to <junit> even if fork="off".
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268059 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6c40e0ca77
Let jikes use the temporary file solution if the total length of the
command line exceeds 4k.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268058 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
3858aba32e
Make sure files are getting closed.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268057 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
fc10e04872
Made sure that Project.resolveFile would always use the canonical path
of a file.
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268055 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
57fee87130
Fixed detection of duplicate entries in <jlink>.
Submitted by: Matthew Kuperus Heun <matthew.k.heun@gaerospace.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268053 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
1b6e915636
Made the old file handling tasks even more deprecated. Made Ant use
the new tasks in its own buildfile.
Fixed a problem with <delete dir=""> when the directory didn't exists
(deltree would ignore this - delete now does so as well).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268052 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
glennm
38c1cabaac
Consolidation of Copyfile, Copydir, Delete, Deltree, and Rename into
Copy, Move, and Delete tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268051 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
glennm
ccea996681
Patch to ensure a properties file is always closed after its read. Contributed
by Nico Seessle.
Some cleanup of field access levels, etc. by me.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268050 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
33107ab100
- Add new attributes onerror= (continue, stop, abort) to <sql>
- Add new nested element <transaction> to <sql> which allows executing
multiple transactions, multiple files on the same connection.
- Added documentation on sql.html
- Modified AntClassLoader.java to send most of the "loading class..."
messages to MSG_DEBUG instead of MSG_VERBOSE. So that it does not
cluter debugging other tasks.
- Add new attributes 'rdbms="product"' and 'version="release"'
if those versions do not match what is returned by the connection, the
task will be skipped.
Submitted by: Jose Alberto Fernandez <JFernandez@viquity.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268049 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
37ed344b38
Enable redirecting either the output or error or both from a cvs command to a file.
Example usage:
<target name="diff">
<cvs command="diff" output="patch.txt"/>
</target>
Submitted by: Julian M. Savage <jsavage@fisci.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268048 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
db6f84aa22
- Javac.getCompileClasspath(true) adds the correct runtime Zip files when
running in the MS VM. It adds ${java.home}/packages/*.zip instead of
${java.home}/lib/classes.zip
- Javac.doClassicCompile() uses introspection to invoke the classic
compiler. This allows Javac.java to be compiled under a non-Sun JDK.
- Added location to the BuildExceptions thrown by javac.
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
made some methods protected to make Javac easier to extend.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268047 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
63a3e9609b
Documentation for the JavaCC task, changed the location where the
generated file will be placed if no directory has been specified.
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268046 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e47b4d5aca
Make Execute work for arguments containing spaces under JDK 1.1 under
Windows (where Runtime.exec() doesn't quote them properly).
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268045 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
9bab4dab1a
Class.forName("") throws an IllegalArgumentException instead of
ClassNotFoundException in JDK 1.1. Make available behavior consistent
by ignoring empty classname attributes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268044 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
0b508c3284
Add a file attribute to echo to have a simple task that can create
files on the fly.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268043 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
3f2688a0ed
Added a refid attribute to property.
Submitted by: Vincent Bergbauer <vincent_bergbauer@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268042 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
79903e422d
Make sure the JDBC driver knows how to handle the URL.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268041 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6c4a81e3da
Fixed typo that made the filtersfile attribute unusable.
Submitted by: Gero Vermaas <Gero.Vermaas@sun.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268040 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e6a52064b9
Allow the driver for <sql> to be loaded from a different CLASSPATH.
Submitted by: Julian M. Savage <jsavage@fisci.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268039 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
dddcf551a9
Loading tasks from a ClassLoader other than the default one now works
on JDK 1.1 as well.
Added org.apache.tools.ant to the list of packages that need to be
loaded via the system class loader as the loaded class wouldn't be an
instance of Task (loaded by default loader) otherwise.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268038 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
da89ca486a
Make JavaCC use the correct path when checking whether the generated
files are up to date.
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268035 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
f3a0918e1d
Allow sub classes of Zip to hold their own filesets and not tell Zip
about it.
This one enables War to build .war files without content included in
extra filesets.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268034 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
f688c57ce1
Include any inner classes in the generated Jar file.
Submitted by: Brian Towles <brian@towles.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268033 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
b8d38ba077
Allow filters to be set from a file.
Submitted by: Gero Vermaas <Gero.Vermaas@sun.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268032 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
2067d20b5c
Allow sql task to write results to a file.
Submitted by: Julian M. Savage <jsavage@fisci.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268031 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
d4458b7643
Only print messages from exceptions which are non-null
Submitted by: Patrick Beard <beard@netscape.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268030 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
0f12933d9b
Add the WLJspc task to the registered tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268027 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
78089779a7
Make <junit>s dir attribute work on JDK < 1.3
Reported by: Peter Nordlund <peter.nordlund@lentus.se>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268026 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6422ae65b1
Cosmetic changes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268025 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
ad48a0d392
Make the handling of nested #PCDATA more predictable by not stripping
anything. The older version depended upon the parser (does it invoke
characters once per #PCDATA section or once per line).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268024 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
ba5b2b8d7c
New task <native2ascii>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268023 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6b11d7b61e
Improved output and error checking in <java>.
Submitted by: Diane Holt <holtdl@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268021 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
20429db1c4
Make defaultlogger easier to extend.
Submitted by: <mcclain.looney@webhelp.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268020 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
683a5f1433
New task <uptodate> that set's a property if a given target file is
newer than a given set of source files.
I've taken the freedom to merge ideas submitted by William and Hiroaki
and to throw in some of my own.
Submitted by: William Ferguson <williamf@mincom.com>,
Hiroaki Nakamura <hnakamur@mc.neweb.ne.jp>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268019 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
33100d85b6
Formatter would close System.out (preventing further output)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268017 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
53b4dec9ae
extdir attribute/nested element of <javac> was broken when using jikes.
PR: #137 (Bug #35 )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268016 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
7ee8e30cd0
<ant> now copies the definitions of data types to the child project as
well.
Reported by: Jose Alberto Fernandez <JFernandez@viquity.com>
<ant> now checks it isn't calling the target it is nested into.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268014 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
4a9c1fbf6e
Added dir attribute to <junit> and documentation for the one of <java>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268012 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
d36ee0d77c
Added verbose and depend attributes to <javac> along with yet another
undocumented magic property (YAUMP?) build.compiler.fulldepend that
triggers Jikes' +F option.
Submitted by: Sean Brandt <sean@fuzzymagic.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268011 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
fef46698fb
Make <war> use the .war directory layout. Don't ask me where my mind
has been.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268010 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
9490ce8f93
Ant will now scan for build.xml in the parent directory (directories)
as well.
Added -debug and Project.MSG_DEBUG to make -verbose less verbose. Many
messages really rather belong into a DEBUG category.
Submitted by: Jason Dillon <jason@planet57.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268009 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
98d5287971
Put the PATH obtained from extdirs between bootclasspath and
userclasspath when using jikes or jvc to make them match javac's
behavior.
Submitted by: Robert Krueger <krueger@signal7.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268008 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2aaf152da1
Only set location in BuildException if the task didn't provide it
before.
This will give the correct location for errors in build files invoked
via the <ant> task.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268007 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
8c59db7895
Allow tasks to be added at runtime and only fail if they cannot be
found at runtime.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268005 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
4fbcfdedaf
Treat OS/2 like Win NT with regard to <exec>'s dir attribute.
PR: #126 (Bug #33 )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268004 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
beee9e6a6b
Make filtering of the copy tasks work with leading @ characters.
PR: #129 (bug #32 )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268003 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
f0282fd8b1
Various checks for required attributes and better error messages added.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268002 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
13eb95ae4d
Fixed situation where Class.getClassLoader returns null for the
bootstrap class loader - JDK 1.1.7 on Linux for example.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268001 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefano Mazzocchi
bd02671bd0
Updated this task so that you can have <classpath> inside that tells the Available where to look for classes and resources. It is completely back compatible so should cause any harm to anybody.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268000 13f79535-47bb-0310-9956-ffa450edef68
25 years ago