diff --git a/docker/owlbot/java/bin/format_source.sh b/docker/owlbot/java/bin/format_source.sh index 48adb4a5f..eb82eb97d 100755 --- a/docker/owlbot/java/bin/format_source.sh +++ b/docker/owlbot/java/bin/format_source.sh @@ -17,7 +17,7 @@ set -e # Find all the java files relative to the current directory and format them # using google-java-format -list="$(find . -name '*.java' )" +list="$(find . -name '*.java' -not -path ".*/samples/snippets/generated/**/*" )" tmpfile=$(mktemp) for file in $list; @@ -35,4 +35,4 @@ done cat $tmpfile | xargs java -jar /owlbot/google-java-format.jar --replace -rm $tmpfile \ No newline at end of file +rm $tmpfile