Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add build-git-zip target for buildbot

  • Loading branch information...
commit bc01ede03345886a0be4cb194e14d13694635555 1 parent 31bbd6f
@sandyarmstrong sandyarmstrong authored
Showing with 30 additions and 0 deletions.
  1. +6 −0 build.properties.template
  2. +24 −0 build.xml
View
6 build.properties.template
@@ -2,6 +2,12 @@
temp.dir = /tmp
locale = en_US
+channel.id = snake-channel
+channel.name = Snakes!
+channel.id.git = ${channel.id}_git
+channel.name.git = ${channel.name} (git)
+channel.constants = src/LitlChannelMetadata.as
+
flex.sdk.home = /opt/flex-sdk_4.1.0
litl.sdk.home = /opt/litl-sdk
litl.sdk.core.path = ${litl.sdk.home}/core
View
24 build.xml
@@ -9,6 +9,30 @@
<delete dir="${output.path}"/>
</target>
+ <macrodef name="update-channel-metadata">
+ <attribute name="channel-id"/>
+ <attribute name="channel-name"/>
+ <sequential>
+ <replaceregexp file="${channel.constants}"
+ match="(CHANNEL_ID\s*:\s*String = &quot;)(.+)(&quot;;)"
+ replace="\1@{channel-id}\3"/>
+ <replaceregexp file="${channel.constants}"
+ match="(CHANNEL_TITLE\s*:\s*String = &quot;)(.+)(&quot;;)"
+ replace="\1@{channel-name}\3"/>
+ <replaceregexp file="metadata/metadata.json"
+ match="(&quot;channel_listing_id&quot;: &quot;)(.+)(&quot;,)"
+ replace="\1@{channel-id}\3"/>
+ <replaceregexp file="metadata/metadata.json"
+ match="(&quot;name&quot;: &quot;)(.+)(&quot;,)"
+ replace="\1@{channel-name}\3"/>
+ </sequential>
+ </macrodef>
+
+ <target name="build-git-zip" description="Build git deploy zipfile and update with git metadata">
+ <update-channel-metadata channel-id="${channel.id.git}" channel-name="${channel.name.git}"/>
+ <antcall target="build-release-zip"/>
+ </target>
+
<target name="build-release-zip" description="Build release deploy zipfile">
<antcall target="clean"/>
<antcall target="build-release-swf"/>
Please sign in to comment.
Something went wrong with that request. Please try again.