-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YETUS-972. Make javadoc phase and goal configurable in maven.sh #112
Conversation
Do you want to be able to use multiple goals? Like the example from HDFS-15424 was process-sources followed by a no fork javadoc? To do things like that the cli arg needs to take a list of goals. |
Yes. Updated the patch to allow multiple goals from CLI. Thank you @busbey. |
@@ -26,7 +26,7 @@ MAVEN_CUSTOM_REPOS=false | |||
MAVEN_CUSTOM_REPOS_DIR="@@@WORKSPACE@@@/yetus-m2" | |||
MAVEN_DEPENDENCY_ORDER=true | |||
MAVEN_FOUND_ROOT_POM=false | |||
MAVEN_JAVADOC="javadoc:javadoc" | |||
MAVEN_JAVADOC_GOALS="javadoc:javadoc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an array
--mvn-javadoc-goals=*) | ||
delete_parameter "${i}" | ||
MAVEN_JAVADOC_GOALS=${i#*=} | ||
MAVEN_JAVADOC_GOALS=${MAVEN_JAVADOC_GOALS//,/ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use yetus_comma_to_array
@@ -335,7 +343,7 @@ function maven_modules_worker | |||
modules_workers "${repostatus}" distclean clean -DskipTests=true | |||
;; | |||
javadoc) | |||
modules_workers "${repostatus}" javadoc clean javadoc:javadoc -DskipTests=true | |||
modules_workers "${repostatus}" javadoc clean "${MAVEN_JAVADOC_GOALS}" -DskipTests=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "${MAVEN_JAVADOC_GOALS[@]}"
Thank you for your quick review! Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wait for qabot. LGTM.
(!) A patch to the testing environment has been detected. |
🎊 +1 overall
This message was automatically generated. |
Merged. Thank you @busbey ! |
JIRA: https://issues.apache.org/jira/browse/YETUS-972