A couple additional pieces of information here which may be useful
regarding my target dependency issue.  First, this target (called guard) is
calling an external java program called retroguard via the <java> task and
I'm beginning to think that this task is somehow causing ant to quit
prematurely.  I tried using antcall to call guard from within the middle of
another target and discovered that execution seems to stop at the
completion of the guard target even though the calling task has stuff left
to complete.  The guard task doesn't appear to be generating any errors
though and as far as I can tell is working correctly.

Here is the guard target:

  <target name="guard" depends="jar">
    <java classname="RetroGuard">
        <arg line="${build.lib}/xyz.jar ${build.lib}/xyz_rg.jar
unretro.list" />
        <classpath>
           <pathelement location="retroguard.jar" />
          <pathelement location="${build.lib}/activation.jar" />
          <other pathelements....... />
        </classpath>
    </java>
  </target>

Again, thanks for your thoughts.

> Hi All,

> A couple questions please:

> 1) I'm confused regarding the execution of targets.  The manual states
that
> "If no if and no unless attribute is present, the target will always be
> executed."  Yet I've got an instance where if I specify a certain
> dependency via "depends=" then my target doesn't seem to execute.  If I
> specify other dependencies instead of this one that fails, things seem to
> work ok.  Is there something about a target which can cause a target
which
> depends on it to not execute?

> 2) Is it possible to update, or add new files to an existing jar file
using
> the jar task, or must I recreate the entire jar from scratch?


Thanks,
John Gerken
Web Services Toolkit Development
IBM Emerging Technologies Software Group
[EMAIL PROTECTED]

Reply via email to