Child pages
  • Gaya 8.0 EAP (build 27147) Release Notes

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Definitions of meta runners are stored under TeamCity Data Directory/config/_meta_runners/ directory. Here is complete definition for Replace in Files build runner (I added validation regexp for parameter values and reordered parameters):

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<meta-runner name="Replace byin PatternFiles">
  <description>Replace<description>Replaces strings in files matched by specified pattern</description>
  <settings>
    <parameters>
      <param name="basedir" value="" spec="text display='normal' label='Directory where to perform replacement:'" />
      <param name="patternfiles_to_replaceexclude" value="" spec="text display='normal' label='PatternFiles to replaceexclude (Ant patterns):'" />
      <param name="substitutionfiles_to_include" value="" spec="text display='normal' label='SubstitutionFiles to include (Ant patterns):'" />
      <param name="filespattern_to_includereplace" value="" spec="text description='Pattern to search for in files (regexp)' display='normal' label='FilesPattern to include (Ant patterns)replace:'" />
      <param name="files_to_excludesubstitution" value="" spec="text display='normal' label='Files to exclude (Ant patterns)Substitution:'" />
    </parameters>
    <build-runners>
      <runner id="RUNNER_16" name="" type="Ant">
        <parameters>
          <param name="build-file"><![CDATA[<project default="replace" name="ReplaceRegExp">

<target name="replace">

<touch>
  <fileset dir="%basedir%">
    <include name="%files_to_include%"/>
    <exclude name="%files_to_exclude%"/>
  </fileset>
</touch>

<replaceregexp flags="g<replaceregexp byline="true">
  <regexp pattern="%pattern_to_replace%"/>
  <substitution expression="%substitution%"/>
  <fileset dir="%basedir%">
    <include name="%files_to_include%"/>
    <exclude name="%files_to_exclude%"/>
  </fileset>
</replaceregexp>

</target>

</project>]]></param>
          <param name="build-file-path" value="build.xml" />
          <param name="teamcity.coverage.emma.include.source" value="true" />
          <param name="teamcity.coverage.emma.instr.parameters" value="-ix -*Test*" />
          <param name="teamcity.coverage.idea.includePatterns" value="*" />
          <param name="teamcity.step.mode" value="default" />
          <param name="use-custom-build-file" value="true" />
        </parameters>
      </runner>
    </build-runners>
    <requirements />
  </settings>
</meta-runner>

In order to install this build runner in your TeamCity 8.0 installation you need to save this definition to a file under TeamCity Data Directory/config/_meta_runners/ directory. File should have name like:
<runner id>.xml, where <runner id> is unique identifier of this build runner. Server will detect this definition and will load it on the fly.

...