org.apache.ivy.ant
Class AntCallTrigger
java.lang.Object
org.apache.ivy.plugins.trigger.AbstractTrigger
org.apache.ivy.ant.AntCallTrigger
- All Implemented Interfaces:
- java.util.EventListener, IvyListener, Trigger
public class AntCallTrigger
- extends AbstractTrigger
- implements Trigger
Triggers an call to an ant target on an event occurence.
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:
AntBuildTrigger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntCallTrigger
public AntCallTrigger()
progress
public void progress(IvyEvent event)
- Specified by:
progress
in interface IvyListener
getTarget
public java.lang.String getTarget()
setTarget
public void setTarget(java.lang.String target)
isOnlyonce
public boolean isOnlyonce()
setOnlyonce
public void setOnlyonce(boolean onlyonce)
getPrefix
public java.lang.String getPrefix()
setPrefix
public void setPrefix(java.lang.String prefix)