コード例 #1
0
 public function __construct()
 {
     $this->Name = "agent_dep5";
     $this->Title = _("DEP5 copyright file generation");
     $this->AgentName = "dep5";
     parent::__construct();
 }
コード例 #2
0
 public function __construct()
 {
     $this->Name = "agent_adj2nest";
     $this->Title = 'adj2nest';
     $this->AgentName = "adj2nest";
     parent::__construct();
 }
コード例 #3
0
 public function __construct()
 {
     $this->Name = "agent_readmeoss";
     $this->Title = _("ReadMeOSS generation");
     $this->AgentName = "readmeoss";
     parent::__construct();
 }
コード例 #4
0
 public function __construct()
 {
     $this->Name = "agent_bucket";
     $this->Title = _("Bucket Analysis");
     $this->AgentName = "buckets";
     parent::__construct();
 }
コード例 #5
0
 public function __construct()
 {
     $this->Name = "agent_copyright";
     $this->Title = _("Copyright/Email/URL/Author Analysis");
     $this->AgentName = "copyright";
     parent::__construct();
 }
コード例 #6
0
 public function __construct()
 {
     $this->Name = "agent_pkgagent";
     $this->Title = _("Package Analysis (Parse package headers)");
     $this->AgentName = "pkgagent";
     parent::__construct();
 }
コード例 #7
0
ファイル: agent-monk.php プロジェクト: DanielDobre/fossology
 public function __construct()
 {
     $this->Name = "agent_monk";
     $this->Title = _("Monk License Analysis, scanning for licenses performing a text comparison");
     $this->AgentName = "monk";
     parent::__construct();
 }
コード例 #8
0
ファイル: agent-nomos.php プロジェクト: DanielDobre/fossology
 public function __construct()
 {
     $this->Name = "agent_nomos";
     $this->Title = _("Nomos License Analysis, scanning for licenses using regular expressions");
     $this->AgentName = "nomos";
     parent::__construct();
 }
コード例 #9
0
 public function __construct()
 {
     $this->Name = "agent_mimetype";
     $this->Title = _("MIME-type Analysis (Determine mimetype of every file.  Not needed for licenses or buckets)");
     $this->AgentName = "mimetype";
     parent::__construct();
 }
コード例 #10
0
 public function __construct()
 {
     $this->Name = "agent_unpack";
     $this->Title = _("Schedule an Unpack");
     $this->AgentName = "ununpack";
     parent::__construct();
 }
コード例 #11
0
 function __construct()
 {
     $this->Name = "agent_deciderjob";
     $this->Title = _("Automatic User License Decider");
     $this->AgentName = AGENT_DECIDER_JOB_NAME;
     parent::__construct();
 }
コード例 #12
0
 public function __construct()
 {
     $this->Name = "agent_spdx2";
     $this->Title = _("SPDX2 generation");
     $this->AgentName = "spdx2";
     parent::__construct();
 }
コード例 #13
0
 public function __construct()
 {
     $this->Name = "agent_monk_bulk";
     $this->Title = _("Monk Bulk License Clearing");
     $this->AgentName = "monkbulk";
     parent::__construct();
 }
コード例 #14
0
 public function __construct()
 {
     $this->Name = "agent_spdx2tv";
     $this->Title = _("SPDX2 generation in Tag:Value format");
     $this->AgentName = "spdx2tv";
     parent::__construct();
 }
コード例 #15
0
ファイル: agent-ninka.php プロジェクト: DanielDobre/fossology
 public function __construct()
 {
     $this->Name = "agent_ninka";
     $this->Title = _("Ninka License Analysis");
     $this->AgentName = "ninka";
     parent::__construct();
 }
コード例 #16
0
 /**
  * @param int $jobId
  * @param int $uploadId
  * @param string $errorMsg
  * @param Request $request
  * @return string
  */
 public function scheduleAgent($jobId, $uploadId, &$errorMsg, $request)
 {
     $dependencies = array();
     $rules = $request->get('deciderRules') ?: array();
     $rulebits = 0;
     foreach ($rules as $rule) {
         switch ($rule) {
             case 'nomosInMonk':
                 $dependencies[] = 'agent_nomos';
                 $dependencies[] = 'agent_monk';
                 $rulebits |= 0x1;
                 break;
             case 'nomosMonkNinka':
                 $dependencies[] = 'agent_nomos';
                 $dependencies[] = 'agent_monk';
                 $dependencies[] = 'agent_ninka';
                 $rulebits |= 0x2;
                 break;
             case 'reuseBulk':
                 $dependencies[] = 'agent_reuser';
                 $rulebits |= 0x4;
                 break;
             case 'wipScannerUpdates':
                 $this->addScannerDependencies($dependencies, $request);
                 $rulebits |= 0x8;
         }
     }
     if (empty($rulebits)) {
         return 0;
     }
     $args = self::RULES_FLAG . $rulebits;
     return parent::AgentAdd($jobId, $uploadId, $errorMsg, array_unique($dependencies), $args);
 }
コード例 #17
0
 public function doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs = "", $jq_cmd_args = null)
 {
     parent::doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies, $jqargs, $jq_cmd_args);
 }