Package org.slf4j.migrator
Class ProjectConverter
- java.lang.Object
-
- org.slf4j.migrator.ProjectConverter
-
public class ProjectConverter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ConversionException>
exception
(package private) ProgressListener
progressListener
private RuleSet
ruleSet
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(ConversionException exc)
void
convertProject(java.io.File folder)
static void
main(java.lang.String[] args)
void
printException()
private void
scanFile(java.io.File file)
Convert the specified file Read each line and ask matcher implementation for conversion Rewrite the line returned by matcherprivate void
scanFileList(java.util.List<java.io.File> lstFiles)
Convert a list of files
-
-
-
Field Detail
-
ruleSet
private RuleSet ruleSet
-
exception
private java.util.List<ConversionException> exception
-
progressListener
ProgressListener progressListener
-
-
Constructor Detail
-
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 Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
convertProject
public void convertProject(java.io.File folder)
-
scanFileList
private void scanFileList(java.util.List<java.io.File> lstFiles)
Convert a list of files- Parameters:
lstFiles
-
-
scanFile
private void scanFile(java.io.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()
-
-