Beispiel #1
0
 void load() {
   FileObject checkstyleConfigurationFile =
       GlobalCheckstyleSettings.INSTANCE.getCheckstyleConfigurationFile();
   String cleanAbsoluteFile = FileUtil.toFile(checkstyleConfigurationFile).getAbsolutePath();
   checkstyleConfiguration.setConfigFilePath(cleanAbsoluteFile);
   FileObject checkstylePropertiesFile = GlobalCheckstyleSettings.INSTANCE.getPropertiesFile();
   if (null != checkstylePropertiesFile) {
     String propertiesFilePath = FileUtil.toFile(checkstylePropertiesFile).getAbsolutePath();
     checkstyleConfiguration.setPropertiesFilePath(propertiesFilePath);
   } else {
     checkstyleConfiguration.setPropertiesFilePath("");
   }
   checkstyleConfiguration.setProperties(
       GlobalCheckstyleSettings.INSTANCE.getPropertiesAsString());
 }