438 Commits

Author SHA1 Message Date
Peter Reilly
5741bedf4c state imports are only allowed as top-level tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275268 13f79535-47bb-0310-9956-ffa450edef68
2003-09-19 09:43:43 +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
Stefan Bodewig
6cbd301d14 Add pointers from attributes to nested elements, PR 23165
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275262 13f79535-47bb-0310-9956-ffa450edef68
2003-09-19 07:46:31 +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
Stefan Bodewig
7d18fc9d21 leave it undefined to avoid feature lock-in
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275185 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 11:45:25 +00:00
Stefan Bodewig
e0f7b5199c Clarify antcall in presence of self-modifying build files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275182 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 10:57:33 +00:00
Stefan Bodewig
451172e226 Throw an exception instead of looping forever in top-level <*ant*> task.
PR: 22759


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275176 13f79535-47bb-0310-9956-ffa450edef68
2003-09-03 10:03:47 +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
468d6cb9f4 Add a reallyquiet attribute to <cvs>.
PR: 22774
Submitted by:	Larry Shatzer <larry dot shatzer at spirent dot com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275167 13f79535-47bb-0310-9956-ffa450edef68
2003-09-02 14:38:19 +00:00
Peter Reilly
62e36bbd11 manual page for antlib
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275164 13f79535-47bb-0310-9956-ffa450edef68
2003-09-01 14:22:04 +00:00
Antoine Levy-Lambert
543e74c784 Use again Permissions to catch non zero exit statuses when using the Java task
with FailOnError = "true"
PR: 22533


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275162 13f79535-47bb-0310-9956-ffa450edef68
2003-09-01 12:45:07 +00:00
Antoine Levy-Lambert
1df7fd17ca Rollback temporarily the setting of new permissions when failonerror="true"
and fork="false"


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275155 13f79535-47bb-0310-9956-ffa450edef68
2003-08-29 13:05:06 +00:00
Antoine Levy-Lambert
1de5995d90 Set default permissions appropriate to fail the builds when failonerror is
true (and fork false) and no other permissions were set.
Suggestion of Steve Loughran.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275153 13f79535-47bb-0310-9956-ffa450edef68
2003-08-28 13:46:33 +00:00
Antoine Levy-Lambert
8fab9564d5 PR: 22533
Submitted by: J.M. (Martijn) Kruithof (ant at kruithof dot xs4all dot nl)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275149 13f79535-47bb-0310-9956-ffa450edef68
2003-08-27 14:23:17 +00:00
Antoine Levy-Lambert
7ef94af799 Add an example with an octal permission for chmod's documentation.
PR: 22445


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275135 13f79535-47bb-0310-9956-ffa450edef68
2003-08-24 14:24:53 +00:00
Antoine Levy-Lambert
3effe75129 Change anchor name (thanks Dominique).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275134 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 17:32:37 +00:00
Antoine Levy-Lambert
ebce0ec700 fixed title
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275128 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 10:00:06 +00:00
Antoine Levy-Lambert
f1a4a51478 Changes to the constructor of EmailAddress(String address) to make it support
addresses containing also the name such as name <address> or (name) address.
This allows these syntaxes to be used in the attributes from, tolist, cclist, replyto
of the email task.
PR: 22474
Submitted by: Michael Davey ( michael dot davey at coderage dot org)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275114 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 12:15:04 +00:00
Peter Reilly
e211cf05f7 macrodef changes:
* change nested element name from param to attribute
   (now the same as scriptdef)
 * expermintal testing for @attribute notation - controlled
   by an attributeStyle attribute
 * checking if correct attribute/element names are used
 * samedefinition method overloaded


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275105 13f79535-47bb-0310-9956-ffa450edef68
2003-08-15 09:33:45 +00:00
Stefan Bodewig
0afe39c8f7 Add example for sourcepath="".
PR: 22427
Submitted by:	Jaroslav Tulach <jtulach at netbeans dot org>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275104 13f79535-47bb-0310-9956-ffa450edef68
2003-08-15 09:11:47 +00:00
Stefan Bodewig
8b13ca9c93 Record default for <javac>'s verbose attribute, submitted by Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275088 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 14:37:07 +00:00
Peter Reilly
2a17990a71 add link to custom condition
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275086 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 14:06:54 +00:00
Peter Reilly
95e912bb73 adding doc for presetdef and macrodef
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275083 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 12:48:10 +00:00
Peter Reilly
8356d61ee6 add in attribute uri for typedef
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275065 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 13:22:58 +00:00
Stefan Bodewig
8975a12087 Add a keepcompression attribute to control the compression of entries
that come from existing archives.

