com.sun.tools.jxc
Class SchemaGenTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.apache.tools.ant.taskdefs.Javac
                  extended by com.sun.tools.jxc.AptBasedTask
                      extended by com.sun.tools.jxc.SchemaGenTask
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class SchemaGenTask
extends AptBasedTask

Ant task to invoke the schema generator.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class SchemaGenTask.Schema
          Nested schema element to specify the namespace -> file name mapping.
 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Javac
org.apache.tools.ant.taskdefs.Javac.ImplementationSpecificArgument
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Javac
compileList, failOnError, listFiles
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
SchemaGenTask()
           
 
Method Summary
protected  com.sun.mirror.apt.AnnotationProcessorFactory createFactory()
          Creates a facotry that does the actual job.
 SchemaGenTask.Schema createSchema()
           
protected  String getCompilationMessage()
           
protected  String getFailedMessage()
           
 void setEpisode(File f)
          Sets the episode file to be generated.
protected  void setupCommandlineSwitches(org.apache.tools.ant.types.Commandline cmd)
          Implemented by the derived class to set up command line switches passed to Apt.
 
Methods inherited from class com.sun.tools.jxc.AptBasedTask
compile
 
Methods inherited from class org.apache.tools.ant.taskdefs.Javac
checkParameters, createBootclasspath, createClasspath, createCompilerArg, createExtdirs, createSourcepath, createSrc, execute, getBootclasspath, getClasspath, getCompiler, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTempdir, getVerbose, isForkedJavac, isJdkCompiler, recreateSrc, resetFileLists, scanDir, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCompiler, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setExecutable, setExtdirs, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setNowarn, setOptimize, setProceed, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, setVerbose
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGenTask

public SchemaGenTask()
Method Detail

setupCommandlineSwitches

protected void setupCommandlineSwitches(org.apache.tools.ant.types.Commandline cmd)
Description copied from class: AptBasedTask
Implemented by the derived class to set up command line switches passed to Apt.

Specified by:
setupCommandlineSwitches in class AptBasedTask

getCompilationMessage

protected String getCompilationMessage()
Specified by:
getCompilationMessage in class AptBasedTask

getFailedMessage

protected String getFailedMessage()
Specified by:
getFailedMessage in class AptBasedTask

createSchema

public SchemaGenTask.Schema createSchema()

setEpisode

public void setEpisode(File f)
Sets the episode file to be generated. Null to not to generate one, which is the default behavior.


createFactory

protected com.sun.mirror.apt.AnnotationProcessorFactory createFactory()
Description copied from class: AptBasedTask
Creates a facotry that does the actual job.

Specified by:
createFactory in class AptBasedTask


Copyright © 2010. All Rights Reserved.