public static final class AntTargetExecutor.Env extends Object
Constructor and Description |
---|
Env()
Create instance of Env class describing environment for Ant target execution.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getConcealedProperties()
Returns names of the properties whose values should not be visible to the user.
|
OutputStream |
getLogger()
Get output stream.
|
Properties |
getProperties()
Get current Ant script execution properties.
|
int |
getVerbosity()
Get verbosity of Ant script execution.
|
void |
setConcealedProperties(Set<? extends String> properties)
Sets names of the properties whose values should not be visible to the user.
|
void |
setLogger(OutputStream outputStream)
Deprecated.
Usage of a custom output stream is not recommended, and prevents some
Ant module features from working correctly.
|
void |
setPreferredName(String name)
Sets the preferred name for output windows.
|
void |
setProperties(Properties p)
Set properties of Ant script execution.
|
void |
setSaveAllDocuments(boolean shouldSave)
Overrides the default save all behavior.
|
void |
setTabReplaceStrategy(java.util.function.Predicate<String> canReplace,
java.util.function.Predicate<String> canBeReplaced)
Sets the output tab replacement strategy.
|
void |
setUserAction(boolean userAction)
Marks the execution as an user action.
|
void |
setVerbosity(int v)
Set verbosity of Ant script execution.
|
public Env()
public void setVerbosity(int v)
v
- the new verbosity (e.g. AntEvent.LOG_VERBOSE
)public int getVerbosity()
AntEvent.LOG_VERBOSE
)public void setProperties(Properties p)
p
- a set of name/value pairs passed to Ant (will be cloned)public Properties getProperties()
@Deprecated public void setLogger(OutputStream outputStream)
outputStream
- a stream to send output to, or null
to resetAntOutputStream
public OutputStream getLogger()
null
public void setConcealedProperties(@NonNull Set<? extends String> properties)
properties
- the names of properties to be concealed@NonNull public Set<String> getConcealedProperties()
Set
of property namespublic void setSaveAllDocuments(boolean shouldSave)
shouldSave
- if true all modified documents are saved before running Ant.public void setPreferredName(@NullAllowed String name)
name
- the preferred name in case of null the name is assigned automaticallypublic void setTabReplaceStrategy(@NonNull java.util.function.Predicate<String> canReplace, @NonNull java.util.function.Predicate<String> canBeReplaced)
AntTargetExecutor
are closed by successive run. This behavior can be overridden
by this method.canReplace
- the Predicate
used to decide if this execution
can replace existing tab. The predicate parameter is a name of tab being replaced.canBeReplaced
- the Predicate
used to decide if tab can be
replaced by a new execution. The predicate parameter is a name of a tab being created.public void setUserAction(boolean userAction)
BuildExecutionSupport
.
By default the execution is an user action.userAction
- if true the execution is registered into
the BuildExecutionSupport