remove dead comment

This commit is contained in:
Rick Giles 2002-12-08 17:39:37 +00:00
parent f1e8474f25
commit ec0085226c
1 changed files with 0 additions and 116 deletions

View File

@ -178,122 +178,6 @@ public class CheckStyleTask
// The doers
////////////////////////////////////////////////////////////////////////////
// /**
// * Actually checks the files specified. All errors are reported to
// * System.out. Will fail if any errors occurred.
// * @throws BuildException an error occurred
// */
// public void execute()
// throws BuildException
// {
// // Check for no arguments
// if ((mFileName == null) && (mFileSets.size() == 0)) {
// throw new BuildException(
// "Must specify atleast one of 'file' or nested 'fileset'.",
// getLocation());
// }
//
// if (mConfigFile == null) {
// throw new BuildException("Must specify 'config'.", getLocation());
// }
//
// // Create the checker
// Checker c = null;
// try {
// try {
// final GlobalProperties config = createGlobalProperties();
// final CheckConfiguration[] checkConfigs =
// ConfigurationLoader.loadConfigs(
// mConfigFile.getAbsolutePath());
// c = new Checker(config, checkConfigs);
// // setup the listeners
// AuditListener[] listeners = getListeners();
// for (int i = 0; i < listeners.length; i++) {
// c.addListener(listeners[i]);
// }
// }
// catch (Exception e) {
// throw new BuildException(
// "Unable to create a Checker: " + e.getMessage(), e);
// }
//
// // Process the files
// final String[] files = scanFileSets();
// final int numErrs = c.process(files);
//
// // Handle the return status
// if ((numErrs > 0) && mFailureProperty != null) {
// getProject().setProperty(mFailureProperty, "true");
// }
//
// if ((numErrs > 0) && mFailOnViolation) {
// throw new BuildException("Got " + numErrs + " errors.",
// getLocation());
// }
// }
// finally {
// if (c != null) {
// c.destroy();
// }
// }
// }
//
// /**
// * Create the GlobalProperties object based on the arguments specified
// * to the ANT task.
// * @return a brand spanking new GlobalProperties object
// * @throws BuildException if an error occurs
// */
// private GlobalProperties createGlobalProperties()
// {
// final Properties props = new Properties();
//
// // Load the properties file is specified
// if (mPropertiesFile != null) {
// try {
// props.load(new FileInputStream(mPropertiesFile));
// }
// catch (FileNotFoundException e) {
// throw new BuildException(
// indent me - "Could not find Properties file '" + mPropertiesFile + "'",
// e, getLocation());
// }
// catch (IOException e) {
// throw new BuildException(
// "Error loading Properties file '" + mPropertiesFile + "'",
// e, getLocation());
// }
// }
//
// // Now override the properties specified
// for (Iterator it = mOverrideProps.iterator(); it.hasNext();) {
// final Property p = (Property) it.next();
// props.setProperty(p.getKey(), p.getValue());
// }
//
// // Create the configuration
// final GlobalProperties retVal;
// try {
// retVal = new GlobalProperties(props, System.out);
// }
// catch (RESyntaxException e) {
// throw new BuildException("An regular expression error exists.",
// e, getLocation());
// }
// catch (IOException e) {
// throw new BuildException(
// "An error loading the file '" + e.getMessage() + "'",
// e, getLocation());
// }
//
// // setup the classloader
// if (mClasspath != null) {
// indent--retVal.setClassLoader(new AntClassLoader(getProject(), mClasspath));
// }
//
// return retVal;
// }
/**
* Actually checks the files specified. All errors are reported to
* System.out. Will fail if any errors occurred.