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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
setAntfile
(String pattern) void
setOnlyonce
(boolean onlyonce) void
void
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
-
AntBuildTrigger
public AntBuildTrigger()
-
-
Method Details
-
progress
- Specified by:
progress
in interfaceIvyListener
-
getBuildFilePattern
-
setAntfile
-
getTarget
-
setTarget
-
isOnlyonce
public boolean isOnlyonce() -
setOnlyonce
public void setOnlyonce(boolean onlyonce) -
getPrefix
-
setPrefix
-