com.sun.javacard.ant.tasks
Class CapDumpTask

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

public class CapDumpTask
extends org.apache.tools.ant.taskdefs.Java

Dumps contents of a CAP file Wraps the call to "com.sun.javacard.capdump.CapDump" in its own Ant task derived from the standard Java Task that comes with the Ant distribution. The "fork" value is always set to true for this task, because we want to know the exit code.


Field Summary
protected static java.lang.String bundleName
           
protected  java.lang.String capName
          CAP file name
protected static java.lang.String className
          Name of main CapDump class
protected static java.util.ResourceBundle messages
          properties bundle file that has the internationalized messages
 
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
CapDumpTask()
           
 
Method Summary
 void execute()
          Executes the task
 void setCapFile(java.lang.String capName)
          sets the cap file name
 
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

bundleName

protected static final java.lang.String bundleName
See Also:
Constant Field Values

messages

protected static java.util.ResourceBundle messages
properties bundle file that has the internationalized messages


className

protected static final java.lang.String className
Name of main CapDump class

See Also:
Constant Field Values

capName

protected java.lang.String capName
CAP file name

Constructor Detail

CapDumpTask

public CapDumpTask()
Method Detail

setCapFile

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

Parameters:
capName - the name of the CAP file

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.