Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_dependencies = array();
     $this->_properties = array();
     $this->_tasks = array();
 }
Пример #2
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlInputTextarea', 'name' => 'text', 'label' => 'Key=value pairs', 'value' => $this->getText(), 'help' => 'Lines started with semi-colons [;] are comments.'));
     parent::toHtml(array('title' => 'Properties'), $callbacks);
 }
Пример #3
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlInputText', 'name' => 'name', 'value' => $this->getName()), array('cb' => 'getHtmlInputText', 'name' => 'value', 'value' => $this->getValue()));
     parent::toHtml(array('title' => 'Property'), $callbacks);
 }
Пример #4
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'file', 'value' => $this->getFile()), array('cb' => 'getHtmlInputText', 'name' => 'toFile', 'label' => 'Destination file', 'value' => $this->getToFile()), array('cb' => 'getHtmlInputText', 'name' => 'toDir', 'label' => 'Destination dir', 'value' => $this->getToDir()), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'Copy'), $callbacks);
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_baseDir = null;
     $this->_defaultTarget = null;
     $this->_name = null;
     $this->_properties = array();
     $this->_targets = array();
 }
Пример #6
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     //
     // Filesets are always part of a builder element, thus they provide
     // direct-to-HTML output instead of callbacks into the parent
     //
     // HR
     parent::getHtmlInputRadio(array('name' => 'type', 'label' => 'Type', 'values' => array(array('help' => 'Check this if you ONLY want to match files.', 'label' => 'Files only', 'value' => Build_BuilderElement_Type_Fileset::FILE, 'checked' => $this->isTypeFile() ? true : false), array('help' => 'Check this if you ONLY want to match directories.', 'label' => 'Dirs only', 'value' => Build_BuilderElement_Type_Fileset::DIR, 'checked' => $this->isTypeDir() ? true : false), array('help' => 'Check this if you want to match BOTH files and directories.', 'label' => 'Both', 'value' => Build_BuilderElement_Type_Fileset::BOTH, 'checked' => $this->isTypeBoth() ? true : false))));
     parent::getHtmlInputCheckbox(array('help' => 'Enabling this will automatically exclude files and directories that match the following: *~, #*#, .#*, %*%, ._*, CVS, CVS/**, .cvsignore, SCCS, SCCS/**, vssver.scc, .svn, .svn/**, .DS_Store, .git, .git/**, .gitattributes, .gitignore, .gitmodules, .hg, .hg/**, .hgignore, .hgsub, .hgsubstate, .hgtags, .bzr, .bzr/**, .bzrignore.', 'label' => 'Default excludes?', 'name' => 'defaultExcludes', 'value' => '', 'checked' => $this->getDefaultExcludes()));
     parent::getHtmlInputText(array('name' => 'dir', 'label' => 'Base dir', 'value' => $this->getDir(), 'help' => 'The base directory on which to execute the task.'));
     // Includes
     $includesLine = '';
     if ($this->getInclude()) {
         $includes = $this->getInclude();
         foreach ($includes as $include) {
             $includesLine .= $include . ', ';
         }
         // TODO: Oh god... Seriously do this better:
         if (!empty($includesLine)) {
             $includesLine = substr($includesLine, 0, strlen($includesLine) - 2);
             // Oh god ^2...
         }
     }
     parent::getHtmlInputText(array('name' => 'include', 'label' => 'Files/dirs to include', 'value' => $includesLine, 'help' => 'Comma separated. All files and/or dirs that match this WILL BE considered. Please check http://ant.apache.org/manual/Types/patternset.html for more details.'));
     // Excludes
     $excludesLine = '';
     if ($this->getExclude()) {
         $excludes = $this->getExclude();
         foreach ($excludes as $exclude) {
             $excludesLine .= $exclude . ', ';
         }
         // TODO: Oh god... Seriously do this better:
         if (!empty($excludesLine)) {
             $excludesLine = substr($excludesLine, 0, strlen($excludesLine) - 2);
             // Oh god...
         }
     }
     parent::getHtmlInputText(array('name' => 'exclude', 'label' => 'Files/dirs to exclude', 'value' => $excludesLine, 'help' => 'Comma separated. All files and/or dirs that match this WILL NOT BE considered. Please check http://ant.apache.org/manual/Types/patternset.html for more details.'));
 }
Пример #7
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'includeDirs', 'label' => 'Include dirs', 'value' => $this->getIncludeDirs(), 'help' => 'Space separated.'), array('cb' => 'getHtmlInputText', 'name' => 'excludeDirs', 'label' => 'Exclude dirs', 'value' => $this->getExcludeDirs(), 'help' => 'Space separated.'), array('cb' => 'getHtmlInputText', 'name' => 'excludePackages', 'label' => 'Exclude packages', 'value' => $this->getExcludePackages(), 'help' => 'Space separated.'));
     parent::toHtml(array('title' => 'PhpDepend'), $callbacks);
 }
