|
Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.cantaloop.cgimlet.ProjectRunner
This class should be used to run a codegeneration process.
The commandline entry point (Main
) and the ant task
(ProjectGeneratorTask
) are based on this class.
Field Summary | |
protected boolean |
m_debug
|
protected boolean |
m_prettyPrinting
|
protected java.io.File |
m_prjFile
|
protected boolean |
m_quiet
|
protected boolean |
m_verbose
|
protected static ProjectGenerator |
s_gen
|
Constructor Summary | |
ProjectRunner()
|
Method Summary | |
static java.lang.String |
getCopyright()
Returns the copyright string. |
static ProjectGenerator |
getProjectGenerator()
Get the project generator of the last run. |
static java.lang.String |
getVersion()
Returns the version string. |
void |
run()
Run the code generation process. |
boolean |
runAndCatch()
Run the code codegeneration process, catch all exceptions and dipslay a error message (if necessary). |
void |
setDebug(boolean b)
Enables debugging output. |
void |
setPrettyPrinting(boolean b)
Set if the generated files should be pretty printed. |
void |
setProjectFile(java.lang.String s)
Set the project file as a string. |
void |
setQuiet(boolean b)
Set if the codegeneration should be extra quiet. |
void |
setVerbose(boolean b)
Set if the codegeneration should be verbose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static ProjectGenerator s_gen
protected boolean m_verbose
protected boolean m_quiet
protected boolean m_debug
protected boolean m_prettyPrinting
protected java.io.File m_prjFile
Constructor Detail |
public ProjectRunner()
Method Detail |
public void run() throws CodeGenerationException, InternalCodeGenerationException
CodeGenerationException
- if an error occursInternalCodeGenerationException
- if an error (which is
probably a bug) occurspublic boolean runAndCatch()
true
if no exception was thrown during the generation
false
otherwise.public void setVerbose(boolean b)
b
- a boolean
valuepublic void setPrettyPrinting(boolean b)
b
- a boolean
valuepublic void setQuiet(boolean b)
b
- a boolean
valuepublic void setProjectFile(java.lang.String s)
s
- a String
valuepublic void setDebug(boolean b)
b
- a boolean
valuepublic static ProjectGenerator getProjectGenerator()
ProjectGenerator
valuepublic static final java.lang.String getVersion()
String
valuepublic static final java.lang.String getCopyright()
String
value
|
Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |