|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.TopMakefileAmTemplateGenerator
Is able to generate top-level Makefile.am templates.
Constructor Summary | |
protected |
TopMakefileAmTemplateGenerator()
Protected constructor to avoid accidental instantiation. |
Method Summary | |
TopMakefileAmTemplate |
createTopMakefileAmTemplate(java.lang.String projectName)
Generates a top-level Makefile.am template. |
static TopMakefileAmTemplateGenerator |
getInstance()
Retrieves a TopMakefileAmTemplateGenerator instance. |
protected static java.lang.ref.WeakReference |
getReference()
Retrieves the weak reference. |
protected static void |
setReference(TopMakefileAmTemplateGenerator generator)
Specifies a new weak reference. |
void |
write(TopMakefileAmTemplate template,
java.io.File outputDir,
org.apache.tools.ant.Task task)
Writes a top-level Makefile.am file to disk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TopMakefileAmTemplateGenerator()
Method Detail |
protected static void setReference(TopMakefileAmTemplateGenerator generator)
generator
- the generator instance to use.protected static java.lang.ref.WeakReference getReference()
public static TopMakefileAmTemplateGenerator getInstance()
public TopMakefileAmTemplate createTopMakefileAmTemplate(java.lang.String projectName)
createTopMakefileAmTemplate
in interface TopMakefileAmTemplateFactory
projectName
- the project name.
public void write(TopMakefileAmTemplate template, java.io.File outputDir, org.apache.tools.ant.Task task) throws AntMakeException
template
- the template to write.outputDir
- the output folder.task
- the task (for logging purposes).
AntMakeException
- if the file cannot be created.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |