Package eu.bandm.tools.util3
Class ParameterExpander_main
java.lang.Object
eu.bandm.tools.util3.ParameterExpander_main
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static MessageTee<SimpleMessage<String>> protected static MessageCounterprotected static ParameterExpanderOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected static voidprotected static voidstatic voidFrontend to call the parameter expander for multiple input files and single or multiple substitution qualifiers.voidnonStatic_main(String[] args) protected static void
-
Field Details
-
options
-
msg_c
-
msg
-
-
Constructor Details
-
ParameterExpander_main
public ParameterExpander_main()
-
-
Method Details
-
log
-
error
-
error
-
warning
-
main
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 seeParameterExpanderOptions.)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
--targetdirshould be used to distinguish input and output file. -
nonStatic_main
-