39 Commits

Author SHA1 Message Date
Stefan Bodewig
cf1b1d6359 Add RedHat S/390 hint submitted by Jack Woehr
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276295 13f79535-47bb-0310-9956-ffa450edef68
2004-04-13 10:36:42 +00:00
Matthew Jason Benson
b0507d4451 Add <redirector>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276257 13f79535-47bb-0310-9956-ffa450edef68
2004-03-27 21:22:59 +00:00
Antoine Levy-Lambert
ff348804c1 Copyright owner The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276069 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 21:50:10 +00:00
Conor MacNeill
49dc6188ed Merge
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275752 13f79535-47bb-0310-9956-ffa450edef68
2003-12-08 02:27:14 +00:00
Stefan Bodewig
d4759031a1 You can't interact with forked processes - PR 23686
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275448 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 13:08:52 +00:00
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
2003-09-25 12:36:19 +00:00
Stefan Bodewig
7477ba8b28 Update and sync <apply> and <exec> docs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275264 13f79535-47bb-0310-9956-ffa450edef68
2003-09-19 08:44:22 +00:00
Jan Materne
efb4c26db4 A little example for spawn attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275196 13f79535-47bb-0310-9956-ffa450edef68
2003-09-06 15:48:01 +00:00
Jan Materne
0c15aeca64 spell check
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275171 13f79535-47bb-0310-9956-ffa450edef68
2003-09-02 16:24:02 +00:00
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
2003-08-01 10:08:12 +00:00
Antoine Levy-Lambert
27b47d055f roll-back wrong change concerning executable attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274990 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 10:32:43 +00:00
Antoine Levy-Lambert
aa82230244 added precisions regarding the executable attribute in the <exec/> task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274989 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 10:19:56 +00:00
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
2003-07-28 10:39:31 +00:00
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
2003-07-25 10:06:32 +00:00
Stefan Bodewig
caf1d28c02 fix typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274172 13f79535-47bb-0310-9956-ffa450edef68
2003-02-24 14:39:23 +00:00
Conor MacNeill
107a8994df Fix typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274026 13f79535-47bb-0310-9956-ffa450edef68
2003-02-09 22:10:57 +00:00
Conor MacNeill
b5de6e5a6a Document new input capabilities
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274024 13f79535-47bb-0310-9956-ffa450edef68
2003-02-09 12:17:16 +00:00
Conor MacNeill
e562c76491 Further development for 7330. Allow errors to be sent to the
Ant log when redirecting output.

PR:	7330


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274004 13f79535-47bb-0310-9956-ffa450edef68
2003-02-06 13:10:21 +00:00
Conor MacNeill
9606283711 Allow <exec>'s error and output streams to be redirected independently
This is primarily to address bug 7330 but it includes a few other changes.

You can now use both output and outputproperty. While it was not documented,
previously, these used to be mutually exclusive. A simple TeeOutptuStream
is used to write the value to both a property and a file, if required.

The LogStreamHandler is no longer used by Exec. The main thing it did over
the PumpStreamHandler was to close the output streams when the stream
handler's stop method was called. This needed to be done in the
PumpStreamHandler in any case or the output file would be left open.
The PumpStreamHandler can now close its streams on stop() although the
default is still to leave them open

There are new attributes "error" and "errorProperty" which if present
separate output and error streams. If not present the current
behaviour is unchanged.

PR:	7330


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274003 13f79535-47bb-0310-9956-ffa450edef68
2003-02-06 12:53:49 +00:00
Conor MacNeill
3352f53d7d Additional info about running under Exec and Win9X/ME systems
PR:	13524


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273949 13f79535-47bb-0310-9956-ffa450edef68
2003-02-01 14:21:27 +00:00
Stefan Bodewig
00d14d398f 2003
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273925 13f79535-47bb-0310-9956-ffa450edef68
2003-01-30 09:09:54 +00:00
Conor MacNeill
f23a604f89 Bring WHATSNEW up to date with recent changes (also don't duplicate
entries for the 1.5.2 changes)
Document the resolveExecutable attribute assed to <exec>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273924 13f79535-47bb-0310-9956-ffa450edef68
2003-01-29 11:57:25 +00:00
Stefan Bodewig
7f2af7960c <tag /> ---> <tag/>
remove some stray CRs
fix some typos

Submitted by:	Larry Shatzer <Larry.Shatzer@Spirent.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273291 13f79535-47bb-0310-9956-ffa450edef68
2002-09-04 11:05:19 +00:00
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
2002-06-22 23:38:38 +00:00
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
2002-06-01 12:26:43 +00:00
Steve Loughran
b4c9277617 PR5025 ; doc new attr, bit of text on failure altogether
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272355 13f79535-47bb-0310-9956-ffa450edef68
2002-04-11 06:37:59 +00:00
Stefan Bodewig
6258074cd0 Add append attributes to <exec>, <java> and <sql>
PR: 3234, part of 5299


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272234 13f79535-47bb-0310-9956-ffa450edef68
2002-04-05 09:28:54 +00:00
Stephane Bailliez
e967d77e02 Fix HTML title to be more useful for indexing.
PR: 5020
Reported By: jesse.glick@netbeans.com (Jesse Glick)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271131 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 22:00:42 +00:00
Stefan Bodewig
17208490a1 make documentation match the code.
The sentence I've removed must be a left-over from the time before the
newenvironment attribute has been added.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271002 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 16:47:32 +00:00
Stefan Bodewig
b6a3e9df36 License police on documentation files:
(1) Make sure there is a Copyright notice on all visible files.

(2) Make sure all years in which the file has been modified are
listed.

(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.

When Stephane changed starteam.html it has been 2001 in France but
2002 in Australia - does that mean we add 2002 to the Copyright line
or not?  ;-)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
2002-01-10 08:48:33 +00:00
Steve Loughran
85ea2966d2 timeout actions stated
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270058 13f79535-47bb-0310-9956-ffa450edef68
2001-11-30 21:07:50 +00:00
Steve Loughran
02673734f3 PR 4345 :Request for addition of "rcproperty" attribute to <exec>
Documented new property


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270033 13f79535-47bb-0310-9956-ffa450edef68
2001-11-27 19:44:46 +00:00
Steve Loughran
cbd09b7071 typo fix
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269967 13f79535-47bb-0310-9956-ffa450edef68
2001-11-20 06:51:57 +00:00
Stefan Bodewig
93ee07ad35 Show that Ant is an Apache project.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269839 13f79535-47bb-0310-9956-ffa450edef68
2001-10-30 10:05:39 +00:00
Stefan Bodewig
f3b55df1fa Add outputproperty attribute to <exec> to capture the output of the
external command in a property.

Submitted by:	Peter  Vogel <pvogel@arsin.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269400 13f79535-47bb-0310-9956-ffa450edef68
2001-07-27 09:55:46 +00:00
Conor MacNeill
54550bf317 Update documentation stating where os attribute values come from.
PR:	1656


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269276 13f79535-47bb-0310-9956-ffa450edef68
2001-07-06 15:11:29 +00:00
Conor MacNeill
9301e386b3 Documentation update for vmlauncher attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269274 13f79535-47bb-0310-9956-ffa450edef68
2001-07-06 11:23:18 +00:00
Nico Seessle
2130e96108 Bug# 1530
Missing default-value for failOnError-attribute


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268974 13f79535-47bb-0310-9956-ffa450edef68
2001-04-26 23:22:36 +00:00
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
2001-02-13 12:32:01 +00:00