Pulled main out of ProcessFiles.java so it runs on CI
This commit is contained in:
parent
0f85a79f7f
commit
e16b83434c
43
annotations/DemoProcessFiles.java
Normal file
43
annotations/DemoProcessFiles.java
Normal file
@ -0,0 +1,43 @@
|
||||
// annotations/DemoProcessFiles.java
|
||||
// (c)2017 MindView LLC: see Copyright.txt
|
||||
// We make no guarantees that this code is fit for any purpose.
|
||||
// Visit http://OnJava8.com for more book information.
|
||||
import onjava.ProcessFiles;
|
||||
|
||||
public class DemoProcessFiles {
|
||||
public static void main(String[] args) {
|
||||
new ProcessFiles(file -> System.out.println(file),
|
||||
"java").start(args);
|
||||
}
|
||||
}
|
||||
/* Output:
|
||||
.\AtUnitExample1.java
|
||||
.\AtUnitExample2.java
|
||||
.\AtUnitExample3.java
|
||||
.\AtUnitExample4.java
|
||||
.\AtUnitExample5.java
|
||||
.\AUComposition.java
|
||||
.\AUExternalTest.java
|
||||
.\database\Constraints.java
|
||||
.\database\DBTable.java
|
||||
.\database\Member.java
|
||||
.\database\SQLInteger.java
|
||||
.\database\SQLString.java
|
||||
.\database\TableCreator.java
|
||||
.\database\Uniqueness.java
|
||||
.\DemoProcessFiles.java
|
||||
.\HashSetTest.java
|
||||
.\ifx\ExtractInterface.java
|
||||
.\ifx\IfaceExtractorProcessor.java
|
||||
.\ifx\Multiplier.java
|
||||
.\PasswordUtils.java
|
||||
.\simplest\Simple.java
|
||||
.\simplest\SimpleProcessor.java
|
||||
.\simplest\SimpleTest.java
|
||||
.\SimulatingNull.java
|
||||
.\StackL.java
|
||||
.\StackLStringTst.java
|
||||
.\Testable.java
|
||||
.\UseCase.java
|
||||
.\UseCaseTracker.java
|
||||
*/
|
@ -2,8 +2,6 @@
|
||||
// (c)2017 MindView LLC: see Copyright.txt
|
||||
// We make no guarantees that this code is fit for any purpose.
|
||||
// Visit http://OnJava8.com for more book information.
|
||||
// {ValidateByHand} // main() won't run on Travis CI
|
||||
// {java onjava.ProcessFiles}
|
||||
package onjava;
|
||||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
@ -47,32 +45,4 @@ public class ProcessFiles {
|
||||
.filter(matcher::matches)
|
||||
.forEach(p -> strategy.process(p.toFile()));
|
||||
}
|
||||
// Demonstration of how to use it:
|
||||
public static void main(String[] args) {
|
||||
new ProcessFiles(file -> System.out.println(file),
|
||||
"java").start(args);
|
||||
}
|
||||
}
|
||||
/* Output: (First and Last 10 Lines)
|
||||
.\ArrayShow.java
|
||||
.\atunit\AtUnit.java
|
||||
.\atunit\ClassNameFinder.java
|
||||
.\atunit\Test.java
|
||||
.\atunit\TestObjectCleanup.java
|
||||
.\atunit\TestObjectCreate.java
|
||||
.\atunit\TestProperty.java
|
||||
.\BasicSupplier.java
|
||||
.\CollectionMethodDifferences.java
|
||||
.\ConvertTo.java
|
||||
...________...________...________...________...
|
||||
.\Stack.java
|
||||
.\Suppliers.java
|
||||
.\TimedAbort.java
|
||||
.\Timer.java
|
||||
.\Tuple.java
|
||||
.\Tuple2.java
|
||||
.\Tuple3.java
|
||||
.\Tuple4.java
|
||||
.\Tuple5.java
|
||||
.\TypeCounter.java
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user