org.schmant.task.jdk.jarsigner
Class ExtJarSignerTF

java.lang.Object
  extended by org.schmant.task.stub.AbstractTaskFactory<T,U>
      extended by org.schmant.task.template.process.AbstractExtProcessTaskFactory<ExtJarSignerTF,ExtJarSignerTask>
          extended by org.schmant.task.jdk.jarsigner.ExtJarSignerTF
All Implemented Interfaces:
ActionTaskConfigurable<ExtJarSignerTF>, ActionTaskFactory<ExtJarSignerTF,ExtJarSignerTask>, ArgumentsConfigurable<ExtJarSignerTF>, LoggingConfigurable<ExtJarSignerTF>, OverwriteConfigurable<ExtJarSignerTF>, SourceConfigurable<ExtJarSignerTF>, TargetConfigurable<ExtJarSignerTF>, GeneratorTaskConfigurable<ExtJarSignerTF>, GeneratorTaskFactory<ExtJarSignerTF,ExtJarSignerTask>, ProcessTaskConfigurable<ExtJarSignerTF>, ProcessTaskFactory<ExtJarSignerTF,ExtJarSignerTask>, TaskFactory<ExtJarSignerTF,ExtJarSignerTask>, TaskRunnable, JvmOptionsConfigurable<ExtJarSignerTF>, JavaHomeConfigurable<ExtJarSignerTF>, ExtProcessConfigurable<ExtJarSignerTF>

public final class ExtJarSignerTF
extends AbstractExtProcessTaskFactory<ExtJarSignerTF,ExtJarSignerTask>
implements JavaHomeConfigurable<ExtJarSignerTF>, ProcessTaskFactory<ExtJarSignerTF,ExtJarSignerTask>, OverwriteConfigurable<ExtJarSignerTF>, JvmOptionsConfigurable<ExtJarSignerTF>

Factory for ExtJarSignerTask objects.

See ExtJarSignerTF

Since:
0.7
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Constructor Summary
ExtJarSignerTF()
           
 
Method Summary
 ExtJarSignerTF addAltSignerPath(Object o)
           
 ExtJarSignerTF addAltSignerPaths(Object o)
           
 ExtJarSignerTF addJvmOption(String s)
           
 ExtJarSignerTF addJvmOptions(Object o)
          Add one or several JVM options.
 ExtJarSignerTF addSource(Object o)
          Add one or several sources.
 ExtJarSignerTF addSources(Object o)
          This method does the same as SourceConfigurable.addSource(Object)
 ExtJarSignerTF clearAltSignerPaths()
           
 ExtJarSignerTF clearJvmOptions()
           
 ExtJarSignerTF clearSources()
          Clear the collection of sources.
protected  ExtJarSignerTask createSpecification()
          Subclasses implement this to create the task specification object that this factory uses to configure the task that it is creating.
 ExtJarSignerTF setAltSignerClass(String s)
           
 ExtJarSignerTF setDigestAlgorithm(String s)
           
 ExtJarSignerTF setJarsignerExecutable(Object o)
           
 ExtJarSignerTF setJavaHome(Object o)
           
 ExtJarSignerTF setKeyAlias(String s)
           
 ExtJarSignerTF setKeyPass(char[] carr)
           
 ExtJarSignerTF setKeyPass(String s)
           
 ExtJarSignerTF setKeystore(Object o)
           
 ExtJarSignerTF setKeystorePass(char[] carr)
           
 ExtJarSignerTF setKeystorePass(String s)
           
 ExtJarSignerTF setKeystoreType(String s)
           
 ExtJarSignerTF setOverwrite(boolean b)
          Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning.
 ExtJarSignerTF setOverwriteStrategy(OverwriteStrategy strat)
          Set a strategy for how to react to existing entities in locations where the task wants to write.
 ExtJarSignerTF setProtected(boolean b)
           
 ExtJarSignerTF setProvider(String s)
           
 ExtJarSignerTF setProviderArg(String s)
           
 ExtJarSignerTF setProviderName(String s)
           
 ExtJarSignerTF setRelativeToBase(RelativeLocation rel)
          This property is set with the task's source's location relative to a base location if the task is run within a recursive task.
 ExtJarSignerTF setSigFile(String s)
           
 ExtJarSignerTF setSignatureAlgorithm(String s)
           
 ExtJarSignerTF setSource(Object o)
          Set one or several sources, discarding previously set sources.
 ExtJarSignerTF setSources(Object o)
          This method does the same as SourceConfigurable.setSource(Object)
 ExtJarSignerTF setTarget(Object o)
          Set the target.
 ExtJarSignerTF setTsa(String s)
           
 ExtJarSignerTF setTsaCert(String s)
           
 ExtJarSignerTF setVerbose(boolean b)
           
 
Methods inherited from class org.schmant.task.template.process.AbstractExtProcessTaskFactory
addArgument, addArguments, addEnvironmentVariable, addEnvironmentVariables, clearArguments, clearEnvironmentVariables, setFailOnErrors, setInheritEnvironmentVariables, setStderrStrategy, setStdoutStrategy, setWorkingDirectory
 
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory
copy, create, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.schmant.task.TaskFactory
copy, create, getLastCreated, getSpecification
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 
Methods inherited from interface org.schmant.task.TaskRunnable
run
 

Constructor Detail

ExtJarSignerTF

public ExtJarSignerTF()
Method Detail

setJavaHome

public ExtJarSignerTF setJavaHome(Object o)
Specified by:
setJavaHome in interface JavaHomeConfigurable<ExtJarSignerTF>

setJarsignerExecutable

public ExtJarSignerTF setJarsignerExecutable(Object o)

setKeystore

public ExtJarSignerTF setKeystore(Object o)

