Peter Reilly
39a371ce20
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275006 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
Peter Reilly
94a192bb79
Fix location when error occurs in running antlib
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275004 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
6c898aeb37
Upgrade to Xerces-J 2.5.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275003 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
2c905033e5
I always worry when I change something fundamental, and the amount of refactoring here to get assertions in 'cleanly' means the change here is larger than one would expect. The key problem is that the existing code created presized arrays, but sizing these arrays meant resolving every single option and counting the #of commands -effectively creating the command line twice. Once to size it, once to save the results. this was silly and unwieldy, though it made sense given how this command grew and grew.
Most of the diff is changing CommandLine and CommmandLineJava to append their info to a supplied ListIterator, so that we dont need to create string arrays and keep on appending them. All the old stuff is still there, but used less -certainly not used at all by CommandLineJava.
No assertion tests yet...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275002 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
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
22 years ago
Steve Loughran
45cfe2ada1
add the ability to set the executable used in .net tasks. Why do this
(a) so you can refer to versions off the path (useful for multiple versions)
(b) so you can use other implementations than the windows one.
Specifically, Mono Csharp compiler, msc, apparently uses the same syntax as csc if desired. We will have to test this... I suppose we could test Rotor too, but I cant be bothered
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275000 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
e4e82cee37
I cant believe we never noticed this typo before
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274999 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
5f0938c6cf
want to catch failure to fork here.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274998 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
eebb110dc8
fix a couple of IDE highighted jdoc typos
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274997 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
92f14c6a3d
Display properly in junitreport the root package
PR: 21915
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@274996 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
dace404953
Improve logging and exception behavior of Perforce tasks
PR: 18154
Submitted by: Matt Bishop (Matt at thebishops dot org)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274995 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
d74422c5bd
Fix invalid URL for property test with url.
PR: 21948
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274994 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
00e6624c19
TestCase fixed, works now also on nagoya (Solaris).
The problem was that I did not allow enough time for java to start.
1 second is OK, 400 millis were not enough.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274993 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
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
22 years ago
Stefan Bodewig
39e82431e7
Keep permissions of directories as well when updating a zip archive.
PR: 21308
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274991 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
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
22 years ago
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
22 years ago
Antoine Levy-Lambert
57823da95d
suppress unnecessary output from the test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274988 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
15cf412481
Allow several space separated arguments in Perforce globalopts
PR: 14395
Submitted by: Matt Bishop (matt at thebishops dot org)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274987 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
5dc5a2c333
grammar ... sorry :-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274986 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
4d60eb3197
Similarly to what happens with the delete task, there seem to be race conditions which prevent successful directory creation on Windows.
This change allows a second try.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274985 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
8b8cea1e30
the method isMorePowerfulThanExcludes was returning false on org/apache/tools/ant/taskdefs
in the run-tests target of our buildfile because of the exclude pattern :
<exclude name="${ant.package}/taskdefs/TaskdefTest*Task.java"/>
:-(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274984 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
7fb63d79c6
new testcase
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274983 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
adf6160f99
throw an exception if <exec/> is used with an attribute
which is incompatible with spawn and spawn=true.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274982 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
878f79b89b
added 2 new entries to WHATSNEW
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274981 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
92245fefff
Some ftp servers have binary as default, so when binary is false
it is good to set explicitly the ascii mode for the transfer.
Problem reported by Michael Nebus (Michael dot Nebus at Pfizer dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274980 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
6ff7df9601
do not scan needlessly excluded directories
PR: 21941
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274979 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
edecdeb15f
adding 3 tests showing how include and exclude patterns together interact
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274978 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
849c8815e3
avoid spurious ${baseScratchDest} directory
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274977 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
69d9682d5d
Some tasks rely on the DFS ordering getIncludedXYZ used to provide
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274976 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c5aff48932
copyright-date
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274975 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
01c75268c3
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274974 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
0f80c4436c
JDK 1.2 compatibility
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274973 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
f8ec337892
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274972 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
d70354a617
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274971 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
69e7d88d2e
changed the implementation of testChildrenOfExcludedDirectory
to use the new test bed system
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274970 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
7e82bff60d
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274969 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
3efe482d70
this time, this test really behaves well !!!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274968 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
60b87206ab
converted to UNIX format, there were some backslash rs checked in
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274967 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
7aff2d5b92
test really works now, thats better.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274966 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
f0724e7b09
new files for tests of the exec task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274965 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
213a09bb50
Add a testcase demonstrating the use of spawn
PR: 5907
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274964 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
640b7f41f0
Prevent \r\n from being changed to \r\r\n under Windows
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274962 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
92ff35184e
new testcase to show a problem on Windows with \r\n being replaced to \r\r\n
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274961 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
Antoine Levy-Lambert
8fd6c92f92
readded xml-apis.jar and xercesImpl.jar in the classpath for the build scripts afer discussion with Conor McNeill.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274959 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
1f9f28daf8
PR: 21520
throw an exception if input file does not exist
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274958 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
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
22 years ago