|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.MakefileAmTemplate
Template to generate Makefile.am files for Java folders.
Field Summary | |
static java.lang.String |
DEFAULT_BODY
The default Make-Rules body. |
static java.lang.String |
DEFAULT_HEADER
The default header. |
static java.lang.String |
DEFAULT_JAVA_SOURCE_SUBTEMPLATE
The default java source subtemplate. |
static java.lang.String |
DEFAULT_JAVA_SOURCES_SUBTEMPLATE
The default java sources subtemplate. |
static java.lang.String |
DEFAULT_SUBDIRS_SUBTEMPLATE
The default SUBDIRS subtemplate. |
Constructor Summary | |
MakefileAmTemplate(java.lang.String projectName,
java.lang.String packageName)
Builds a MakefileAmTemplate using given information. |
|
MakefileAmTemplate(java.lang.String header,
java.lang.String body,
java.lang.String subdirsSubtemplate,
java.lang.String javaSourcesSubtemplate,
java.lang.String javaSourceSubtemplate,
java.lang.String projectName,
java.lang.String packageName)
Builds a MakefileAmTemplate using given information. |
Method Summary | |
protected java.util.Collection |
add(java.util.Collection container,
java.lang.String item)
Adds an item to given collection.. |
void |
addFolder(java.lang.String folder)
Adds a first-level folder. |
void |
addSourceFile(java.lang.String file)
Adds a source file. |
java.lang.String |
getBody()
Retrieves the body. |
protected java.util.Collection |
getFolders()
Retrieves the first-level folders. |
java.lang.String |
getHeader()
Retrieves the header. |
java.lang.String |
getJavaSourcesSubtemplate()
Retrieves the java_sources subtemplate. |
java.lang.String |
getJavaSourceSubtemplate()
Retrieves the Java source subtemplate. |
java.lang.String |
getPackageName()
Retrieves the package name. |
java.lang.String |
getProjectName()
Retrieves the project name. |
protected java.util.Collection |
getSourceFiles()
Retrieves the source files. |
java.lang.String |
getSubdirsSubtemplate()
Retrieves the SUBDIRS subtemplate. |
protected void |
setBody(java.lang.String body)
Specifies the body. |
protected void |
setFolders(java.util.Collection folders)
Specifies the first-level folders. |
protected void |
setHeader(java.lang.String header)
Specifies the header. |
protected void |
setJavaSourcesSubtemplate(java.lang.String javaSourcesSubtemplate)
Specifies the java_sources subtemplate. |
protected void |
setJavaSourceSubtemplate(java.lang.String javaSourceSubtemplate)
Specifies the Java source subtemplate. |
protected void |
setPackageName(java.lang.String packageName)
Specifies the package name. |
protected void |
setProjectName(java.lang.String projectName)
Specifies the project name. |
protected void |
setSourceFiles(java.util.Collection files)
Specifies the source files. |
protected void |
setSubdirsSubtemplate(java.lang.String subdirsSubtemplate)
Specifies the SUBDIRS subtemplate. |
java.lang.String |
toString()
Retrieves the weaved Makefile.am file contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_HEADER
public static final java.lang.String DEFAULT_BODY
public static final java.lang.String DEFAULT_SUBDIRS_SUBTEMPLATE
public static final java.lang.String DEFAULT_JAVA_SOURCES_SUBTEMPLATE
public static final java.lang.String DEFAULT_JAVA_SOURCE_SUBTEMPLATE
Constructor Detail |
public MakefileAmTemplate(java.lang.String header, java.lang.String body, java.lang.String subdirsSubtemplate, java.lang.String javaSourcesSubtemplate, java.lang.String javaSourceSubtemplate, java.lang.String projectName, java.lang.String packageName)
header
- the header.body
- the body.projectName
- the project name.packageName
- the package name.public MakefileAmTemplate(java.lang.String projectName, java.lang.String packageName)
projectName
- the project name.packageName
- the package name.Method Detail |
protected void setHeader(java.lang.String header)
header
- the new header.public java.lang.String getHeader()
protected void setBody(java.lang.String body)
body
- the new body.public java.lang.String getBody()
protected void setSubdirsSubtemplate(java.lang.String subdirsSubtemplate)
subdirsSubtemplate
- the new subtemplate.public java.lang.String getSubdirsSubtemplate()
protected void setJavaSourcesSubtemplate(java.lang.String javaSourcesSubtemplate)
javaSourcesSubtemplate
- the new subtemplate.public java.lang.String getJavaSourcesSubtemplate()
protected void setJavaSourceSubtemplate(java.lang.String javaSourceSubtemplate)
javaSourceSubtemplate
- the new subtemplate.public java.lang.String getJavaSourceSubtemplate()
protected void setProjectName(java.lang.String projectName)
projectName
- the new project name.public java.lang.String getProjectName()
protected void setPackageName(java.lang.String packageName)
packageName
- the new package name.public java.lang.String getPackageName()
protected void setFolders(java.util.Collection folders)
folders
- the folder list.protected java.util.Collection getFolders()
public void addFolder(java.lang.String folder)
folder
- the first-level folder to add.protected void setSourceFiles(java.util.Collection files)
files
- the file list.protected java.util.Collection getSourceFiles()
public void addSourceFile(java.lang.String file)
file
- the source file to add.protected java.util.Collection add(java.util.Collection container, java.lang.String item)
container
- the collection.item
- the item to add.
container
was null.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |