Class ParameterExpander_main

java.lang.Object
eu.bandm.tools.util3.ParameterExpander_main

public class ParameterExpander_main extends Object
  • Field Details

  • Constructor Details

    • ParameterExpander_main

      public ParameterExpander_main()
  • Method Details

    • log

      protected static void log(String t, Object... args)
    • error

      protected static void error(Exception ex)
    • error

      protected static void error(String t, Object... args)
    • warning

      protected static void warning(String t, Object... args)
    • main

      public static void main(String[] args)
      Frontend to call the parameter expander for multiple input files and single or multiple substitution qualifiers. A command line call can look like ..
          --inputfiles f_.java  g.java 
          --substitutions date $(MAKEDATE) host $(shell host -f)
          --substitutionFiles mySubst
          --escape %
          --targetdir ../output
        
      .. or like ..
          --inputfiles fX.java  gX.java 
          --substitutions date $(MAKEDATE) host $(shell host -f)
          --substitutionFiles generalSubsts.substs specialSubstsX.substs
          --placeholder X
          --qualifiers Int Bool 
        
      (For details and more options see ParameterExpanderOptions.)

      If qualifiers are present, then one outputfile is generated for each combinations of input file and qualifier. The qualifier replaces the first occurence of the placeholder in the input file name to generate the output file name, and in the substitution files for reading them.

      If more than one qualifier is present, each input filename must contain a placeholder character.

      With no qualifiers, all file names are treated verbatim.

      With no qualifiers and/or no placeholder character in an input file name, the option --targetdir should be used to distinguish input and output file.

    • nonStatic_main

      public void nonStatic_main(String[] args)