|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.google.caja.tools.AbstractCajaAntTask com.google.caja.tools.InnocentAntTask
public class InnocentAntTask
An ANT task that transforms a SINGLE file of innocent code.
Given an ANT task like <innocent>
<output file="foo/bar.js"/>
<input file="baz/input1.js"/>
</innocent>
innocent code transforms the input. This is intended for uncajoled code
that needs to interact with cajoled code. It removes protected elements from
for-in loops and puts checks on methods that access THIS to make sure they
don't accidentally refer to the global THIS.
A single <innocent>
element can have multiple <job>
s,
but each <job>
takes a single input/output file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.caja.tools.AbstractCajaAntTask |
---|
AbstractCajaAntTask.FileGroup, AbstractCajaAntTask.Output |
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 | |
---|---|
InnocentAntTask()
|
Method Summary | |
---|---|
(package private) AbstractCajaAntTask.Output |
makeOutput()
|
protected boolean |
run(BuildService buildService,
java.io.PrintWriter logger,
java.util.List<java.io.File> depends,
java.util.List<java.io.File> input,
java.io.File output,
java.util.Map<java.lang.String,java.lang.Object> options)
Called to actually execute a job by invoking the BuildService. |
Methods inherited from class com.google.caja.tools.AbstractCajaAntTask |
---|
createDepend, createInput, createOutput, execute, getBuildService, getLogger |
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 |
---|
public InnocentAntTask()
Method Detail |
---|
protected boolean run(BuildService buildService, java.io.PrintWriter logger, java.util.List<java.io.File> depends, java.util.List<java.io.File> input, java.io.File output, java.util.Map<java.lang.String,java.lang.Object> options) throws org.apache.tools.ant.BuildException
AbstractCajaAntTask
run
in class AbstractCajaAntTask
org.apache.tools.ant.BuildException
AbstractCajaAntTask.Output makeOutput()
makeOutput
in class AbstractCajaAntTask
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |