Books
in black and white
Main menu
Share a book About us Home
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

Java Tools for Extreme programming mastering open source tools including - Hightower R.

Hightower R. Java Tools for Extreme programming mastering open source tools including - Wiley publishing , 2002. - 417 p.
ISBN: 0-471-20708
Download (direct link): javatoolsforextremeprog2002.pdf
Previous << 1 .. 117 118 119 120 121 122 < 123 > 124 125 126 127 128 129 .. 159 >> Next

322
This method is called after the target has finished. It will still be called if an error occurs during the execution of the target.
public void taskStarted(BuildEvent event)
This method is called before the task's execution is started. public void taskFinished(BuildEvent event)
This method is called after the task has finished. It will still be called if an error occurs during the execution of the task.
public void messageLogged(BuildEvent event)
This method is executed whenever a message is logged.
Interface BuildLogger
public Interface BuildLogger
Inheritance Information
Extends: BuildListener
Description
Ant uses this interface to log the output from the build. A build logger is very much like a build listener with permission to write to the Ant log, which is usually System.out (unless redirected by the -logfile option).
Methods
public void setMessageOutputLevel(int level)
This method sets the msgOutputLevel for this logger. Any messages with a level less than or equal to the given level will be logged. The constants for the message levels are in Project.java. The order of the levels, from least verbose to most verbose, is MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE, MSG_DEBUG.
public void setOutputPrintStream(PrintStream output)
This method sets the output stream this logger will use. public void setEmacsMode(boolean emacsMode)
This method sets this logger to produce emacs-compatible output. public void setErrorPrintStream(java.io.PrintStream err)
This method sets the output stream this logger will use for errors.
Class DefaultLogger
public class DefaultLogger
Inheritance Information
Extends: java.lang.Object Implements: BuildLogger
Description
This class writes a build event to a PrintStream. Note that DefaultLogger only writes which targets are being executed and any messages that are logged.
Fields
protected java.io.PrintStream out protected java.io.PrintStream err
323
protected int msgOutputLevel
protected static java.lang.String lSep protected boolean emacsMode
Methods
public void setMessageOutputLevel(int level)
This method sets the msgOutputLevel for this logger. Any messages with a level less than or equal to the given level will be logged. The constants for the message levels are in Project.java. The order of the levels, from least verbose to most verbose, is MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE, MSG_DEBUG.
public void setOutputPrintStream(java.io.PrintStream output)
This method sets the output stream this logger will use. It is specified by setOutputPrintStream in interface BuildLogger.
public void setErrorPrintStream(java.io.PrintStream err)
This method sets the output stream this logger will use for errors. It is specified by setErrorPrintStream in interface BuildLogger.
public void setEmacsMode(boolean emacsMode)
This method sets this logger to produce emacs-compatible output. It is specified by setEmacsMode in interface BuildLogger.
public void buildStarted(BuildEvent event)
This method executes before any targets are started. It is specified by build-Started in interface
BuildListener.
public void buildFinished(BuildEvent event)
This method executes after all other activity in the build and prints the build's success status and any errors. It is specified by buildFinished in interface BuildListener.
public void targetStarted(BuildEvent event)
This method executes when a target is started. It is specified by target-Started in interface
BuildListener.
public void targetFinished(BuildEvent event)
This method executes when a target is complete, whether errors occurred or not. public void taskStarted(BuildEvent event)
This method executes when a task is started. public void taskFinished(BuildEvent event)
This method executes when a task has finished, whether errors occurred or not. public void messageLogged(BuildEvent event)
This method executes when a message is logged.
Class DesirableFilter
public class DesireableFilter
Inheritance Information
Extends: java.lang.Object Implements: java.io.FilenameFilter
Description
This class is designed to filter filenames to determine their desirability.
324
Methods
public boolean accept(java.io.File dir, java.lang.String name)
This method tests the given filename to determine whether it's desirable. It helps tasks filter temporary files and files used by Concurrent Versioning System (CVS). It is specified by accept in interface java.io.FilenameFilter.
Class DirectoryScanner
public class DirectoryScanner
Inheritance Information
Implements: FileScanner
Description
This class is designed to scan a directory for specific files and subdirectories.
Fields
protected static final java.lang.String[] DEFAULTEXCLUDES
This field is a string array to hold patterns that should be excluded by default. protected java.io.File basedir
This field is the base directory from which to scan. protected java.lang.String[] includes
This field is a string array to hold patterns that should be included by default. protected java.lang.String[] excludes
Previous << 1 .. 117 118 119 120 121 122 < 123 > 124 125 126 127 128 129 .. 159 >> Next