Conor MacNeill
cfaea6cf8a
Make sure files get closed even when there is an exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268126 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
c7c8803619
Added the propertyfile task which can manipulate property files.
Submitted by: Jeremy Mawson <jeremym@qsipayments.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268125 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b189662bae
Make <javac> always add +F to the jikes command line if
build.compiler.fulldepend has been set.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268115 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2198f70d70
and don't swap stderr and stdout either.
The release build is correct BTW, CVS claimed I changed the file fast
enough, but it committed something else, grr.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268112 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2b0355c521
Better redirect stderr and stdout instead of stderr twice.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268111 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
99f3f52ede
Ensure the output of the modern compiler is going to be redirected as
well.
Prepare for a second release candidate build.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268110 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
34b083983d
Roll back EJBC changes to the separate helper run in a separate VM. The use of
the class loader was causing some users problems which arise when the system
classpath and the classloader's classpath overlap.
This will remove Jikes support from the ejbc task, but I think the stability of
the task, going into the 1.2 release is more important.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268108 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
205151486a
It seems far more plausible to interpret a relative file URI in SYSTEM
entities relative to the build file instead of basedir, doesn't it?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268107 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
081d01391f
Resolve filenames in SYSTEM entity declarations relative to the
project's basedir.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268106 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
626d7f944f
Allow ant to be installed in a Windows directory containing spaces such as
c:\Program Files\ant
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268105 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
838def06a0
And no stack trace for classic compiler either.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268103 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b0027003f4
Don't print stack traces on compilation errors.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268102 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
afd1f285df
Make sure ejbc task handles situation when build.compiler is not set
I didn't use Jeremy's patch directly since ejbcHelper is only interested if
build.compielr is equal to Jikes
Submitted by: Jeremy Taylor <jtaylor@lehman.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268101 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
76641fe514
Make MacOS X a valid Unix (in <chmod>'s point of view).
Submitted by: Stuart Roebuck <sr@adolos.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268100 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
5308826fb8
Make the flatdestdir attribute work when using deployment descriptors
in the root directory
Minor javadoc fix in wlrun
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268096 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
cf01e99f9e
Provide access to more ejbc options
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268093 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
a58b5083c4
Provide more control over running Weblogic.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268092 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
2deeb0512d
Add warning about sytnax change for this task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268091 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b02f11df78
Don't print the message of a thrown BuildException to stderr twice.
Submitted by: Diane Holt <holtdl@yahoo.com>,
Nico Seessle <Nico.Seessle@epost.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268090 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
4673e840dc
Better error reporting when <ant> cannot find the build file, grammar
correction.
Submitted by: Diane Holt <holtdl@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268089 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
1172691331
Reset destDir to null in <copy> if destFile has been set. This allows
a single instance of Copy to be used more than one - like in
ant -Dant.install=../dist/jakarta-ant dist install
where the second time the dist target gets executed would throw an
exception. You can see this in the logs of recent nightly builds of Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268084 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
7241d07c90
Give the user a clue what to do when the "task could not be found"
exception occurs.
Submitted by: Erik Meade <emeade@geekfarm.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268083 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
e88e9617e2
Added a location attribute to <property> to provide easy access to the
Project.resolvePath functionality to the user.
Submitted by: Jose Alberto Fernandez <JFernandez@viquity.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268082 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
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
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
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
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
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
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