Stefan Bodewig
c51b8ee385
Normalize some @since tags
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272425 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
c6c232893c
Various coding standard fixes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272418 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b0fcc6e32c
Make sure <cvspass> closes its streams. Cleanup.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272370 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c2717b6fb3
give credit to Jeff for his NetWare patches.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271791 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
2737393e9f
Fix problems in Linux version of <cab>:
(1) it wouldn't use the basedir
(2) all diagnostic messages have been swallowed
Submitted by: Ilya A. Kriveshko <ilya@kaon.com>
Note that this patch needs the magic of Execute but also access to the
processes' standard input - this has been solved by adding a new
static method launch to Execute which hands out the Process instance,
the proper fix would be to handle input for the spawned processes as
well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271431 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
44b170125d
Fix for #6288
NullPointerException if no environment variables found
Patch supplied by jimbuuck@netscape.net
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271191 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
6c242cf4d1
a little more cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271007 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
7c50981b05
superfluos line
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271006 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
17243cca1d
Add a new "os family" win9x. If I had a decent name for Windows that
is NT or 2000 or XP I would have added a family as well 8-)
Take advantage of that new family in Execute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271005 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
487989a059
make Execute support Windows XP.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271003 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f3577cdb5c
License police on task definitions:
(1) Make sure there is a Copyright notice on all files.
(2) Make sure all years in which a file has been modified are
listed.
(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.
(4) Change some references from Tomcat to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270658 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
e3b6d1fe76
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270637 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
03d2b1c05f
If running on JDK 1.3 register an exit handler that kills spawned
processes when the JVM exits.
PR: 5125
Submitted by: mnewcomb@tacintel.com (Michael Newcomb)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270117 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
a1694b917e
new method, killedProcess() which returns true if there is a watchdog and it killed the process
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270055 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
37e1a98039
Added slightly modified version of Execute.
Script adds support for Netware in Execute. In the case of a non JVM supported execute (ie when changing dirs pre1.3) will call out to a perl script.
Submitted by: "Jeff Tulley" <JTULLEY@novell.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269916 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ab9f91736a
Take care of NetWare when searching for "java" and "javadoc", add
NetWare case for <property environment=... />.
Simplify OS based decisions.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269851 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d17f3c4f2a
Use locale independent methods to identify OS or match attributes and
elements in build files.
PR: 4100
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269847 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d12e6411cc
Code clean up:
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Nico Seessle
480e64cc18
property environment=.. failed under JDK 1.2 with a NPE because WinNTCommandLauncher.exec() got a null working directory and a null Project - reported by <Aimee.Ukasick@med.ge.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269505 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Sam Ruby
198880a644
Avoid NPE's - seen when running JUnit on Win2K
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269443 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
561a6d3abf
Add some better error management for exec errors. By wrapping the real
exception in a build exception, hopefully we'll get a stack trace
PR: 2542
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269410 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
1dfa5ca002
Add new vmlauncher attribute to exec. This defaults to true to execute
commands using the VM's capabilities, where available. If it is set to false
the underlying OS's shell will be used, either directly, or through the
antRun scripts. Allows use of some shell features (such as associating scripts
with their interpreters under Windows
PR: 413
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269273 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
00f96abeb0
Made sure OS version is parsed correctly for OSX
Submitted By: Archit Shah <ashah@arsdigita.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268955 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Nico Seessle
4ee2e5c268
The completion of the fix for Bug #975 : include proper handling of parsing
chunks of data returned by the external environment listing program
(whose command is returned by getProcEnvCommand()). UNIX environment
variables can contain text with embedded newlines.
Submitted by; Daniel Rall <dlr@finemaltcoding.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268942 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
73a8298528
Updated ant to get environment from MacOS X
Submitted By: Archit Shah <ashah@arsdigita.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268940 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
7435b27b91
Merge 1.3 branch changes into MAIN
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268691 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
5337488612
Merge of 1.3 branch changes into the main branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268652 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
4ca5683c2a
<javac> rewritten to use a factory.
Submitted by: Jay Glanville <jayglanville@home.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268444 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
6c287080d4
Make licence statements mention Ant in place of Tomcat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268392 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Peter Donald
cc3fb0c926
Load environment variables either when a task is explictly executed ( <property environment="blah" /> where blah will be prefixed to every variable). Also load it when env elements are specified to exec calls.
Submitted By: Jose Alberto Fernandez <JFernandez@viquity.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268325 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Peter Donald
6b5745a21d
Used some elisp magic to remove those tabs and replace with spaces.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268237 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
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
10c41029ae
The real patch for exec and JDK 1.3.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267903 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
29cf33f78f
Mac patches to Execute (regarding working directory).
Submitted by: beard@netscape.com (Patrick Beard)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267881 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c2077d52dd
Javadoc doesn't extend Exec any longer.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267862 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
0b389735d0
Recognize Windows 2000 for ther purposes of exec (so that it behaves
in the same manner as NT)
Submitted by: Robert Watkins <robert.watkins@mincom.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267860 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
61320f305f
Reworked the <exec> and (now so called) <execon> tasks.
Submitted by: Mariusz Nowostawski <mariusz@marni.otago.ac.nz>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267834 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
3e3008a15b
New Execution Framework.
This new framework should ease development of tasks that need to
execute external processes.
<exec> now invokes ExecTask, a reimplementation of Exec that uses the
new framework but has some additional features.
Submitted by: Thomas Hass <thomas.haas@softwired-inc.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267799 13f79535-47bb-0310-9956-ffa450edef68
25 years ago