com.sun.javacard.ant.tasks
Class Exp2TextTask

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

public class Exp2TextTask
extends JavacardTaskBase

Convertes the export file of a package to a text file Wraps the call to "com.sun.javacard.converter.Exp2Text" 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, otherwise it will not run properly.


Field Summary
protected  org.apache.tools.ant.types.Path classDir
          Class directory
protected  org.apache.tools.ant.types.Path outputDir
          output directory
protected  java.lang.String packageName
          Package 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
Exp2TextTask()
           
 
Method Summary
 void execute()
          Executes the task
 void setClassDir(org.apache.tools.ant.types.Path classdir)
          Sets the path to the classdirectory of the package
 void setOutputDir(org.apache.tools.ant.types.Path dir)
          Set the path to the output directory for the text file
 void setPackageName(java.lang.String packageName)
          sets the package 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

packageName

protected java.lang.String packageName
Package name


classDir

protected org.apache.tools.ant.types.Path classDir
Class directory


outputDir

protected org.apache.tools.ant.types.Path outputDir
output directory

Constructor Detail

Exp2TextTask

public Exp2TextTask()
Method Detail

setPackageName

public void setPackageName(java.lang.String packageName)
sets the package name

Parameters:
packageName - the name of the package

setClassDir

public void setClassDir(org.apache.tools.ant.types.Path classdir)
Sets the path to the classdirectory of the package

Parameters:
classdir - the path to the classdirectory

setOutputDir

public void setOutputDir(org.apache.tools.ant.types.Path dir)
Set the path to the output directory for the text file

Parameters:
dir - the path to the output directory

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.