|
||||||||||
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.types.DataType
net.sf.antcontrib.cpptasks.ide.ProjectDef
public final class ProjectDef
Requests the creation of an IDE project file. Experimental. Implementation status: msdev5, msdev6 and cbuilderx generate reasonable project files for simple projects, xcode and msdev7 and msdev71 capture source file lists and a few settings.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.types.DataType |
---|
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ProjectDef()
Constructor. |
Method Summary | |
---|---|
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,
List sources,
Map targets,
TargetInfo linkTarget)
Executes the task. |
List |
getComments()
|
List |
getDependencies()
|
String |
getName()
Get name. |
File |
getObjdir()
Gets the object files directory. |
void |
getObjdir(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(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(String propName)
Sets the property name for the 'if' condition. |
void |
setName(String value)
Set name. |
void |
setOutfile(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(String propName)
Set the property name for the 'unless' condition. |
Methods inherited from class org.apache.tools.ant.types.DataType |
---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectDef()
Method Detail |
---|
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(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(String className)
className
- full class namepublic void setIf(String propName)
propName
- name of propertypublic void setUnless(String propName)
propName
- name of propertypublic String getName()
public void setName(String value)
value
- String namepublic void execute(CCTask task, List sources, Map targets, TargetInfo linkTarget)
task
- cc tasksources
- source files (includes headers)targets
- compilation targetslinkTarget
- link targetpublic File getObjdir()
public void getObjdir(File oDir)
oDir
- object file directory.public void addDependency(DependencyDef dependency)
dependency
- dependency.public List getDependencies()
public void addComment(CommentDef comment)
comment
- comment, may not be null.public List getComments()
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |