Package org.apache.ivy.ant
Class AntCallTrigger
java.lang.Object
org.apache.ivy.plugins.trigger.AbstractTrigger
org.apache.ivy.ant.AntCallTrigger
- All Implemented Interfaces:
EventListener
,IvyListener
,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 Summary
Constructors -
Method Summary
Methods inherited from class org.apache.ivy.plugins.trigger.AbstractTrigger
getEvent, getEventFilter, getFilter, getMatcher, setEvent, setFilter, setMatcher
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.ivy.plugins.trigger.Trigger
getEventFilter
-
Constructor Details
-
AntCallTrigger
public AntCallTrigger()
-
-
Method Details
-
progress
- Specified by:
progress
in interfaceIvyListener
-
getTarget
-
setTarget
-
isOnlyonce
public boolean isOnlyonce() -
setOnlyonce
public void setOnlyonce(boolean onlyonce) -
getPrefix
-
setPrefix
-