You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2020/04/15 18:27:37 UTC

[openoffice] branch scons-build updated: Deal with empty module targets.

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

damjan pushed a commit to branch scons-build
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/scons-build by this push:
     new 4438f6d  Deal with empty module targets.
4438f6d is described below

commit 4438f6d10f2390671a7cd49a220435d9e54b8333
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Wed Apr 15 20:26:47 2020 +0200

    Deal with empty module targets.
    
    Patch by: me
---
 .../src/main/java/org/apache/openoffice/gotoSCons/targets/Module.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gotoSCons/src/main/java/org/apache/openoffice/gotoSCons/targets/Module.java b/gotoSCons/src/main/java/org/apache/openoffice/gotoSCons/targets/Module.java
index 2f2769c..5dba1f5 100644
--- a/gotoSCons/src/main/java/org/apache/openoffice/gotoSCons/targets/Module.java
+++ b/gotoSCons/src/main/java/org/apache/openoffice/gotoSCons/targets/Module.java
@@ -91,6 +91,9 @@ public class Module extends BaseTarget {
         if (!args[0].equals(name)) {
             throw new Exception("Module isn't " + name);
         }
+        if (args.length == 1) {
+            return; // file list empty
+        }
         for (String arg : Utils.spaceSeparatedTokens(args[1])) {
             File makefile = new File(filename.getParentFile(), arg + ".mk");
             if (arg.startsWith("AllLangResTarget_")) {