Stefan Bodewig
7c29b7f875
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268081 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
d8bff4d35a
Added a nested sysproperty element to <java>. This allows the user to
set system properties even in non-fork mode.
Submitted by: Jose Alberto Fernandez <JFernandez@viquity.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268080 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
8e8cf291a5
Made destdir in <javac> optional - don't use the -d switch at all if
this one hasn't been given.
Submitted by: Alexander Pokahr <5pokahr@informatik.uni-hamburg.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268079 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
3c045b38b0
Make sure a BuildException thrown inside a <script> doesn't get
wrapped into yet another BuildException.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268078 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
18cf53f2b7
Throw an exception if the zip/jar/warfile attribute has been omitted
in Zip.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268077 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
fd1daa717e
Documentation change, javac.destdir is no longer required.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268076 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c89099e9b9
Make <javac> use the value of srcdir as destdir if the latter has not
been specified.
Submitted by: Alexander Pokahr <5pokahr@informatik.uni-hamburg.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268075 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
30385849b7
Made AntClassLoader always add java.* and javax.* to the list of
packages to load via the system classloaders.
This fixes the problem reported by Erik Meade <emeade@geekfarm.org>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268074 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
glennm
a1eaa272b4
Throws BuildException if it tries to resolve a path which
will go further up than the root of the file-system.
Reported by: Noris Boyd
Patch submitted by: Nico Seessle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268073 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e2bb645b67
Make <sql> ignore empty "statements".
Submitted by: Jose Alberto Fernandez <JFernandez@viquity.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268072 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c23f0f5faa
Synced the documentation for <javac> with the implementation.
Reported by: Ernst de Haan <ernst@jollem.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268071 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
843de6102d
Make the system call a little bit more secure.
Submitted by: Olivier Louchart-Fletcher <olivier.louchart@netregistry.au.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268070 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
glennm
cf33deb63e
Updated the copy and merge task docs to include the includeEmptyDirs
attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268069 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
glennm
fd507cf2d2
Added an includeEmptyDirs attribute to Copy and Move tasks. The default
action is to include empty directories in any copy and move action. It makes
a lot more sense for Move, and seems reasonable for Copy.
Fixed up Move to correctly remove the original directories rather than leave
them behind.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268068 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e13d922745
Documentation for the perforce task.
Submitted by: Joe Walker <Joe.Walker@barclaycard.co.uk>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268067 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
52f8d9c020
New optional task for the SCC system Perforce.
Submitted by: Walker Joe <Joe.Walker@barclaycard.co.uk>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268066 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
d1c16d4c5c
(Re)enable support for multiple CVS modules in a single cvs task.
Submitted by: Josh Lucas <josh@stonecottage.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268065 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
df7215b8f5
Don't assume it has been the build file if the parser throws a
FileNotFoundException. Could be an external entity or a DTD file as
well.
Submitted by: Scotte Zinn <szinn@patronix.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268064 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
35195cb135
Fixed documentation for <antcall>
Submitted by: Nico Seessle <nico@seessle.de>,
Diane Holt
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268063 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c020a34a51
Fixed what looks like a typo in the error message.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268062 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
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
a063472791
Fixed type on jlink documentation.
Submitted by: Steve Zindel <steve.zindel@semrev.ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268060 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
dfb50d12f7
Extended testcase for <filter> to show that Bug #38 (report #184 ) has
already been fixed.
Submitted by: Erik Meade <emeade@geekfarm.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268056 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
918b40a4f8
Fixed some testcases:
(1) make the Path tests work on Windows even if not working on C:
Submitted by: Erik Meade <emeade@geekfarm.org>
(2) Take care of deprecation warnings and added functionality for some
of the file handling tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268054 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
67eceb37c1
Third try to fix a typo.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268037 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b4a550aafc
Second try to fix a typo.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268036 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