| Modifier and Type | Field and Description |
|---|---|
| private static final int | BIG_DRIFT_LIMIT
value for which a difference between clock and temp file time triggers a warning. |
| protected static final String | ERROR_PROPERTY_ACCESS_BLOCKED
The error text when a security manager blocks access to a property. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | TEST_FILE_SIZE
How big a test file to write. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | doReport(PrintStream
the stream to print the report to. out, int denotes the level of detail requested as one of
Project's MSG_* constants. logLevel)Print a report to the given stream. |
| private static void | doReportAntHomeLibraries(PrintStream
the stream to print the content to out)Report the content of ANT_HOME/lib directory |
| private static void | doReportAntProperties(PrintStream
the stream to print the content to out)Report the content of ANT_HOME/lib directory |
| private static void | |
| private static void | |
| private static void | |
| private static void | doReportSystemProperties(PrintStream
the stream to print the properties to. out)Report a listing of system properties existing in the current vm. |
| private static void | doReportTasksAvailability(PrintStream
the stream to print the tasks report to
out)null for a missing stream (ie mapping).Create a report about non-available tasks that are defined in the mapping but could not be found via lookup. |
| private static void | doReportTempDir(PrintStream
a PrintStream out)try and create a temp file in our temp dir; this checks that it has space and access. |
| private static void | doReportUserHomeLibraries(PrintStream
the stream to print the content to out)Report the content of ~/.ant/lib directory |
| private static void | doReportWhich(PrintStream
the stream to print the content to. out)Call org.apache.env.Which if available |
| private static void | |
| private static URL | getClassLocation(Class<?>
the class to get the information from. clazz)Helper method to get the location. |
| private static String | Returns: null if there is no package or implementation version. '?.?' for JDK 1.0 or 1.1.the class to get the information from. clazz)Helper method to get the implementation version. |
| private static String | |
| private static String | |
| private static String | Returns: the system property's value or error texta property key key)Get the value of a system property. |
| private static SAXParser | |
| private static String | Returns: path or null for trouble in tracking it downget the location of the parser |
| private static String | |
| private static Transformer | |
| private static String | Returns: path or null for trouble in tracking it downget the location of the parser |
| private static String | |
| private static void | |
| private static void | |
| public static boolean | |
| private static File[] | Returns: array of files (or null for no such directory)directory libDir)get a list of all JAR files in a directory |
| public static File[] | Returns: the list of jar files existing in ant.home/lib ornull if an error occurs.return the list of jar files existing in ANT_HOME/lib and that must have been picked up by Ant script. |
| public static void | |
| private static void | printLibraries(File[]
array of libraries (can be null) libs, PrintStream output stream out)list the libraries |
| private static void | |
| private static void | printProperty(PrintStream
stream to print on out, String property name key)print a property name="value" pair if the property is set; print nothing if it is null |
| public static void |
| BIG_DRIFT_LIMIT | back to summary |
|---|---|
| private static final int BIG_DRIFT_LIMIT value for which a difference between clock and temp file time triggers a warning. 10000 | |
| ERROR_PROPERTY_ACCESS_BLOCKED | back to summary |
|---|---|
| protected static final String ERROR_PROPERTY_ACCESS_BLOCKED The error text when a security manager blocks access to a property. Access to this property blocked by a security manager | |
| KILOBYTE | back to summary |
|---|---|
| private static final int KILOBYTE | |
| MINUTES_PER_HOUR | back to summary |
|---|---|
| private static final int MINUTES_PER_HOUR | |
| SECONDS_PER_MILLISECOND | back to summary |
|---|---|
| private static final int SECONDS_PER_MILLISECOND | |
| SECONDS_PER_MINUTE | back to summary |
|---|---|
| private static final int SECONDS_PER_MINUTE | |
| TEST_FILE_SIZE | back to summary |
|---|---|
| private static final int TEST_FILE_SIZE How big a test file to write. 32 | |
| Diagnostics | back to summary |
|---|---|
| private Diagnostics() utility class | |
| doReport | back to summary |
|---|---|
| public static void doReport(PrintStream out) Print a report to the given stream.
| |
| doReport | back to summary |
|---|---|
| public static void doReport(PrintStream out, int logLevel) Print a report to the given stream.
| |
| doReportAntHomeLibraries | back to summary |
|---|---|
| private static void doReportAntHomeLibraries(PrintStream out) Report the content of ANT_HOME/lib directory
| |
| doReportAntProperties | back to summary |
|---|---|
| private static void doReportAntProperties(PrintStream out) Report the content of ANT_HOME/lib directory
| |
| doReportLocale | back to summary |
|---|---|
| private static void doReportLocale(PrintStream out) Report locale information
| |
| doReportParserInfo | back to summary |
|---|---|
| private static void doReportParserInfo(PrintStream out) tell the user about the XML parser
| |
| doReportProxy | back to summary |
|---|---|
| private static void doReportProxy(PrintStream out) Report proxy information
| |
| doReportSystemProperties | back to summary |
|---|---|
| private static void doReportSystemProperties(PrintStream out) Report a listing of system properties existing in the current vm.
| |
| doReportTasksAvailability | back to summary |
|---|---|
| private static void doReportTasksAvailability(PrintStream out) Create a report about non-available tasks that are defined in the mapping but could not be found via lookup. It might generally happen because Ant requires multiple libraries to compile and one of them was missing when compiling Ant.
| |
| doReportTempDir | back to summary |
|---|---|
| private static void doReportTempDir(PrintStream out) try and create a temp file in our temp dir; this checks that it has space and access. We also do some clock reporting.
| |
| doReportUserHomeLibraries | back to summary |
|---|---|
| private static void doReportUserHomeLibraries(PrintStream out) Report the content of ~/.ant/lib directory
| |
| doReportWhich | back to summary |
|---|---|
| private static void doReportWhich(PrintStream out) Call org.apache.env.Which if available
| |
| doReportXSLTProcessorInfo | back to summary |
|---|---|
| private static void doReportXSLTProcessorInfo(PrintStream out) tell the user about the XSLT processor
| |
| getClassLocation | back to summary |
|---|---|
| private static URL getClassLocation(Class<?> clazz) Helper method to get the location.
| |
| getImplementationVersion | back to summary |
|---|---|
| private static String getImplementationVersion(Class<?> clazz) Helper method to get the implementation version. | |
| getNamespaceParserLocation | back to summary |
|---|---|
| private static String getNamespaceParserLocation() | |
| getNamespaceParserName | back to summary |
|---|---|
| private static String getNamespaceParserName() | |
| getProperty | back to summary |
|---|---|
| private static String getProperty(String key) Get the value of a system property. If a security manager blocks access to a property it fills the result in with an error
| |
| getSAXParser | back to summary |
|---|---|
| private static SAXParser getSAXParser() Create a JAXP SAXParser
| |
| getXMLParserLocation | back to summary |
|---|---|
| private static String getXMLParserLocation() get the location of the parser
| |
| getXMLParserName | back to summary |
|---|---|
| private static String getXMLParserName() what parser are we using.
| |
| getXSLTProcessor | back to summary |
|---|---|
| private static Transformer getXSLTProcessor() Create a JAXP XSLT Transformer
| |
| getXSLTProcessorLocation | back to summary |
|---|---|
| private static String getXSLTProcessorLocation() get the location of the parser
| |
| getXSLTProcessorName | back to summary |
|---|---|
| private static String getXSLTProcessorName() what parser are we using.
| |
| header | back to summary |
|---|---|
| private static void header(PrintStream out, String section) | |
| ignoreThrowable | back to summary |
|---|---|
| private static void ignoreThrowable(Throwable thrown) ignore exceptions. This is to allow future implementations to log at a verbose level
| |
| isOptionalAvailable | back to summary |
|---|---|
| public static boolean isOptionalAvailable()
Deprecated Obsolete since Ant 1.8.2 Doesn't do anything.
| |
| listJarFiles | back to summary |
|---|---|
| private static File[] listJarFiles(File libDir) get a list of all JAR files in a directory | |
| listLibraries | back to summary |
|---|---|
| public static File[] listLibraries() return the list of jar files existing in ANT_HOME/lib and that must have been picked up by Ant script.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) main entry point for command line
| |
| printLibraries | back to summary |
|---|---|
| private static void printLibraries(File[] libs, PrintStream out) list the libraries
| |
| printParserInfo | back to summary |
|---|---|
| private static void printParserInfo(PrintStream out, String parserType, String parserName, String parserLocation) | |
| printProperty | back to summary |
|---|---|
| private static void printProperty(PrintStream out, String key) print a property name="value" pair if the property is set; print nothing if it is null
| |
| validateVersion | back to summary |
|---|---|
| public static void validateVersion() throws BuildException
Deprecated Obsolete since Ant 1.8.2 Doesn't do anything.
| |