org.apache.ivy.ant

Class AntBuildTrigger

public class AntBuildTrigger extends AbstractTrigger implements Trigger

Triggers an ant build on an event occurence.

Example of use:

 <ant-build-trigger event="pre-resolve-dependency" 
                    filter="revision=latest.integration"
                    antfile="/path/to/[module]/build.xml" 
                    target="compile"/>
 
Triggers an ant build for any dependency in asked in latest.integration, just before resolving the dependency.

The onlyonce property is used to tell if the ant build should be triggered only once, or several times in the same build.

Since: 1.4

See Also: AntCallTrigger

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

Method Detail

getBuildFilePattern

public String getBuildFilePattern()

getPrefix

public String getPrefix()

getTarget

public String getTarget()

isOnlyonce

public boolean isOnlyonce()

progress

public void progress(IvyEvent event)

setAntfile

public void setAntfile(String pattern)

setOnlyonce

public void setOnlyonce(boolean onlyonce)

setPrefix

public void setPrefix(String prefix)

setTarget

public void setTarget(String target)