Пример #8
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'fileExtensions', 'label' => 'Allowed file extensions', 'value' => $this->getFileExtensions(), 'help' => 'No dots, and space separated.'), array('cb' => 'getHtmlInputText', 'name' => 'files', 'label' => 'Files or dirs to include', 'value' => $this->getFiles(), 'help' => 'Space separated.'), array('cb' => 'getHtmlInputText', 'name' => 'standard', 'value' => $this->getStandard()), array('cb' => 'getHtmlInputText', 'name' => 'sniffs', 'label' => 'Limited to these sniffs', 'value' => $this->getSniffs(), 'help' => 'Must be in chosen standard.'));
     parent::toHtml(array('title' => 'PhpCodeSniffer'), $callbacks);
 }
Пример #9
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'mode', 'value' => $this->getMode(), 'help' => 'e.g., 755, 644, 640, etc.'), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'Chmod'), $callbacks);
 }
Пример #10
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlInputText', 'name' => 'executable', 'value' => $this->getExecutable()), array('cb' => 'getHtmlInputText', 'name' => 'args', 'value' => $this->getArgs(), 'help' => 'Space separated.'), array('cb' => 'getHtmlInputText', 'name' => 'basedir', 'label' => 'Base dir', 'value' => $this->getBaseDir()), array('cb' => 'getHtmlInputText', 'name' => 'outputProperty', 'label' => 'Output property', 'value' => $this->getOutputProperty()));
     parent::toHtml(array('title' => 'Exec'), $callbacks);
 }
Пример #11
0
 /**
  * Receives a builder element and removes it from the project's integration
  * builder. It does it's best to find the matching [deeply] nested element
  * and removes it. It also checks if the removed element is a special task,
  * and unregisters it accordingly from the project.
  *
  * @param Build_BuilderElement $element
  * @param string $id
  */
 public function removeFromIntegrationBuilder(Build_BuilderElement $element)
 {
     $newBuilder = $this->getIntegrationBuilder()->deleteElement($element->getInternalId());
     $this->setIntegrationBuilder($newBuilder);
     //
     // If it's a special task, unregister it with the project
     //
     if ($element->isSpecialTask()) {
         $this->unregisterSpecialTask($element->getSpecialTask());
     }
 }
Пример #12
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputCheckbox', 'name' => 'failOnFailure', 'label' => 'Fail on failure?', 'value' => '', 'checked' => $this->getFailOnFailure()), array('cb' => 'getHtmlInputCheckbox', 'name' => 'failOnIncomplete', 'label' => 'Fail on incomplete?', 'value' => '', 'checked' => $this->getFailOnIncomplete()), array('cb' => 'getHtmlInputCheckbox', 'name' => 'failOnSkipped', 'label' => 'Fail on skipped?', 'value' => '', 'checked' => $this->getFailOnSkipped()), array('cb' => 'getHtmlInputText', 'name' => 'bootstrapFile', 'label' => 'Bootstrap file', 'value' => $this->getBootstrapFile()), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'PhpUnit'), $callbacks);
 }
Пример #13
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputCheckbox', 'name' => 'includeEmptyDirs', 'label' => 'Include empty dirs?', 'value' => '', 'checked' => $this->getIncludeEmptyDirs()), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'Delete'), $callbacks);
 }
Пример #14
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'user', 'value' => $this->getUser(), 'help' => 'Or user.group.'), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'Chown'), $callbacks);
 }
Пример #15
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'PerlSyntax'), $callbacks);
 }
Пример #16
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return true;
     }
     $callbacks = array(array('cb' => 'getHtmlInputText', 'name' => 'message', 'value' => $this->getMessage()), array('cb' => 'getHtmlInputText', 'name' => 'file', 'value' => $this->getFile()), array('cb' => 'getHtmlInputCheckbox', 'name' => 'append', 'value' => '', 'checked' => $this->getAppend() ? 'checked' : ''));
     parent::toHtml(array('title' => 'Echo'), $callbacks);
 }
Пример #17
0
 public function toHtml(array $_ = array(), array $__ = array())
 {
     if (!$this->isVisible()) {
         return '';
     }
     $callbacks = array(array('cb' => 'getHtmlFailOnError'), array('cb' => 'getHtmlInputText', 'name' => 'match', 'value' => html_entity_decode($this->getMatch(), ENT_QUOTES), 'help' => 'The regular expression pattern to match in the file(s), PCRE compatible. Regexes should be PHP PCRE for the integration builder or any other for the deployment builder.'), array('cb' => 'getHtmlInputText', 'name' => 'replace', 'value' => html_entity_decode($this->getReplace(), ENT_QUOTES), 'help' => 'The substitution pattern to place in the file(s). Regexes should be PHP PCRE for the integration builder or any other for the deployment builder.'), array('cb' => 'getHtmlInputText', 'name' => 'flags', 'value' => $this->getFlags(), 'help' => 'The flags of the regexp engine. For the integration builder use PHP PCRE: g (global), i (case insensitive), m (multiline) and s (singleline).'), array('cb' => 'getHtmlInputText', 'name' => 'file', 'value' => $this->getFile()), array('cb' => 'getFilesets'));
     parent::toHtml(array('title' => 'ReplaceRegexp'), $callbacks);
 }