Class AntCallTrigger

All Implemented Interfaces:
EventListener, IvyListener, Trigger

public class AntCallTrigger extends AbstractTrigger implements Trigger
Triggers an call to an ant target on an event occurrence.

This trigger only works when ivy is called from an ant build file, otherwise the trigger only log a failure.

Example of use in an ivysettings file:

 <ant-call-trigger event="post-download-artifact" filter="type=zip"
 target="unzip"/>
 
Triggers a call to the target "unzip" for any downloaded artifact of type zip
Since:
1.4
See Also:
  • Constructor Details

    • AntCallTrigger

      public AntCallTrigger()
  • Method Details

    • progress

      public void progress(IvyEvent event)
      Specified by:
      progress in interface IvyListener
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • isOnlyonce

      public boolean isOnlyonce()
    • setOnlyonce

      public void setOnlyonce(boolean onlyonce)
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)