| | # Usage |
| | |
| | -Run `Main` by passing the name of the Java class file to parse as follows: |
| | - |
| | - pushd ../src/main/java |
| | - for i in $(find . -type f -name "*.java"); do \ |
| | - java -cp ../../../logging/jp.jar com.github.javaparser.Main "$i" > \ |
| | - "$i.jp"; |
| | - done |
| | - |
| | -That command creates a series of processed Java files with a `.jp` extension. |
| | -Replace the original files with the updated versions as follows: |
| | - |
| | - find . -type f -name "*jp" -size +100c -exec \ |
| | - sh -c 'mv {} $(dirname {})/$(basename {} .jp)' \; |
| | - |
| | -The `+100c` is ensures that files without contents do not overwrite |
| | -existing files. Not sure why 0-byte files are created. |
| | +Run the `inject` script to replace the original files with the logging |
| | +versions. |
| | |
| | # Revert |
| | |
| | When finished building a debug version of the application, reset the repo |
| | as follows: |
| | |
| | - popd |
| | git reset --hard HEAD |
| | |