public static final class ProjectHooks.ProjectXmlSavedHookBuilder extends Object
ProjectXmlSavedHook
implementation.@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder addPreAction(@NonNull Runnable action)
ProjectXmlSavedHook.projectXmlSaved()
.action
- the action to be added.ProjectHooks.ProjectXmlSavedHookBuilder
@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder addPostAction(@NonNull Runnable action)
ProjectXmlSavedHook.projectXmlSaved()
.action
- the action to be added.ProjectHooks.ProjectXmlSavedHookBuilder
@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder setBuildTemplate(@NonNull URL template)
template
- the URL
of the templateProjectHooks.ProjectXmlSavedHookBuilder
@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder setBuildImplTemplate(@NonNull URL template)
template
- the URL
of the templateProjectHooks.ProjectXmlSavedHookBuilder
@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder setBuildScriptProperty(@NonNull String propertyName)
ProjectProperties.BUILD_SCRIPT
is used.propertyName
- the name of property holding the name of project's build script.ProjectOperations.ProjectOperationsBuilder
@NonNull public ProjectHooks.ProjectXmlSavedHookBuilder setOverrideModifiedBuildImplPredicate(@NonNull Callable<Boolean> predicate)
predicate
- the predicate returning true if the user modified build-impl.xml should
be backed up and regenerated.ProjectHooks.ProjectXmlSavedHookBuilder
@NonNull public ProjectXmlSavedHook build()
ProjectXmlSavedHook
.ProjectXmlSavedHook
instance