Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1038

Read options also from a config file (.properties-like)

    XMLWordPrintable

Details

    Description

      In addition to

      bin/windup --input /home/ondra/work/Migration/TestApps/_apps/jee-example-app-1.0.0-unparsable.ear \
      --output /tmp/Windup/resJee --overwrite --batchMode --debugx --keepWorkDirs --target eap\
       --packages com us --offline --mavenize --enableClassNotFoundAnalysis --enableTattletale
      

      users could run

      bin/windup --options myRun.properties
      

      and myRun.properties would contain

      input: /home/ondra/work/Migration/TestApps/_apps/jee-example-app-1.0.0-unparsable.ear
      output: /tmp/Windup/resJee 
      overwrite:
      batchMode:
      debug:
      keepWorkDirs:
      target: eap
      packages: com us
      offline:
      mavenize:
      enableClassNotFoundAnalysis:
      enableTattletale:
      

      or an equivalent in XML.
      (I am assuming that the properties API can differentiate empty and missing value, not sure. It could be a custom keyval API.)

      This would IMO improve user experience in few ways:
      1) Several "profiles" ready to use just by changing the --option param
      2) Less error prone than console command arguments
      3) More readable
      4) Easier for scripted scenarios (CI)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: