com.sun.javacard.ant.tasks
Class MaskgenTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.Java
              extended bycom.sun.javacard.ant.tasks.JavacardTaskBase
                  extended bycom.sun.javacard.ant.tasks.MaskgenTask

public class MaskgenTask
extends JavacardTaskBase

Encapsulates call to Maskgen to generate a mask file from input JCA files


Field Summary
protected static java.lang.String className
          Maskgen class name
protected  java.lang.String configFileName
          configuration file name
protected  boolean debugInfo
          indicates if debugInfo flag is to be set or not
protected  java.lang.String generator
          Generator (could be cref, jref etc)
protected  java.util.ArrayList inputJCAs
          List of input JCA files
protected  boolean mem32BitFlag
          flag to indicate if 32-bit reference size is to be used or not
protected  java.lang.String outFileName
          Output file name
 
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
MaskgenTask()
           
 
Method Summary
 void addJCAInputFile(JCAInputFile inputFile)
          adds an input JCA file
 void execute()
          Executes the task
 void setConfigFile(java.lang.String configName)
          sets the configuration file name
 void setDebugInfo(boolean on)
           
 void setGenerator(java.lang.String generator)
          sets the generator (cref, jref etc)
 void setMemRefSize(int memRefSize)
          sets the memory reference size
 void setOutFile(java.lang.String outFileName)
          sets the output file name
 
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

className

protected static final java.lang.String className
Maskgen class name

See Also:
Constant Field Values

configFileName

protected java.lang.String configFileName
configuration file name


mem32BitFlag

protected boolean mem32BitFlag
flag to indicate if 32-bit reference size is to be used or not


outFileName

protected java.lang.String outFileName
Output file name


generator

protected java.lang.String generator
Generator (could be cref, jref etc)


debugInfo

protected boolean debugInfo
indicates if debugInfo flag is to be set or not


inputJCAs

protected java.util.ArrayList inputJCAs
List of input JCA files

Constructor Detail

MaskgenTask

public MaskgenTask()
Method Detail

setConfigFile

public void setConfigFile(java.lang.String configName)
sets the configuration file name

Parameters:
configName - the name of the config file

setOutFile

public void setOutFile(java.lang.String outFileName)
sets the output file name

Parameters:
outFileName - the name of the output file

setMemRefSize

public void setMemRefSize(int memRefSize)
sets the memory reference size

Parameters:
memRefSize - is the size of memory reference in target mask file

setDebugInfo

public void setDebugInfo(boolean on)

setGenerator

public void setGenerator(java.lang.String generator)
sets the generator (cref, jref etc)

Parameters:
generator - string

addJCAInputFile

public void addJCAInputFile(JCAInputFile inputFile)
adds an input JCA file

Parameters:
inputFile - contains input JCA file name or input file name that contains list of JCA file names

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the task

Throws:
org.apache.tools.ant.BuildException


Copyright © 2005 Sun Microsystems, Inc. 4150 Network Circle,
Santa Clara, CA-95054, U.S.A. All Rights Reserved.