Jacobus Martinus Kruithof
257dadeaf0
Make use of FileUtils in a uniform way via the getFileUtils method and a static final reference in the using files.
Also removed unused/* imports along the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277295 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
3f31dc8f7a
Make Jikes happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277030 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
c31f5ae257
Somewhat reworked patch for bug# 31106, submitted by Isao Yanagimachi.
Took the opportunity to clean up the tasks slightly, such as removing duplication in various methods.
We need a unit test for long command line java, and many parameter java, just to see what breaks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276922 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
74c147ed2a
Make NetCommand#setDirectory actually do something
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276768 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
e8479cb9fc
Exit status fixes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276590 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
c25de77022
Move Process stream closure into a new public static method,
closeStreams(Process).
PR: 28565
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276419 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
591f197bdd
More typo corrections (not mine).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276418 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
e69dbc9413
Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276417 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
08fc138671
Close process streams in waitFor(Process).
PR: 28565
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276416 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
14211b597a
I/O-intensive processes hung when started by Execute.spawn()
PR: 23893/26852.
Submitted by: Daniel Spilker
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276272 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
1b72f9a649
Add Windows 2003 support to getProcEnvCommand() + minor refactoring.
PR: 28067
Submitted by: Irene Rusman
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276263 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
6c29f89924
Fail with a useful error message when the user asks us to fork a
process in a directory that doesn't exist.
PR: 25455
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275988 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
8e7167b58d
The user.dir trick doesn't seem to work on OS X anymore, PR 23400
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275359 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
655ad8f525
improved OpenVMS support, submitted by Knut Wannheden <knut dot wannheden at paranor dot ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275346 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
2bd38f0df1
Restart stream reading and writing for each execution in <apply>.
PR: 22446
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275263 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
36accb02b3
Treat timeout like a failed execution, fix comments on Execute#getExitCode
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275258 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
8268a3c4e4
Spelling
Submitted by: Larry Shatzer (Larry dot Shatzer At Spirent Dot Com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275235 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Jan Materne
0c42e047b2
Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275180 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
3396e7c321
Remove direct call to deprecated project, location, tasktype Task field,
replaced by an accessor way into tasks.
Remove too some unused variable declaration and some unused imports.
PR: 22515
Submitted by: Emmanuel Feller ( Emmanuel dot Feller at free dot fr)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275133 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
e67a40fbb3
Revert part of the commit that made tasks use Execute#isFailure.
On OpenVMS the Java VM will exit with a return code of 0 on success,
even though this is going to signal a failure for the OS. All tasks
that spawn new VMs have now been reverted to explicitly check for
retCode != 0 instead of Execite.isFailure(retCode).
We could as well introduce Execute#isJavaFailure or something like
this in case future VM's on OpenVMS will start to do the right thing.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275005 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
35845f7053
This change allows exec to start a process which will run independently of ant.
I have used the patch prepared by Charles Hudak and Peter Nimmervoll, but made it even
simpler, in the sense that I do not connect at all the new process to stream handlers
and the ant logging system, disabling input, output, error, and return exec attributes
in the case of spawn.
Strangely, it works well on Windows if one puts a sleep of one second after having spawned
the process. Why ? No idea.
PR: 5907
Submitted by: Charles Hudak ( CHudak at arrowheadgrp dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274963 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
efb4de4096
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274960 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
96404f8700
Add support for OpenVMS logicals as "environment variables".
Submitted by: Knut Wannheden <knut dot wannheden at paranor dot ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274952 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d47dfcbc98
Use Execute.isFailure
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274951 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
f30f3d21cb
Add OpenVMS support to <exec>.
PR: 21877
Submitted by: Knut Wannheden <knut at paranor dot ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274949 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
3a35c7d914
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274858 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
743a75153a
Ensure terminated processes are allowed to complete before finishing the
Ant shutdown
PR: 8510
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274821 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
ed475344e7
NonStop Kernel is Unix as far as Ant is concerned.
<attrib> doesn't like to be called with parallel.
<chgrp> and <chown> should also disable the addsourcefile attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274607 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
078e8aaeaa
Improve OS/2 support:
* Apparently the vmlauncher in OS/2's JDK 1.3 doesn't work properly,
disable it.
* Add REXX scripts to run Ant.
* Add OS/2 specific notes to the docs.
Submitted by: Zdenek Wagner <wagner at cesnet dot cz>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274507 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
006b093ab2
Don't hardcode /usr/bin/env for Unix.
PR: 17642
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274375 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
f624f1bf4d
Add support for HP's NonStop Server (formerly known by several names,
including Tandem).
Submitted by: Mirko Zeibig <Mirko dot Zeibig at t dash systems dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274262 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c89a66172d
Preparing merge to 1.5 branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274134 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
88251d50a4
Don't use "cd /d" on OS/2.
PR: 16924
Submitted by: Zdenek Wagner <wagner at cesnet dot cz>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274052 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1dc8a07905
Remove Jakarta Project from license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8e67850ad6
Add <os> and <exec> support for OS/400.
PR: 13047
Submitted by: Brian Farrar <brian_farrar at countrywide.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273380 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
15c3ec9b26
Destroy the process in case the thread is interrupted
otherwise it may run forever.
PR: 10345
Submitted by: Hal.Hildebrand@hellblazer.com (Hal Hildebrand)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273160 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
6bd8d6e938
Merge changes made to 1.5 Beta2.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272967 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
ca91f8cb7e
Merge changes made to 1.5 Beta1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272826 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
233ae85c5f
Don't tell people we'd execute a given command line when we really do
something completely different.
I hope this will cut down the "Ant swallows my quotes" reports to
those that are real problems in Ant and not just problems of
communication.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272573 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
80080d456c
Reduce a small number of long lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272443 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
03d0b81deb
Order of modifiers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272442 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
c4266e9250
Coding Standard
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272441 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
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