You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by po...@apache.org on 2025/04/08 15:40:39 UTC

(incubator-kie-kogito-pipelines) branch 10.1.x-old created (now b456ba10)

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

porcelli pushed a change to branch 10.1.x-old
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git


      at b456ba10 [NO ISSUE] combine .rat-excludes files for source zip root (#1277)

This branch includes the following new commits:

     new b456ba10 [NO ISSUE] combine .rat-excludes files for source zip root (#1277)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


(incubator-kie-kogito-pipelines) 01/01: [NO ISSUE] combine .rat-excludes files for source zip root (#1277)

Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch 10.1.x-old
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git

commit b456ba10fcd4b7b53fb9320fa90fa6938d5db43b
Author: Toshiya Kobayashi <to...@gmail.com>
AuthorDate: Thu Mar 27 20:57:46 2025 +0900

    [NO ISSUE] combine .rat-excludes files for source zip root (#1277)
    
    * [NO ISSUE] combine .rat-excludes files for root
    
    * add comment
    
    * add DevelopmentNotes.md
---
 tools/DevelopmentNotes.md | 41 +++++++++++++++++++++++++++++++++++++++++
 tools/zip-sources-all.sh  | 11 +++++++++++
 2 files changed, 52 insertions(+)

diff --git a/tools/DevelopmentNotes.md b/tools/DevelopmentNotes.md
new file mode 100644
index 00000000..719cd57f
--- /dev/null
+++ b/tools/DevelopmentNotes.md
@@ -0,0 +1,41 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+  -->
+
+## zip-sources-all.sh
+
+Clones specified repositories, adds some files for root directory, and zips them as a source code distribution.
+
+To test `zip-sources-all.sh` locally,
+
+- Edit `./tools/zip-sources-all.sh` to uncomment and set variables
+
+for example:
+```
+TARGET_VERSION="10.1.0"
+SOURCES_DEFAULT_BRANCH="main"
+GIT_AUTHOR="apache"
+
+SOURCES_REPOSITORIES="incubator-kie-drools
+incubator-kie-kogito-runtimes
+incubator-kie-kogito-apps
+incubator-kie-optaplanner
+incubator-kie-tools"
+```
+
+- Execute `./tools/zip-sources-all.sh source.zip`
diff --git a/tools/zip-sources-all.sh b/tools/zip-sources-all.sh
index c1bb362e..58d1d299 100755
--- a/tools/zip-sources-all.sh
+++ b/tools/zip-sources-all.sh
@@ -86,6 +86,17 @@ function zip_sources() {
 
   done <<< $SOURCES_REPOSITORIES
 
+  #Combining .rat-excludes files
+  pushd ${SOURCES_DIRECTORY_NAME}
+  echo "Combining .rat-excludes files"
+  RAT_EXCLUDES_COMBINED_FILE=".rat-excludes-combined"
+  while read line; do
+    cat ${line}/.rat-excludes >> ${RAT_EXCLUDES_COMBINED_FILE}
+    echo "" >> ${RAT_EXCLUDES_COMBINED_FILE}
+  done <<< $SOURCES_REPOSITORIES
+  echo ${RAT_EXCLUDES_COMBINED_FILE} >> ${RAT_EXCLUDES_COMBINED_FILE} #Add the filename itself to the file
+  popd
+
   #Add LICENSE, NOTICE and DISCLAIMER files to the root folder of the zip file
   echo "Adding LICENSE, NOTICE and DISCLAIMER files to the zip file"
   cp ./tools/zip-sources-files/{LICENSE,NOTICE,DISCLAIMER} ${SOURCES_DIRECTORY_NAME}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org