|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.MakeRulesTemplateGenerator
Is able to generate Make-rules templates.
Constructor Summary | |
protected |
MakeRulesTemplateGenerator()
Protected constructor to avoid accidental instantiation. |
Method Summary | |
MakeRulesTemplate |
createMakeRulesTemplate(java.lang.String projectName)
Generates a Make-rules template. |
static MakeRulesTemplateGenerator |
getInstance()
Retrieves a MakeRulesTemplateGenerator instance. |
protected static java.lang.ref.WeakReference |
getReference()
Retrieves the weak reference. |
protected static void |
setReference(MakeRulesTemplateGenerator generator)
Specifies a new weak reference. |
void |
write(MakeRulesTemplate template,
java.io.File outputDir,
org.apache.tools.ant.Task task)
Writes a Make-rules file to disk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected MakeRulesTemplateGenerator()
Method Detail |
protected static void setReference(MakeRulesTemplateGenerator generator)
generator
- the generator instance to use.protected static java.lang.ref.WeakReference getReference()
public static MakeRulesTemplateGenerator getInstance()
public MakeRulesTemplate createMakeRulesTemplate(java.lang.String projectName)
createMakeRulesTemplate
in interface MakeRulesTemplateFactory
projectName
- the project name.
public void write(MakeRulesTemplate 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 |