I also refactored the task a little bit to support directly primitive types such as
int or boolean and fixed a couple of mistakes about error handling in the original code.
It should be a good starting point for further refactoring.
pr: 5138, 5187
by: stevec@ignitesports.com (Steve Cohen)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270091 13f79535-47bb-0310-9956-ffa450edef68
Didn't worry too much about WaitFor's backward compatibility issues as it is hardly a week old.
WaitFor has ben modified this way so that it is consistent with Tstamp and takes in enumerated attributes for unit instead of allowing arbitrary letters/ words suffixed to the time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270074 13f79535-47bb-0310-9956-ffa450edef68
timeout occurs.
Submitted by: Denis Hennessy <denis@network365.com>
As a side effect, <condition> gains two new conditions. This also
means we now have a way to check whether we are on a networked system
and run/omit testcases that require network to be established based on
such a condition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270050 13f79535-47bb-0310-9956-ffa450edef68
This is documented upfront. Also added some more stuff to the file while I was at it, including a list of platforms ant runs happily on. The implicit message there is 'if it doesnt work, it is your fault :-)'
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270037 13f79535-47bb-0310-9956-ffa450edef68
transformer.setOutputProperty(OutputKeys.METHOD, type);
Background/rationalle: I'm looking into spliting Gumps gen.bat and gen.sh
scripts into a minimal bootstrap and a normal Ant "build.xml". In order
to achieve this, I need access to the functionallity that Xalan supports
from the command line via the -text parameter.
I've provided an implementation to seed the discussion on how this should
be supported. I am by no means wedded to this approach - if others see a
better way, either let me know or directly make the change.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270023 13f79535-47bb-0310-9956-ffa450edef68
previously added to Untar, Unjar, Unwar and Unzip, so that these tasks stay
focussed on unarchival and nothing but it.
2. If the Src attribute represents a directory, an exception is thrown, as Stefan
suggested. Nested Filesets to be used instead.
3. Testcase added to catch this exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269985 13f79535-47bb-0310-9956-ffa450edef68
2. Added 2 new attributes to these tasks - outfile and verbose
3. Nested Patternsets can be used to specify what files are to be extracted from within the archive.
4. Nested Filesets can be specified to select previously archived files for unarchival (PR: 3074)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269973 13f79535-47bb-0310-9956-ffa450edef68
This should mark the last change to echo.html for a while. Except.
We say that message is required unless text is provided, but in fact
<echo/> is perfectly valid, is it not?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269972 13f79535-47bb-0310-9956-ffa450edef68
Bug 4899 reported by David Holscher <David.Holscher@nav-international.com>
I copied the code snippet that Stefan did for JUnit. Thanks Stefan.
I added the possibility to specify a classpath and jvm args to ANTLR and fixed the code so that the working dir is not mandatory as specified in the docs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269952 13f79535-47bb-0310-9956-ffa450edef68
RFE requested by Andrew McConnell <mcconnell@socketware.com>
Heavily based on the patch from Magesh Umasankar <umagesh@rediffmail.com>
Errh, I just realized the full patch was in the first attachment, I though Magesh forgot to update the mail task. Doh ! :-(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269923 13f79535-47bb-0310-9956-ffa450edef68