com.sun.javacard.ant.tasks
Class ScriptgenTask

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.ScriptgenTask

public class ScriptgenTask
extends JavacardTaskBase

This class is responsible for invoking Scriptgen to generate APDU script files from CAP files.


Field Summary
protected  java.lang.String capName
          Name of CAP file
protected  boolean noBeginEnd
          If this paramter is true, CAP Begin and CAP end are not included in the script file
protected  java.lang.String outFileName
          output file name
protected  java.lang.String pkgName
          Name of the package
 
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
ScriptgenTask()
           
 
Method Summary
 void execute()
          Executes the task
 void setCapFile(java.lang.String capName)
          Sets cap file name
 void setNoBeginEnd(boolean on)
          Sets noBeginEnd value to the requested value
 void setOutFile(java.lang.String outFileName)
          Sets output file name
 void setPkgName(java.lang.String pkgName)
          Sets the package name for verifier
 
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

outFileName

protected java.lang.String outFileName
output file name


noBeginEnd

protected boolean noBeginEnd
If this paramter is true, CAP Begin and CAP end are not included in the script file


pkgName

protected java.lang.String pkgName
Name of the package


capName

protected java.lang.String capName
Name of CAP file

Constructor Detail

ScriptgenTask

public ScriptgenTask()
Method Detail

setPkgName

public void setPkgName(java.lang.String pkgName)
Sets the package name for verifier

Parameters:
pkgName - is package name

setNoBeginEnd

public void setNoBeginEnd(boolean on)
Sets noBeginEnd value to the requested value

Parameters:
on - is boolean value to be set for noBeginEnd flag

setOutFile

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

Parameters:
outFileName - is the ouput file name

setCapFile

public void setCapFile(java.lang.String capName)
Sets cap file name

Parameters:
capName - is the cap file name

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.