public class WritePomTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
WritePomTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
File |
getFile() |
String |
getPomRefId() |
boolean |
isTrim() |
void |
setFile(File file) |
void |
setPomRefId(String pomRefId) |
void |
setTrim(boolean trim) |
void |
trimModel(org.apache.maven.model.Model model)
Removes a lot of unnecessary information from the POM.
|
void |
writeModel(org.apache.maven.model.Model model,
File outputFile)
Write a POM model to a file
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute()
execute
in class org.apache.tools.ant.Task
public void trimModel(org.apache.maven.model.Model model)
public void writeModel(org.apache.maven.model.Model model, File outputFile) throws org.apache.tools.ant.BuildException
model
- MojoExecutionException
org.apache.tools.ant.BuildException
public void setPomRefId(String pomRefId)
public String getPomRefId()
public void setFile(File file)
public File getFile()
public void setTrim(boolean trim)
public boolean isTrim()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.