org.apache.ivy.ant

Class AntCallTrigger

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

Method Summary
StringgetPrefix()
StringgetTarget()
booleanisOnlyonce()
voidprogress(IvyEvent event)
voidsetOnlyonce(boolean onlyonce)
voidsetPrefix(String prefix)
voidsetTarget(String target)

Method Detail

getPrefix

public String getPrefix()

getTarget

public String getTarget()

isOnlyonce

public boolean isOnlyonce()

progress

public void progress(IvyEvent event)

setOnlyonce

public void setOnlyonce(boolean onlyonce)

setPrefix

public void setPrefix(String prefix)

setTarget

public void setTarget(String target)