com.sun.javacard.ant.tasks
Class DeployCapTask

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.APDUToolTask
                      extended bycom.sun.javacard.ant.tasks.DeployCapTask

public class DeployCapTask
extends APDUToolTask

This class encapsulates call to scriptgen, cref and APDUtool to download a CAP file in cref and generate a resulting EEPROM image


Field Summary
protected  java.lang.String capName
          CAP file to be deployed
protected static java.lang.String eol
          End of line for current platform
protected static java.lang.String footer
           
protected static java.lang.String header
           
 
Fields inherited from class com.sun.javacard.ant.tasks.APDUToolTask
checkForDownloadFailure, crefExecutable, inEEFile, outEEFile, scriptFileName
 
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
DeployCapTask()
           
 
Method Summary
 void execute()
          Executes the task
protected  void generateScriptFile()
          Prepares the APDU script file for download into the card.
 void setCapFile(java.lang.String capName)
          Sets cap file name
 
Methods inherited from class com.sun.javacard.ant.tasks.APDUToolTask
checkForFailures, initCard, sendAPDUSToCard, setCheckDownloadFailure, setCrefExe, setInEEFile, setOutEEFile, setScriptFile
 
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

eol

protected static final java.lang.String eol
End of line for current platform


header

protected static final java.lang.String header

footer

protected static final java.lang.String footer

capName

protected java.lang.String capName
CAP file to be deployed

Constructor Detail

DeployCapTask

public DeployCapTask()
Method Detail

setCapFile

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

Parameters:
capName - is the cap file name

generateScriptFile

protected void generateScriptFile()
                           throws org.apache.tools.ant.BuildException
Prepares the APDU script file for download into the card.

Throws:
org.apache.tools.ant.BuildException

execute

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

Overrides:
execute in class APDUToolTask
Throws:
org.apache.tools.ant.BuildException


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