public final class ProjectDef
extends org.apache.tools.ant.types.DataType
Modifier and Type | Field and Description |
---|---|
private java.util.List |
comments
List of comments.
|
private java.util.List |
dependencies
List of dependency definitions.
|
private boolean |
failOnError
Fail on error.
|
private java.lang.String |
ifProp
Name of property that must be present or definition will be ignored.
|
private java.lang.String |
name
Project name.
|
private java.io.File |
objDir
Object directory.
|
private java.io.File |
outFile
Project file name.
|
private boolean |
overwrite
Overwrite existing project file.
|
private ProjectWriter |
projectWriter
Project writer.
|
private java.lang.String |
unlessProp
Name of property that must be absent or definition will be ignored.
|
Constructor and Description |
---|
ProjectDef()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addComment(CommentDef comment)
Add comment for the generated project file.
|
void |
addDependency(DependencyDef dependency)
Add a dependency definition to the project.
|
void |
execute()
Required by documentation generator.
|
void |
execute(CCTask task,
java.util.List sources,
java.util.Hashtable targets,
TargetInfo linkTarget)
Executes the task.
|
java.util.List |
getComments() |
java.util.List |
getDependencies() |
java.lang.String |
getName()
Get name.
|
java.io.File |
getObjdir()
Gets the object files directory.
|
void |
getObjdir(java.io.File oDir)
Sets the directory used for object files.
|
boolean |
getOverwrite()
Gets whether an existing project file should be overwritten,
default is true.
|
boolean |
isActive()
Determine if this def should be used.
|
void |
setClassname(java.lang.String className)
Class name for a user-supplied project writer.
|
void |
setFailonerror(boolean value)
Sets whether a failure to write the project file should cause the
task to fail.
|
void |
setIf(java.lang.String propName)
Sets the property name for the 'if' condition.
|
void |
setName(java.lang.String value)
Set name.
|
void |
setOutfile(java.io.File outfile)
Sets the name for the generated project file.
|
void |
setOverwrite(boolean value)
Sets whether an existing project file should be overwritten,
default is true.
|
void |
setType(ProjectWriterEnum value)
Set project type.
|
void |
setUnless(java.lang.String propName)
Set the property name for the 'unless' condition.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
private java.lang.String ifProp
private java.lang.String unlessProp
private java.io.File outFile
private java.lang.String name
private boolean failOnError
private boolean overwrite
private ProjectWriter projectWriter
private java.io.File objDir
private java.util.List dependencies
private java.util.List comments
public void setType(ProjectWriterEnum value)
cbuilderx | Borland C++BuilderX |
msvc5 | Microsoft Visual C++ 97 |
msvc6 | Microsoft Visual C++ 6 |
msvc7 | Microsoft Visual C++.NET |
msvc71 | Microsoft Visual C++.NET 2003 |
msvc8 | Microsoft Visual C++ 2005 |
msvc9 | Microsoft Visual C++ 2008 |
xcode | Apple Xcode |
value
- new valuepublic void setOutfile(java.io.File outfile)
outfile
- output file namepublic void setFailonerror(boolean value)
value
- new valuepublic void setOverwrite(boolean value)
value
- new valuepublic boolean getOverwrite()
public boolean isActive()
public void setClassname(java.lang.String className)
className
- full class namepublic void setIf(java.lang.String propName)
propName
- name of propertypublic void setUnless(java.lang.String propName)
propName
- name of propertypublic java.lang.String getName()
public void setName(java.lang.String value)
value
- String namepublic void execute(CCTask task, java.util.List sources, java.util.Hashtable targets, TargetInfo linkTarget)
task
- cc tasksources
- source files (includes headers)targets
- compilation targetslinkTarget
- link targetpublic java.io.File getObjdir()
public void getObjdir(java.io.File oDir)
oDir
- object file directory.public void addDependency(DependencyDef dependency)
dependency
- dependency.public java.util.List getDependencies()
public void addComment(CommentDef comment)
comment
- comment, may not be null.public java.util.List getComments()
public void execute()