|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.schmidmeier.protocolbuffer.ant.PbTask
public class PbTask
The Anttask for the protocol buffer library. It has following attributes
| Attribute | Description | Required |
| java | if set, output will be generated for java. The value must be the java output directory | at least on of java, python, cpp |
| cpp | if set, output will be generated for C++. The value must be the C++ output directory | at least on of java, python, cpp |
| python | if set, output will be generated for python. The value must be the python output directory | at least on of java, python, cpp |
| ipath | The directory which may contain include files | No, default unset |
| failonerror | if set, the compilation aborts in case of errors | No, Default, true |
| protopathentry | The possibility to add multiple include file to the command line | No, Required unset |
<pb ProtoFile="Sample.proto"
java="${java_output}"
ipath="C:/workspace_3.4/ProtobuffersAntTask">
<protopathentry ipath="${inc1.dir}"/>
<protopathentry ipath="${inc2.dir}"/>
</pb>
| Nested Class Summary | |
|---|---|
class |
PbTask.ProtoPathEntry
|
| Field Summary |
|---|
| 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 | |
|---|---|
PbTask()
|
|
| Method Summary | |
|---|---|
PbTask.ProtoPathEntry |
createProtoPathEntry()
|
void |
execute()
Do the work. |
void |
setCpp(java.io.File cpp)
|
void |
setFailOnError(boolean failonerror)
|
void |
setIPath(java.io.File iPath)
|
void |
setJava(java.io.File java)
|
void |
setProtoFile(java.io.File protoFile)
|
void |
setPython(java.io.File python)
|
| 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, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PbTask()
| Method Detail |
|---|
public void setFailOnError(boolean failonerror)
public void setIPath(java.io.File iPath)
public void setJava(java.io.File java)
public void setCpp(java.io.File cpp)
public void setPython(java.io.File python)
public void setProtoFile(java.io.File protoFile)
public void execute()
execute in class org.apache.tools.ant.Taskpublic PbTask.ProtoPathEntry createProtoPathEntry()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||