An abstract base class for creating tasks that create script wrappers.
Constructor and description |
---|
protected AbstractScriptWrapperTask
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
exec() |
|
protected String |
getBeginToken() If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method will return the start token delimiter. |
|
protected String |
getEndToken() If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method will return the end token delimiter. |
|
protected java.util.Map<String, String> |
getTokenValuesAsMap() If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method will return the collection of tokens. |
|
protected File |
getWrapperDestinationDir() Directory for writing wrapper files to. |
|
protected void |
setDeleteTemplatesAfterUsage(boolean del) Whether templates should be deleted after usage. |
|
protected void |
useWrapperTemplatesInResources(String templateResourcePath, java.util.Map<String, String> templateMapping) Use wrapper templates from resources classpath |
If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method
will return the start token delimiter.
The default is @
. Implementors should override this method.
If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method
will return the end token delimiter.
The default is @
. Implementors should override this method.
If the default of org.apache.tools.ant.filters.ReplaceTokens is used, this method will return the collection of tokens. The default is an empty map. Implementors should override this method.
Directory for writing wrapper files to.
Whether templates should be deleted after usage. This might be necessary if templates are copied to a temporary space.
del
- true
if templates should be deleted.