|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.wurbelizer.AbstractWurbler
org.wurbelizer.SourceWurbler
public class SourceWurbler
A wurblet container.
Reads a source file, scans for @wurblets and sub elements and applies them.
The SourceWurbler usually is invoked from within the AntWurbler
but may also be invoked from the command line (for testing purposes).
| Field Summary | |
|---|---|
static String |
WURBPROP_CLASSNAME
property holding the java classname of the source file |
static String |
WURBPROP_DIRNAME
property holding the directory of the source file |
static String |
WURBPROP_FILENAME
property holding the absolute pathname of the source file |
static String |
WURBPROP_GUARDNAME
property holding the guardname of the wurblet anchor (wurblet tag) |
static String |
WURBPROP_PACKAGENAME
property holding the package name of the class |
static String |
WURBPROP_WURBLETNAME
property holding the name of the wurblet |
static String |
WURBPROP_WURBNAME
property holding the pathname of the *.wurb-file (additional properties), null if none |
| Fields inherited from interface org.wurbelizer.Wurbler |
|---|
FILE_SOURCE_EXTENSION, PROPSPACE_ENV, PROPSPACE_EXTRA, PROPSPACE_WURBLET |
| Constructor Summary | |
|---|---|
SourceWurbler(String filename,
String[] srcDirs,
String[] wurbletPath,
String infoDir,
Logger logger,
boolean verbose)
Creates a SourceWurbler. |
|
| Method Summary | |
|---|---|
File |
getInfoFile(String name)
Gets an information file. |
int |
getInvocationCount()
Gets the invocation count. |
void |
logMessage(String msg)
Log some message. |
static void |
main(String[] args)
|
int |
wurbelize()
Processes the source file, create here-docs and replace wurblet-guarded sections. |
| Methods inherited from class org.wurbelizer.AbstractWurbler |
|---|
getArgs, getPrintStream, getProperties, getProperty, getSource, getWurblet, isFixedArgs, loadWurblet, run, setArgs, setFixedArgs, setPrintStream, setSource, setWurblet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WURBPROP_FILENAME
public static final String WURBPROP_CLASSNAME
public static final String WURBPROP_WURBNAME
public static final String WURBPROP_DIRNAME
public static final String WURBPROP_PACKAGENAME
public static final String WURBPROP_GUARDNAME
public static final String WURBPROP_WURBLETNAME
| Constructor Detail |
|---|
public SourceWurbler(String filename,
String[] srcDirs,
String[] wurbletPath,
String infoDir,
Logger logger,
boolean verbose)
throws IOException
SourceWurbler.
filename - the full pathname of the java-filesrcDirs - the source-directories (to compute the classname from filename)
null if filename is in srcDirswurbletPath - the list of package names to load wurblets from (if wurblet name is not absolute)infoDir - the list of directories wurblets load extra information from (usually from apt-runs)verbose - if true logs the invocation of each wurblet an its argslogger - the logger (can also be used by the wurblets)
IOException - if processing the file failed| Method Detail |
|---|
public int getInvocationCount()
public File getInfoFile(String name)
name - the filename relative to the infodir.
public void logMessage(String msg)
msg - the message
public int wurbelize()
throws FileNotFoundException,
IOException,
SourceException
FileNotFoundException
IOException
SourceExceptionpublic static void main(String[] args)
args - the command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||