diff options
Diffstat (limited to 'src/script/complete-ant-cmd.pl')
| -rw-r--r-- | src/script/complete-ant-cmd.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/complete-ant-cmd.pl b/src/script/complete-ant-cmd.pl index b58c26e15..37891241b 100644 --- a/src/script/complete-ant-cmd.pl +++ b/src/script/complete-ant-cmd.pl @@ -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; |
