Browse Source

Backwards logic in newer check.

Regen .ant_targets only if it's newer than build.xml? Yeah, that seems wrong.
Chris Peterson 10 years ago
parent
commit
7f636ba590
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/ant/ant.plugin.zsh

+ 1 - 1
plugins/ant/ant.plugin.zsh

@@ -1,6 +1,6 @@
 _ant_does_target_list_need_generating () {
 _ant_does_target_list_need_generating () {
   [ ! -f .ant_targets ] && return 0;
   [ ! -f .ant_targets ] && return 0;
-  [ .ant_targets -nt build.xml ] && return 0;
+  [ build.xml -nt .ant_targets ] && return 0;
   return 1;
   return 1;
 }
 }