setKeystoreType

public ExtJarSignerTF setKeystoreType(String s)

setKeystorePass

public ExtJarSignerTF setKeystorePass(String s)

setKeystorePass

public ExtJarSignerTF setKeystorePass(char[] carr)

setKeyPass

public ExtJarSignerTF setKeyPass(String s)

setKeyPass

public ExtJarSignerTF setKeyPass(char[] carr)

setSigFile

public ExtJarSignerTF setSigFile(String s)

setSignatureAlgorithm

public ExtJarSignerTF setSignatureAlgorithm(String s)

setDigestAlgorithm

public ExtJarSignerTF setDigestAlgorithm(String s)

setProtected

public ExtJarSignerTF setProtected(boolean b)

setProvider

public ExtJarSignerTF setProvider(String s)

setProviderArg

public ExtJarSignerTF setProviderArg(String s)

setProviderName

public ExtJarSignerTF setProviderName(String s)

addJvmOption

public ExtJarSignerTF addJvmOption(String s)
Specified by:
addJvmOption in interface JvmOptionsConfigurable<ExtJarSignerTF>

addJvmOptions

public ExtJarSignerTF addJvmOptions(Object o)
Description copied from interface: JvmOptionsConfigurable
Add one or several JVM options.

Specified by:
addJvmOptions in interface JvmOptionsConfigurable<ExtJarSignerTF>
Parameters:
o - One string or an array or collection of strings. Each string is an JVM option.

clearJvmOptions

public ExtJarSignerTF clearJvmOptions()
Specified by:
clearJvmOptions in interface JvmOptionsConfigurable<ExtJarSignerTF>

setTsa

public ExtJarSignerTF setTsa(String s)

setTsaCert

public ExtJarSignerTF setTsaCert(String s)

setAltSignerClass

public ExtJarSignerTF setAltSignerClass(String s)

addAltSignerPath

public ExtJarSignerTF addAltSignerPath(Object o)

addAltSignerPaths

public ExtJarSignerTF addAltSignerPaths(Object o)

clearAltSignerPaths

public ExtJarSignerTF clearAltSignerPaths()

setKeyAlias

public ExtJarSignerTF setKeyAlias(String s)

setVerbose

public ExtJarSignerTF setVerbose(boolean b)

setOverwrite

public ExtJarSignerTF setOverwrite(boolean b)
Description copied from interface: OverwriteConfigurable
Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning. If this is set to false, it is equivalent to setting the overwrite strategy to DontOverwriteAndLogWarning.

Specified by:
setOverwrite in interface OverwriteConfigurable<ExtJarSignerTF>
Parameters:
b - Should things be overwritten?
Returns:
this

setOverwriteStrategy

public ExtJarSignerTF setOverwriteStrategy(OverwriteStrategy strat)
Description copied from interface: OverwriteConfigurable
Set a strategy for how to react to existing entities in locations where the task wants to write.

Specified by:
setOverwriteStrategy in interface OverwriteConfigurable<ExtJarSignerTF>
Parameters:
strat - The overwrite strategy.
Returns:
this

setSource

public ExtJarSignerTF setSource(Object o)
Description copied from interface: SourceConfigurable
Set one or several sources, discarding previously set sources.

Specified by:
setSource in interface SourceConfigurable<ExtJarSignerTF>
Parameters:
o - The source. If this is a Collection or an array, it is flattened (see FlatteningList), and all objects in the collection or array are set.
Returns:
this

setSources

public ExtJarSignerTF setSources(Object o)
Description copied from interface: SourceConfigurable
This method does the same as SourceConfigurable.setSource(Object)

Specified by:
setSources in interface SourceConfigurable<ExtJarSignerTF>
Parameters:
o - The source or sources.
Returns:
this

addSource

public ExtJarSignerTF addSource(Object o)
Description copied from interface: SourceConfigurable
Add one or several sources.

Specified by:
addSource in interface SourceConfigurable<ExtJarSignerTF>
Parameters:
o - The source. If this is a Collection or an array, it is flattened (see FlatteningList), and all sources in the collection or array are added.
Returns:
this

addSources

public ExtJarSignerTF addSources(Object o)
Description copied from interface: SourceConfigurable
This method does the same as SourceConfigurable.addSource(Object)

Specified by:
addSources in interface SourceConfigurable<ExtJarSignerTF>
Parameters:
o - The source or sources.
Returns:
this

clearSources

public ExtJarSignerTF clearSources()
Description copied from interface: SourceConfigurable
Clear the collection of sources.

Specified by:
clearSources in interface SourceConfigurable<ExtJarSignerTF>
Returns:
this.

setTarget

public ExtJarSignerTF setTarget(Object o)
Description copied from interface: TargetConfigurable
Set the target.

Specified by:
setTarget in interface TargetConfigurable<ExtJarSignerTF>
Parameters:
o - The target.
Returns:
this

setRelativeToBase

public ExtJarSignerTF setRelativeToBase(RelativeLocation rel)
Description copied from interface: SourceConfigurable
This property is set with the task's source's location relative to a base location if the task is run within a recursive task. The base location is the location of the source of the recursive task.

If the SourceConfigurable (this object) is an action task factory that is used in a recursive action task, the recursive action task sets this property for each created task.

Specified by:
setRelativeToBase in interface SourceConfigurable<ExtJarSignerTF>
Parameters:
rel - The source's location relative to the base location.
Returns:
this

createSpecification

protected ExtJarSignerTask createSpecification()
Description copied from class: AbstractTaskFactory
Subclasses implement this to create the task specification object that this factory uses to configure the task that it is creating.

Specified by:
createSpecification in class AbstractTaskFactory<ExtJarSignerTF,ExtJarSignerTask>