Logo Search packages:      
Sourcecode: adacontrol version File versions  Download package

def adactl::run (   rules,
  files 
)
Run Adacontrol
   rules = "ask" | "file" | "check"
   files = "current" | "list" | "project" | "" (means: depending on button definition)

Definition at line 429 of file adactl.py.

                      :
   """Run Adacontrol
      rules = "ask" | "file" | "check"
      files = "current" | "list" | "project" | "" (means: depending on button definition)
   """
   global previous_command, result
   global output_name, gps

   try:
     command_line = command_name () + ' ' + options (rules, files)
   except ValueError:
     return

   pre_clean()
   if GPS.Preference ("display-run").get():
      print command_line
   proc = GPS.Process (command          = command_line,
                       task_manager     = True,
                       regexp           = ".+",
                       on_match         = process_line,
                       progress_regexp  = "^\((\d+)/(\d+)\)",
                       progress_current = 1,
                       progress_total   = 2)
   res=proc.wait()
   parse (result)
   if gps and output_name:
      load_result (output_name)
   post_clean()

   # return the return code only if checking interactive rule syntax
   if rules == "check" and files:
      return res


Generated by  Doxygen 1.6.0   Back to index