Browse Source

bash completion failes if ant throws an exception. Submitted by Omer Shapira. PR 48980

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@927416 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
520de2a8f4
4 changed files with 10 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +4
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +1
    -1
      src/script/complete-ant-cmd.pl

+ 1
- 0
CONTRIBUTORS View File

@@ -237,6 +237,7 @@ Nico Seessle
Nigel Magnay
Oliver Merkel
Oliver Rossmueller
Omer Shapira
Oystein Gisnas
Patrick C. Beard
Patrick Chanezon


+ 4
- 0
WHATSNEW View File

@@ -64,6 +64,10 @@ Fixed bugs:
* email : IO error sending mail with plain mimetype
Bug 48932

* the complete-ant-cmd.pl script failed to create a proper cache of
target if "ant -p" failed.
Bugzilla Report 48980

Other changes:
--------------



+ 4
- 0
contributors.xml View File

@@ -973,6 +973,10 @@
<first>Oliver</first>
<last>Rossmueller</last>
</name>
<name>
<first>Omer</first>
<last>Shapira</last>
</name>
<name>
<first>&#216;ystein</first>
<last>Gisn&#229;s</last>


+ 1
- 1
src/script/complete-ant-cmd.pl View File

@@ -83,7 +83,7 @@ sub getTargets {
# cache-file.
my $cacheFile = $buildFile;
$cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|;
if ((!-e $cacheFile) || (-M $buildFile) < (-M $cacheFile)) {
if ((!-e $cacheFile) || (-z $cacheFile) || (-M $buildFile) < (-M $cacheFile)) {
open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n";
open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return();
my %targets;


Loading…
Cancel
Save