Changeset 708:7c7e655f02f1 in make_builder


Ignore:
Timestamp:
02.10.2020 14:59:51 (20 months ago)
Author:
Axel Vierling <vierling@…>
Branch:
default
Phase:
public
Tags:
tip
Rebase:
36643061306639616664343330323430616238383161646165386164623261663237336635663131
Message:

Added visual/color distinction between missing dependencies of optional libraries and normal libraries

Location:
src/makebuilder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/makebuilder/BuildEntity.java

    r707 r708  
    195195            if (be.missingDep) { 
    196196                missingDep = true; 
    197                 mfb.printCannotBuildError(this, Util.color(" due to dependency " + be.getReferenceName() + " (" + be.errorMessageId + ")", Util.Color.X, false) + " (" + be.buildFile.relative + (be.lineNumber != 0 ? (":" + be.lineNumber) : "") + ") " + Util.color("which cannot be built", Util.Color.X, false), Util.Color.X); 
     197                Color messageColor = this.isOptional() ? Util.Color.LIGHTBLUE : Util.Color.X; 
     198                mfb.printCannotBuildError(this, Util.color(" due to dependency " + be.getReferenceName() + " (" + be.errorMessageId + ")", messageColor, false) + " (" + be.buildFile.relative + (be.lineNumber != 0 ? (":" + be.lineNumber) : "") + ") " + Util.color("which cannot be built", messageColor, false), messageColor); 
    198199                return; 
    199200            } 
  • src/makebuilder/util/Util.java

    r626 r708  
    171171 
    172172    /** Color for output */ 
    173     public enum Color { NONE, RED, GREEN, X, Y } 
     173    public enum Color { NONE, RED, GREEN, X, Y, WHITE, ORANGE, LIGHTBLUE} 
    174174 
    175175    /** Control Strings for colors */ 
    176     private static String[] COLOR_STRING = {"", "\033[;2;31m", "\033[;2;32m", "\033[;2;34m", "\033[;2;33m"}; 
     176    private static String[] COLOR_STRING = {"", "\033[;2;31m", "\033[;2;32m", "\033[;2;34m", "\033[;2;33m", "\033[;2;37m", "\033[;2;38;5;208m", "\033[;2;38;5;45m"}; 
    177177 
    178178    /** 
Note: See TracChangeset for help on using the changeset viewer.