This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d47097151 Build: Fix ./gradlew refreshJavadoc (#6390)
6d47097151 is described below

commit 6d47097151b4df1d3269563a7ebfdb4b6c270a64
Author: gaborkaszab <[email protected]>
AuthorDate: Fri Dec 9 09:26:16 2022 +0100

    Build: Fix ./gradlew refreshJavadoc (#6390)
    
    Since site/ folder was added to .gitignore the refreshJavadoc task started 
to
    fail. The reson is that as a last step it wanted to do a 'git add' on the
    Javadoc files, however it couldn't due to site/ being added to gitignore. 
The
    Javadoc files anyway were generated successfully.
    Not adding these files to git is on purpose as they are meant to be copied 
over
    to iceberg-docs repo and released from there. So this 'git add' step is 
removed
    from the task.
---
 tasks.gradle | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tasks.gradle b/tasks.gradle
index 421373c442..44a6206ffe 100644
--- a/tasks.gradle
+++ b/tasks.gradle
@@ -43,11 +43,10 @@ task removeJavadoc(type: Exec) {
   commandLine 'rm', '-rf', "site/docs/javadoc/${getJavadocVersion()}"
 }
 
-task refreshJavadoc(type: Exec) {
+task refreshJavadoc() {
   dependsOn aggregateJavadoc
   dependsOn removeJavadoc
   aggregateJavadoc.mustRunAfter removeJavadoc
-  commandLine 'git', 'add', "site/docs/javadoc/${getJavadocVersion()}"
 }
 
 task deploySite(type: Exec) {

Reply via email to