Example #1
0
 /**
  * Initialize Build Task
  *
  * @param   String  $extension  The extension (component, module etc.)
  */
 public function __construct($extension)
 {
     parent::__construct();
     $this->adminLangPath = $this->getSourceFolder() . "/administrator/language";
     $this->frontLangPath = $this->getSourceFolder() . "/language";
     $this->ext = $extension;
     $this->type = substr($extension, 0, 3);
 }
Example #2
0
 /**
  * Initialize Build Task
  *
  * @param   String  $params  The target directory
  */
 public function __construct($params)
 {
     parent::__construct();
     // Reset files - > new component
     $this->resetFiles();
     $this->adminPath = $this->getSourceFolder() . "/administrator/components/com_" . $this->getExtensionName();
     $this->frontPath = $this->getSourceFolder() . "/components/com_" . $this->getExtensionName();
 }
Example #3
0
 /**
  * Initialize Build Task
  *
  * @param String $templateName  Name of the template
  * @param String $params   Optional params
  */
 public function __construct($templateName, $params)
 {
     parent::__construct();
     // Reset files - > new template
     $this->resetFiles();
     $this->templateName = $templateName;
     $this->source = $this->getSourceFolder() . "/templates/" . $templateName;
     $this->target = $this->getBuildFolder() . "/templates/" . $templateName;
 }
Example #4
0
 /**
  * Initialize Build Task
  *
  * @param   String  $modName  Name of the module
  * @param   String  $params   Optional params
  */
 public function __construct($modName, $params)
 {
     parent::__construct();
     // Reset files - > new module
     $this->resetFiles();
     $this->modName = $modName;
     $this->source = $this->getSourceFolder() . "/modules/" . $modName;
     $this->target = $this->getBuildFolder() . "/modules/" . $modName;
 }
Example #5
0
 /**
  * Initialize Build Task
  *
  * @param   String  $type    Type of the plugin
  * @param   String  $name    Name of the plugin
  * @param   String  $params  Optional params
  */
 public function __construct($type, $name, $params)
 {
     parent::__construct();
     // Reset files - > new module
     $this->resetFiles();
     $this->plgName = $name;
     $this->plgType = $type;
     $this->source = $this->getSourceFolder() . "/components/com_comprofiler/plugin/" . $type . "/" . $name;
     $this->target = $this->getBuildFolder() . "/components/com_comprofiler/plugin/" . $type . "/" . $name;
 }
Example #6
0
 /**
  * Initialize Build Task
  *
  * @param   String  $libName       Name of the library to build
  * @param   String  $params        Optional params
  * @param   bool    $hasComponent  has the extension a component (then we need to build differnet)
  */
 public function __construct($libName, $params, $hasComponent)
 {
     parent::__construct();
     // Reset files - > new lib
     $this->resetFiles();
     $this->libName = $libName;
     $this->hasComponent = $hasComponent;
     $this->source = $this->getSourceFolder() . "/libraries/" . $libName;
     $this->target = $this->getBuildFolder() . "/libraries/" . $libName;
 }
Example #7
0
 /**
  * Initialize Build Task
  *
  * @param   String  $folder   The target directory
  * @param   String  $extName  The extension name
  */
 public function __construct($folder, $extName)
 {
     parent::__construct();
     $this->source = $this->getSourceFolder() . "/" . $folder;
     $this->extName = $extName;
     $this->type = substr($extName, 0, 3);
     $target = $this->getBuildFolder() . "/" . $folder;
     if ($this->type == 'mod') {
         $target = $this->getBuildFolder() . "/modules/" . $extName . "/" . $folder;
     } elseif ($this->type == 'plg') {
         $a = explode("_", $this->extName);
         $target = $this->getBuildFolder() . "/plugins/" . $a[1] . "/" . $a[2] . "/" . $folder;
     } elseif ($this->type == 'lib') {
         // Remove lib before - ugly hack
         $ex = str_replace("lib_", "", $this->extName);
         $target = $this->getBuildFolder() . "/libraries/" . $ex . "/" . $folder;
     }
     $this->target = $target;
 }
Example #8
0
 /**
  * Initialize Build Task
  *
  * @param   String  $params  The target directory
  */
 public function __construct($params)
 {
     parent::__construct();
 }
Example #9
0
File: Cli.php Project: nibra/jorobo
 /**
  * Initialize Build Task
  */
 public function __construct()
 {
     parent::__construct();
     $this->source = $this->getSourceFolder() . "/cli";
     $this->target = $this->getBuildFolder() . "/cli";
 }