|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.MakefileAmTemplateGenerator
Is able to generate Makefile.am templates for Java folders.
Constructor Summary | |
protected |
MakefileAmTemplateGenerator()
Protected constructor to avoid accidental instantiation. |
Method Summary | |
MakefileAmTemplate |
createMakefileAmTemplate(java.lang.String projectName,
java.lang.String packageName)
Generates a Makefile.am template for given Java package. |
static MakefileAmTemplateGenerator |
getInstance()
Retrieves a MakefileAmTemplateGenerator instance. |
protected static java.lang.ref.WeakReference |
getReference()
Retrieves the weak reference. |
protected static void |
setReference(MakefileAmTemplateGenerator generator)
Specifies a new weak reference. |
void |
write(MakefileAmTemplate template,
java.io.File outputDir,
org.apache.tools.ant.Task task)
Writes a Java folder's 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 MakefileAmTemplateGenerator()
Method Detail |
protected static void setReference(MakefileAmTemplateGenerator generator)
generator
- the generator instance to use.protected static java.lang.ref.WeakReference getReference()
public static MakefileAmTemplateGenerator getInstance()
public MakefileAmTemplate createMakefileAmTemplate(java.lang.String projectName, java.lang.String packageName)
createMakefileAmTemplate
in interface MakefileAmTemplateFactory
projectName
- the project name.bpackageName
- the package name.
public void write(MakefileAmTemplate 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 |