org.cruxframework.crux.tools.compile
Class AbstractCruxCompilerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.cruxframework.crux.tools.compile.AbstractCruxCompilerTask
Direct Known Subclasses:
CruxCompilerTask

public abstract class AbstractCruxCompilerTask
extends org.apache.tools.ant.Task

Author:
Thiago da Rosa de Bustamante

Field Summary
 
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
AbstractCruxCompilerTask()
           
 
Method Summary
 void addArg(org.apache.tools.ant.types.Commandline.Argument arg)
           
 void addClasspath(org.apache.tools.ant.types.Path classpath)
           
protected  void addCompilerParameters(org.apache.tools.ant.taskdefs.Java javatask)
           
 void addJvmarg(org.apache.tools.ant.types.Commandline.Argument jvmarg)
           
protected  void compileFile()
          Compile files using GWT compiler
 void execute()
           
protected  String getProgramClassName()
           
 void setDoNotPreCompileJavaSource(Boolean doNotPreCompileJavaSource)
           
 void setFailOnError(Boolean failOnError)
           
 void setIndentPages(Boolean indentPages)
           
 void setInputCharset(String inputCharset)
           
 void setKeepPagesGeneratedFiles(Boolean keepPagesGeneratedFiles)
           
 void setOutputCharset(String outputCharset)
           
 void setOutputDir(File outputDir)
           
 void setPageFileExtension(String pageFileExtension)
           
 void setPagesOutputDir(File pagesOutputDir)
           
 void setScanAllowedPackages(String scanAllowedPackages)
           
 void setScanIgnoredPackages(String scanIgnoredPackages)
           
 void setSrcDir(File srcDir)
           
 void setWebDir(File webDir)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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
 

Constructor Detail

AbstractCruxCompilerTask

public AbstractCruxCompilerTask()
Method Detail

addClasspath

public void addClasspath(org.apache.tools.ant.types.Path classpath)

addArg

public void addArg(org.apache.tools.ant.types.Commandline.Argument arg)

addJvmarg

public void addJvmarg(org.apache.tools.ant.types.Commandline.Argument jvmarg)

setOutputDir

public void setOutputDir(File outputDir)

setWebDir

public void setWebDir(File webDir)

setPagesOutputDir

public void setPagesOutputDir(File pagesOutputDir)

setScanAllowedPackages

public void setScanAllowedPackages(String scanAllowedPackages)

setScanIgnoredPackages

public void setScanIgnoredPackages(String scanIgnoredPackages)

setOutputCharset

public void setOutputCharset(String outputCharset)

setInputCharset

public void setInputCharset(String inputCharset)

setPageFileExtension

public void setPageFileExtension(String pageFileExtension)

setIndentPages

public void setIndentPages(Boolean indentPages)

setKeepPagesGeneratedFiles

public void setKeepPagesGeneratedFiles(Boolean keepPagesGeneratedFiles)

setDoNotPreCompileJavaSource

public void setDoNotPreCompileJavaSource(Boolean doNotPreCompileJavaSource)

setSrcDir

public void setSrcDir(File srcDir)

setFailOnError

public void setFailOnError(Boolean failOnError)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()

compileFile

protected void compileFile()
                    throws Exception
Compile files using GWT compiler

Throws:
Exception

getProgramClassName

protected String getProgramClassName()
Returns:

addCompilerParameters

protected void addCompilerParameters(org.apache.tools.ant.taskdefs.Java javatask)
                              throws Exception
Parameters:
javatask -
Throws:
IOException
Exception


Copyright © 2014. All rights reserved.