private static void printNonAffectedClasses ( Set < String > allClasses , Set < String > affectedClasses , List < String > nonAffectedClasses , String mode ) { if ( mode != null && mode . equals ( ANT_MODE ) ) { StringBuilder sb = new StringBuilder ( ) ; for ( String className : nonAffectedClasses ) { className = className . replaceAll ( "\\." , "/" ) ; sb . append ( "<exclude name=\"" + className + ".java\"/>" ) ; } System . out . println ( sb ) ; } else if ( mode != null && mode . equals ( MAVEN_SIMPLE_MODE ) ) { StringBuilder sb = new StringBuilder ( ) ; for ( String className : nonAffectedClasses ) { className = className . replaceAll ( "\\." , "/" ) ; sb . append ( "<exclude>" ) ; sb . append ( className ) . append ( ".java" ) ; sb . append ( "</exclude>" ) ; } System . out . println ( sb ) ; } else if ( mode != null && mode . equals ( MAVEN_MODE ) ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "<excludes>" ) ; for ( String className : nonAffectedClasses ) { className = className . replaceAll ( "\\." , "/" ) ; sb . append ( "<exclude>" ) ; sb . append ( className ) . append ( ".java" ) ; sb . append ( "</exclude>" ) ; } sb . append ( "</excludes>" ) ; System . out . println ( sb ) ; } else if ( mode != null && mode . equals ( DEBUG_MODE ) ) { System . out . println ( "AFFECTED: " + affectedClasses ) ; System . out . println ( "NONAFFECTED: " + nonAffectedClasses ) ; } else { for ( String className : nonAffectedClasses ) { System . out . println ( className ) ; } } }
Prints non affected classes in the given mode . If mode is not specified one class is printed per line .