PR: 16084


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275025 13f79535-47bb-0310-9956-ffa450edef68
2003-08-05 16:13:02 +00:00
Peter Reilly
5d847c583e Add if/unless attributes to <param/> element of <style/> task
PR: 22044
Obtained from: Jens
Submitted by:	 Peter Reilly & Jan Mat��rne


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275023 13f79535-47bb-0310-9956-ffa450edef68
2003-08-05 16:01:10 +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
Steve Loughran
0f2ab7fa91 bug #20735 "Resource" is not explained;
explained what a resource is, clarified what property files do, to field off recurrent bugreps and show property expansion.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275001 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 06:30:01 +00:00
Antoine Levy-Lambert
3b3a4cd29f Add spawn attribute to java task as well
PR: 5907


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274992 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 13:56:06 +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
Antoine Levy-Lambert
e0b6e804f0 XSLT/param@expression used as string instead of as expression as documented
There were 2 options to fix the bugreport :
- change the code
- change the documentation
I hope that the option to change the documentation is OK.
Thanks for the bug report.
PR: 21525


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274957 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 16:40:08 +00:00
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
2003-07-25 14:06:36 +00:00
Conor MacNeill
db75fcb34e Add <daemons> element to <parallel> to start <daemon> threads which
continue to run after the <parallel> task has completed.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274950 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 11:02:53 +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
Conor MacNeill
89847cdf7d Rework parallel
Remove need for poll interval (only covered race condition between isAlive
and notifyAll calls
Add timeout capability
Add flag to fail if any nested task fails without waiting for other tasks
to complete.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274937 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 14:24:07 +00:00
Peter Reilly
f3e3462d86 Add antlib xml functionality
This is patch 7204 the fourth patch of the antlib + ns enhancement. The
issues reported by Stephan will need be
addressed, so the implementation may change
before ant 1.6 is released.
PR: 19897


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274930 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 13:48:45 +00:00
Peter Reilly
99067d0607 Add multimapping to the copy and move task
Some slight changes from the orignal patch - rename
of ignoremultiplemapping to enablemultiplemapping and
some checkstyle changes
PR: 21320
Obtained from: Evan Easton


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274923 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 13:14:21 +00:00
Stefan Bodewig
f987ed2417 steal a paragraph from <fixcrlf>'s docs.
PR: 21658


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274911 13f79535-47bb-0310-9956-ffa450edef68
2003-07-23 12:57:18 +00:00
Antoine Levy-Lambert
5ac6359a7a Add a method in DirectoryScanner to reset the default exclude patterns
Add corresponding functionality in <defaultexcludes>
Update tests


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274877 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 10:52:20 +00:00
Peter Reilly
7b6a46d131 get the tasks imported using <import> to be placed
in-line and not at the end of the current tasks
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274836 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 14:39:44 +00:00
Stefan Bodewig
7411138e08 Detect OpenVMS as <os family>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274803 13f79535-47bb-0310-9956-ffa450edef68
2003-07-10 11:52:50 +00:00
Stefan Bodewig
b6cfe646d5 Don't think you can claim copyright for something that didn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274800 13f79535-47bb-0310-9956-ffa450edef68
2003-07-10 07:27:20 +00:00
Steve Loughran
238a51ea12 documenting the import task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274798 13f79535-47bb-0310-9956-ffa450edef68
2003-07-09 16:24:38 +00:00
Stefan Bodewig
2a0dc6e022 Add destfile attribute to patch.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274783 13f79535-47bb-0310-9956-ffa450edef68
2003-07-07 13:05:03 +00:00
Stefan Bodewig
f2eb856ffd Add support for filename-encodings other than UTF8 to <untar>.
PR: 10504


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274746 13f79535-47bb-0310-9956-ffa450edef68
2003-07-03 13:02:01 +00:00
Peter Reilly
581c1aa795 Remove "outside of target" as this restriction is not
the case for ant 1.6.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274740 13f79535-47bb-0310-9956-ffa450edef68
2003-07-02 14:25:59 +00:00
Peter Reilly
8701272b24 Second patch from antlib update as described in
http://issues.apache.org/bugzilla/show_bug.cgi?id=19897
This patch
   * unifies the type and task definitions into one table
   * types and tasks are represented by a AntTypeDefinition object
   * taskadapter has been generalized to a typeadapter
   * <typedef/> has a number of new attributes:
       - adapter
       - adaptto
       - onerror
   * <taskdef/> html page updated to refer to <typedef/> page

PR: 19897
Submitted by:	Peter Reilly
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274718 13f79535-47bb-0310-9956-ffa450edef68
2003-06-26 08:54:29 +00:00
Stefan Bodewig
db672be888 2003 and some 'since' information
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274704 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 15:28:23 +00:00