Bugzilla Report 57371 Submitted by Christian Schmidtmaster
@@ -53,6 +53,7 @@ Charles Hudak | |||||
Charlie Hubbard | Charlie Hubbard | ||||
Chris Povirk | Chris Povirk | ||||
Christian Knorr | Christian Knorr | ||||
Christian Schmidt | |||||
Christoph Gysin | Christoph Gysin | ||||
Christoph Wilhelms | Christoph Wilhelms | ||||
Christophe Labouisse | Christophe Labouisse | ||||
@@ -52,6 +52,9 @@ Fixed bugs: | |||||
* <junitreport> now supports nested <classpath> and <factory> elements. | * <junitreport> now supports nested <classpath> and <factory> elements. | ||||
Bugzilla Report 47002 | Bugzilla Report 47002 | ||||
* complete-ant-cmd.pl now also knows about the -file option. | |||||
Bugzilla Report 57371 | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
@@ -59,6 +62,10 @@ Other changes: | |||||
when using the timestamped authority. | when using the timestamped authority. | ||||
Bugzilla Report 56678 | Bugzilla Report 56678 | ||||
* complete-ant-cmd.pl now also analyzes the ANT_ARGS environment | |||||
variable. | |||||
Bugzilla Report 57371 | |||||
Changes from Ant 1.9.3 TO Ant 1.9.4 | Changes from Ant 1.9.3 TO Ant 1.9.4 | ||||
=================================== | =================================== | ||||
@@ -233,6 +233,10 @@ | |||||
<first>Christian</first> | <first>Christian</first> | ||||
<last>Knorr</last> | <last>Knorr</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Christian</first> | |||||
<last>Schmidt</last> | |||||
</name> | |||||
<name> | <name> | ||||
<first>Christoph</first> | <first>Christoph</first> | ||||
<last>Gysin</last> | <last>Gysin</last> | ||||
@@ -31,14 +31,14 @@ | |||||
# } | # } | ||||
# compctl -K ant_complete ant build.sh | # compctl -K ant_complete ant build.sh | ||||
my $cmdLine = $ENV{'COMP_LINE'}; | |||||
my $cmdLine = "$ENV{'ANT_ARGS'} $ENV{'COMP_LINE'}"; | |||||
my $antCmd = $ARGV[0]; | my $antCmd = $ARGV[0]; | ||||
my $word = $ARGV[1]; | my $word = $ARGV[1]; | ||||
my @completions; | my @completions; | ||||
if ($word =~ /^-/) { | if ($word =~ /^-/) { | ||||
list( restrict( $word, getArguments() )); | list( restrict( $word, getArguments() )); | ||||
} elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) { | |||||
} elsif ($cmdLine =~ /-(f|file|buildfile)\s+\S*$/) { | |||||
list( getBuildFiles($word) ); | list( getBuildFiles($word) ); | ||||
} else { | } else { | ||||
list( restrict( $word, getTargets() )); | list( restrict( $word, getTargets() )); | ||||
@@ -58,7 +58,7 @@ sub restrict { | |||||
} | } | ||||
sub getArguments { | sub getArguments { | ||||
qw(-buildfile -debug -emacs -f -find -help -listener -logfile | |||||
qw(-buildfile -debug -emacs -f -file -find -help -listener -logfile | |||||
-logger -projecthelp -quiet -verbose -version); | -logger -projecthelp -quiet -verbose -version); | ||||
} | } | ||||
@@ -72,7 +72,7 @@ sub getTargets { | |||||
# Look for build-file | # Look for build-file | ||||
my $buildFile = 'build.xml'; | my $buildFile = 'build.xml'; | ||||
if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) { | |||||
if ($cmdLine =~ /-(f|file|buildfile)\s+(\S+)(?!.*\s-(f|file|buildfile)\s)/) { | |||||
$buildFile = $2; | $buildFile = $2; | ||||
} | } | ||||
return () unless (-f $buildFile); | return () unless (-f $buildFile); | ||||