Skip to content

Commit

Permalink
Update checking of javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Sep 19, 2023
1 parent 48f53a6 commit c8f3526
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions has-javadoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
FILES=$(find . -name "pom.xml" -type f)
MVNV=$(realpath ./mvnw)
for file in $FILES; do
COUNT_FOUND=$((1 + COUNT_FOUND))
DIR=$(dirname "$file")
pushd "$DIR" > /dev/null || exit 1
PACKAGING=$($MVNV help:evaluate -Dexpression=project.packaging -q -DforceStdout)
popd > /dev/null || exit 1
if [ "$PACKAGING" == "jar" ]; then
FILE=$(find $DIR/target -name "*-${VERSION}.jar" 2> /dev/null)
if [ "$FILE" = "" ]; then
COUNT_MISSING_JAR=$((1 + COUNT_MISSING_JAR))
echo "No jar in $DIR/target $PACKAGING"
else
check_jars "$FILE" "$DIR/target" "$VERSION"
if [[ "$file" != *"/target/"* ]]; then
COUNT_FOUND=$((1 + COUNT_FOUND))
DIR=$(dirname "$file")
pushd "$DIR" > /dev/null || exit 1
PACKAGING=$($MVNV help:evaluate -Dexpression=project.packaging -q -DforceStdout)
popd > /dev/null || exit 1
if [ "$PACKAGING" == "jar" ]; then
FILE=$(find $DIR/target -name "*-${VERSION}.jar" 2> /dev/null)
if [ "$FILE" = "" ]; then
COUNT_MISSING_JAR=$((1 + COUNT_MISSING_JAR))
echo "No jar in $DIR/target $PACKAGING"
else
check_jars "$FILE" "$DIR/target" "$VERSION"
fi
fi
fi
done
Expand Down

0 comments on commit c8f3526

Please sign in to comment.