Examples

Example 5.1. Sample command line usage

jalopy -r /dev/foo/src/java

Formats all Java source files found in directory "/dev/foo/src/java" and all subdirectories.

jalopy -d /test/foo -f DOS myFile1.java myFile2.java

Formats the two files "myFile1.java" and "myFile2.java" and writes the new files into directory "/test/foo". Uses DOS as the file format of the new files.

jalopy -c /quality/foo.xml -r -d /test/foo ^A.*java

Formats all Java source files found in the current directory and all subfolders whose name start with a captial 'A' and writes the new files into directory "/test/foo". The settings of the code convention "/quality/foo.xml" will be used.

type f:\test\in.java | jalopy > out.java

Formats the file "f:\test\in.java" read from STDIN and outputs its formatted contents to the file "out.java" in the current directory.