|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.MakeRulesTemplate
Template to generate Make-rules files.
Field Summary | |
static java.lang.String |
DEFAULT_BASE_FOLDER_VARIABLE
The default base folder variable. |
static java.lang.String |
DEFAULT_BODY
The default Make-Rules body. |
static java.lang.String |
DEFAULT_CLASSPATH_ENV_DECLARATION
The default classpath declaration. |
static java.lang.String |
DEFAULT_FILE_SEPARATOR
The default file separator. |
static java.lang.String |
DEFAULT_HEADER
The default header. |
static java.lang.String |
DEFAULT_JAVAC_FLAGS
The default javac flags. |
static java.lang.String |
DEFAULT_PATH_SEPARATOR
The default path separator. |
Constructor Summary | |
MakeRulesTemplate(java.lang.String projectName)
Builds a MakeRulesTemplate using given information. |
|
MakeRulesTemplate(java.lang.String header,
java.lang.String body,
java.lang.String javacFlags,
java.lang.String classpathEnv,
java.lang.String baseFolder,
java.lang.String pathSeparator,
java.lang.String fileSeparator,
java.lang.String projectName)
Builds a MakeRulesTemplate using given information. |
Method Summary | |
void |
addClasspathItem(java.lang.String item)
Adds a new classpath item. |
java.lang.String |
getBaseFolder()
Retrieves the base folder. |
java.lang.String |
getBody()
Retrieves the body. |
java.lang.String |
getClasspathEnv()
Retrieves the CLASSPATH_ENV. |
protected java.util.Collection |
getClasspathItems()
Retrieves the classpath items. |
java.lang.String |
getFileSeparator()
Retrieves the file separator. |
java.lang.String |
getHeader()
Retrieves the header. |
java.lang.String |
getJavacFlags()
Retrieves the JAVACFLAGS. |
java.lang.String |
getPathSeparator()
Retrieves the path separator. |
java.lang.String |
getProjectName()
Retrieves the project name. |
protected void |
setBaseFolder(java.lang.String baseFolder)
Specifies the base folder. |
protected void |
setBody(java.lang.String body)
Specifies the body. |
protected void |
setClasspathEnv(java.lang.String classpathEnv)
Specifies the CLASSPATH_ENV. |
protected void |
setClasspathItems(java.util.Collection classpathItems)
Specifies the classes. |
protected void |
setFileSeparator(java.lang.String fileSeparator)
Specifies the file separator. |
protected void |
setHeader(java.lang.String header)
Specifies the header. |
protected void |
setJavacFlags(java.lang.String javacFlags)
Specifies the JAVACFLAGS. |
protected void |
setPathSeparator(java.lang.String pathSeparator)
Specifies the path separator. |
protected void |
setProjectName(java.lang.String projectName)
Specifies the project name. |
java.lang.String |
toString()
Retrieves the weaved Make-Rules 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_JAVAC_FLAGS
public static final java.lang.String DEFAULT_CLASSPATH_ENV_DECLARATION
public static final java.lang.String DEFAULT_BASE_FOLDER_VARIABLE
public static final java.lang.String DEFAULT_PATH_SEPARATOR
public static final java.lang.String DEFAULT_FILE_SEPARATOR
Constructor Detail |
public MakeRulesTemplate(java.lang.String header, java.lang.String body, java.lang.String javacFlags, java.lang.String classpathEnv, java.lang.String baseFolder, java.lang.String pathSeparator, java.lang.String fileSeparator, java.lang.String projectName)
header
- the header.body
- the body.javacFlags
- the flags to Javac.classpathEnv
- the classpath env template.baseFolder
- the base folder.pathSeparator
- the path separator variable.fileSeparator
- the file separator variable.projectName
- the project name.public MakeRulesTemplate(java.lang.String projectName)
projectName
- the project 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 setJavacFlags(java.lang.String javacFlags)
javacFlags
- the new javac flags.public java.lang.String getJavacFlags()
protected void setClasspathEnv(java.lang.String classpathEnv)
classpathEnv
- the new classpath env.public java.lang.String getClasspathEnv()
protected void setBaseFolder(java.lang.String baseFolder)
baseFolder
- the new base folder.public java.lang.String getBaseFolder()
protected void setPathSeparator(java.lang.String pathSeparator)
pathSeparator
- the new path separator.public java.lang.String getPathSeparator()
protected void setFileSeparator(java.lang.String fileSeparator)
fileSeparator
- the new file separator.public java.lang.String getFileSeparator()
protected void setProjectName(java.lang.String projectName)
projectName
- the new project name.public java.lang.String getProjectName()
protected void setClasspathItems(java.util.Collection classpathItems)
protected java.util.Collection getClasspathItems()
public void addClasspathItem(java.lang.String item)
item
- the new item.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 |