Class ProjectConverter

java.lang.Object
org.slf4j.migrator.ProjectConverter

public class ProjectConverter extends Object
  • Field Details

  • Constructor Details

    • ProjectConverter

      public ProjectConverter(int conversionType, ProgressListener progressListener)
      Ask for concrete matcher implementation depending on the conversion mode Ask for user confirmation to convert the selected source directory if valid Ask for user confirmation in case of number of files to convert > 1000
      Parameters:
      conversionType -
      progressListener -
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • convertProject

      public void convertProject(File folder)
    • scanFileList

      private void scanFileList(List<File> lstFiles)
      Convert a list of files
      Parameters:
      lstFiles -
    • scanFile

      private void scanFile(File file)
      Convert the specified file Read each line and ask matcher implementation for conversion Rewrite the line returned by matcher
      Parameters:
      file -
    • addException

      public void addException(ConversionException exc)
    • printException

      public void printException()