net.jangaroo.exml.ant
Class ExmlcTask

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 net.jangaroo.exml.ant.ExmlcTask
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class ExmlcTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Ant Task for Exmlc


Field Summary
 
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
ExmlcTask()
           
 
Method Summary
protected  void checkParameters()
          Check that all required attributes have been set and nothing silly has been entered.
protected  void compile()
          Perform the compilation.
 org.apache.tools.ant.types.Path createSrc()
          Adds a path for source compilation.
 void execute()
          Executes the task.
 String getClasspath()
          Get the classpath to find joo library files.
 String getConfigClassPackage()
          Get the config class package name
 File getDestdir()
          Get the destination directory into which AS files will be generated.
protected  String[] getExmlcArgs()
           
 boolean getFailonerror()
          Gets the failonerror flag.
 File[] getFileList()
          Gets the list of files to be compiled.
 File getResourceDir()
          Get the destination directory into which the XSDs will be generated.
 org.apache.tools.ant.types.Path getSrcdir()
          Get the source dirs to find the source java files.
protected  org.apache.tools.ant.types.Path recreateSrc()
          Recreate src.
protected  void resetFileLists()
          Clear the list of files to be compiled and copied..
protected  void scanDir(File srcDir, File destDir, String[] files)
          Scans the directory looking for source files to be compiled.
 void setClasspath(String classpath)
          Set the classpath to find the joo library files.
 void setConfigClassPackage(String configClassPackage)
          Set the config class package name
 void setDestdir(File destDir)
          Set the destination directory into which the AS files will be generated.
 void setFailonerror(boolean fail)
          Indicates whether the build will continue even if there are compilation errors; defaults to true.
 void setResourceDir(File resourceDir)
          Set the resource directory into which the XSDs will be generated.
 void setSrcdir(org.apache.tools.ant.types.Path srcDir)
          Set the source directories to find the source joo files.
 
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

ExmlcTask

public ExmlcTask()
Method Detail

getConfigClassPackage

public String getConfigClassPackage()
Get the config class package name

Returns:
the config class package name

setConfigClassPackage

public void setConfigClassPackage(String configClassPackage)
Set the config class package name

Parameters:
configClassPackage - the config class package name

createSrc

public org.apache.tools.ant.types.Path createSrc()
Adds a path for source compilation.

Returns:
a nested src element.

recreateSrc

protected org.apache.tools.ant.types.Path recreateSrc()
Recreate src.

Returns:
a nested src element.

setSrcdir

public void setSrcdir(org.apache.tools.ant.types.Path srcDir)
Set the source directories to find the source joo files.

Parameters:
srcDir - the source directories

getSrcdir

public org.apache.tools.ant.types.Path getSrcdir()
Get the source dirs to find the source java files.

Returns:
the source directories

setClasspath

public void setClasspath(String classpath)
Set the classpath to find the joo library files.

Parameters:
classpath - the classpath

getClasspath

public String getClasspath()
Get the classpath to find joo library files.

Returns:
the classpath

setDestdir

public void setDestdir(File destDir)
Set the destination directory into which the AS files will be generated.

Parameters:
destDir - the destination directory

getDestdir

public File getDestdir()
Get the destination directory into which AS files will be generated.

Returns:
the destination directory

getResourceDir

public File getResourceDir()
Get the destination directory into which the XSDs will be generated.

Returns:
the resource directory

setResourceDir

public void setResourceDir(File resourceDir)
Set the resource directory into which the XSDs will be generated.

Parameters:
resourceDir - the resource directory

setFailonerror

public void setFailonerror(boolean fail)
Indicates whether the build will continue even if there are compilation errors; defaults to true.

Parameters:
fail - whether to fail on errors

getFailonerror

public boolean getFailonerror()
Gets the failonerror flag.

Returns:
whether to fail on errors

execute

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

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

resetFileLists

protected void resetFileLists()
Clear the list of files to be compiled and copied..


scanDir

protected void scanDir(File srcDir,
                       File destDir,
                       String[] files)
Scans the directory looking for source files to be compiled. The results are returned in the class variable compileList

Parameters:
srcDir - the source directory
destDir - the destination directory
files - the files to scan

getFileList

public File[] getFileList()
Gets the list of files to be compiled.

Returns:
the list of files to be compiled

checkParameters

protected void checkParameters()
                        throws org.apache.tools.ant.BuildException
Check that all required attributes have been set and nothing silly has been entered.

Throws:
org.apache.tools.ant.BuildException - when a build error occurred
Since:
Ant 1.5

compile

protected void compile()
Perform the compilation.

Since:
Ant 1.5

getExmlcArgs

protected String[] getExmlcArgs()


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.