Package org.apache.ivy.ant
Class AntBuildTrigger
java.lang.Object
org.apache.ivy.plugins.trigger.AbstractTrigger
org.apache.ivy.ant.AntBuildTrigger
- All Implemented Interfaces:
EventListener,IvyListener,Trigger
Triggers an ant build on an event occurrence.
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Collection<String>private booleanprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FilegetBuildFile(IvyEvent event) private booleanbooleanprivate voidvoidvoidsetAntfile(String pattern) voidsetOnlyonce(boolean onlyonce) voidvoidMethods inherited from class org.apache.ivy.plugins.trigger.AbstractTrigger
getEvent, getEventFilter, getFilter, getMatcher, setEvent, setFilter, setMatcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ivy.plugins.trigger.Trigger
getEventFilter
-
Field Details
-
onlyOnce
private boolean onlyOnce -
target
-
builds
-
buildFilePattern
-
prefix
-
-
Constructor Details
-
AntBuildTrigger
public AntBuildTrigger()
-
-
Method Details
-
progress
- Specified by:
progressin interfaceIvyListener
-
markBuilt
-
isBuilt
-
getBuildFile
-
getBuildFilePattern
-
setAntfile
-
getTarget
-
setTarget
-
isOnlyonce
public boolean isOnlyonce() -
setOnlyonce
public void setOnlyonce(boolean onlyonce) -
getPrefix
-
setPrefix
-