|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Java
com.sun.javacard.ant.tasks.JavacardTaskBase
com.sun.javacard.ant.tasks.ConverterTask
Defines an ANT task to run the Java Card(TM) converter. See the http://java.sun.com/prodcuts.javacard for more informations. Wraps the call com.sun.javacard.converter.Converter in its own Ant task derived from the standard Java Task that comes with the Ant distribution.
Field Summary | |
protected java.util.ArrayList |
applets
List of applets in the package being converted |
protected org.apache.tools.ant.types.Path |
classDir
base class directory |
protected java.io.File |
configfile
configuration file |
protected boolean |
debug
Flag to indicate if debug flag should be on or off |
protected boolean |
exportmap
Indicates if exportmap option should be used |
protected org.apache.tools.ant.types.Path |
exportPath
path to export files |
protected boolean |
intSupport
Indicates if int support is required for the package being converted |
protected java.lang.String |
majorminorVersion
package version number (combination of minor and major version numbers) |
protected boolean |
mask
Indicates if this package is to be included in mask (rules on native methods are eased for this package) |
protected boolean |
noverify
Indicates if verification is going to be performed after conversion or not |
protected boolean |
nowarn
indicates if converter should output warning messages or not |
protected boolean |
outCAP
Turns the output of CAP file on or off |
protected boolean |
outEXP
Turns the output of EXP file on or off |
protected boolean |
outJCA
Turns the output of JCA file on or off |
protected org.apache.tools.ant.types.Path |
outputDir
output directory |
protected java.lang.String |
packageAID
package AID |
protected java.lang.String |
packageName
package name |
protected boolean |
verbose
Indicates if verbose flag is on or off |
Fields inherited from class com.sun.javacard.ant.tasks.JavacardTaskBase |
bundleName, messages, noBanner, version |
Fields inherited from class org.apache.tools.ant.taskdefs.Java |
redirector, redirectorElement |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ConverterTask()
|
Method Summary | |
void |
addConfiguredAppletnameaid(AppletNameAID appletaid)
Adds the applet names instance aids can be several |
org.apache.tools.ant.types.Path |
createExportpath()
used to handle a nested path element for the export file path |
void |
execute()
Builds the commandline of the converter and starts the converter. |
void |
setCap(boolean on)
switches CAP file generation in the output |
void |
setClassdir(org.apache.tools.ant.types.Path classdir)
set the path to the class directory of the package |
void |
setConfigfile(java.io.File config)
Set the location of the config file, overrides all other settings |
void |
setDebug(boolean on)
set the debug flag |
void |
setExp(boolean on)
switches EXP file generation in the output |
void |
setExportmap(boolean on)
set the exportmap flag |
void |
setExportpath(org.apache.tools.ant.types.Path exportPath)
set path to the export files that should be used to generate the export file of the package |
void |
setExportpathRef(org.apache.tools.ant.types.Reference r)
set a refernce to a path element for the export file path |
void |
setInt(boolean on)
switches int support |
void |
setJca(boolean on)
switches JCA file generation in the output |
void |
setMajorminorversion(java.lang.String majorMinor)
set the major and minor version as one String |
void |
setMask(boolean on)
switches maks generation |
void |
setNoverify(boolean on)
switches the noverfier flag. |
void |
setNowarn(boolean on)
switches the nowarn flag |
void |
setOutputdirectory(org.apache.tools.ant.types.Path dir)
set the path to the output directory for the cap, exp and jca files |
void |
setPackageaid(java.lang.String packageAid)
set the package AID of the package to be coverted |
void |
setPackageName(java.lang.String packageName)
sets the package name |
void |
setVerbose(boolean on)
switches the verbose flag |
Methods inherited from class com.sun.javacard.ant.tasks.JavacardTaskBase |
setNoBanner, setupCommonOptions, setVersion |
Methods inherited from class org.apache.tools.ant.taskdefs.Java |
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String packageName
protected java.lang.String packageAID
protected java.lang.String majorminorVersion
protected java.util.ArrayList applets
protected org.apache.tools.ant.types.Path classDir
protected org.apache.tools.ant.types.Path outputDir
protected boolean debug
protected boolean exportmap
protected org.apache.tools.ant.types.Path exportPath
protected boolean intSupport
protected boolean mask
protected boolean noverify
protected boolean nowarn
protected boolean outCAP
protected boolean outJCA
protected boolean outEXP
protected boolean verbose
protected java.io.File configfile
Constructor Detail |
public ConverterTask()
Method Detail |
public void setPackageName(java.lang.String packageName)
packageName
- full qualified name of the package to convertpublic void setPackageaid(java.lang.String packageAid)
packageAid
- AID of the packagepublic void setMajorminorversion(java.lang.String majorMinor)
majorMinor
- version in the form e.g. 1.3public void setClassdir(org.apache.tools.ant.types.Path classdir)
classdir
- path to the class directory of the packagepublic void setOutputdirectory(org.apache.tools.ant.types.Path dir)
dir
- to the outpur directorypublic void setDebug(boolean on)
on
- switches the debug flag on or ofpublic void setExportmap(boolean on)
on
- switches the exportmap flag on or ofpublic void setExportpath(org.apache.tools.ant.types.Path exportPath)
exportPath
- path to the export filespublic org.apache.tools.ant.types.Path createExportpath()
public void addConfiguredAppletnameaid(AppletNameAID appletaid)
appletaid
- combination of applet name and aidpublic void setExportpathRef(org.apache.tools.ant.types.Reference r)
r
- a reference to the exportfiles pathpublic void setInt(boolean on)
on
- switches the integer flag on or off, default is offpublic void setMask(boolean on)
on
- switches mask generation on or off, default is offpublic void setNoverify(boolean on)
on
- switches the noverifier flag on or of,
default is off meaning verificationpublic void setNowarn(boolean on)
on
- switches the nowarn flag on or of,
default is off meaning warnings are givenpublic void setCap(boolean on)
on
- switches the *.cap file generation on of off, default is off, no cap file generationpublic void setJca(boolean on)
on
- switches the *.jca file generation on of off, default is off, no jca file generationpublic void setExp(boolean on)
on
- switches the *.exp file generation on of off, default is off, no exp file generationpublic void setVerbose(boolean on)
on
- switches the verbose on of off, default is off, silent mode.public void setConfigfile(java.io.File config)
config
- the name and location of the config filepublic void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |