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

Versions Compared

Key

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

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<meta-runner name="Replace by Pattern">
  <description>Replace in files by pattern</description>
  <settings>
    <parameters>
      <param name="basedir" value="" spec="text display='normal' regexp='.+' label='Directory where to perform replacement:'" />
      <param name="pattern_to_replace" value="" spec="text display='normal' regexp='.+' label='Pattern to replace:'" />
      <param name="substitution" value="" spec="text display='normal' regexp='.+' label='Substitution:'" />
      <param name="files_to_include" value="" spec="text display='normal' regexp='.+' label='Files to include (Ant patterns):'" />
      <param name="files_to_exclude" value="" spec="text display='normal' label='Files to exclude (Ant patterns):'" />
    </parameters>
    <build-runners>
      <runner 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">
  <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.step.mode" value="default" />
          <param name="use-custom-build-file" value="true" />
        </parameters>
      </runner>
    </build-runners>
  </settings>
</meta-runner>

...