[osflash] Build numbers
Daniel Fischer
eladin at gmail.com
Wed Jun 1 05:38:40 PDT 2005
this is not a full solution, but it might give a start. i think it
would be best to keep track of build numbers with ant, the following
task keeps the build number (and date) in a property file
(build.properties), and uses a replace task to modify @buildDate@ and
@buildNum@, taking Main.as as a template and producing Main.as2. Of
course this would have to be a little different...
<code>
<target name="buildNumber">
<propertyfile
file="build.properties" comment="Build version info">
<entry key="buildDate" type="date" value="now"/>
<entry key="buildNum" default="0" type="int"
operation="+" value="1"/>
</propertyfile>
<copy file="Main.as" tofile="Main.as2" overwrite="true"/>
<replace
file="Main.as2"
value="value not found in build.properties"
propertyFile="build.properties">
<replacefilter token="@buildDate@" property="buildDate"/>
<replacefilter token="@buildNum@" property="buildNum"/>
</replace>
</target>
</code>
On 6/1/05, Christophe Herreman <lists at herrodius.com> wrote:
>
>
>
> Hi guys,
>
>
>
> Does anyone know of a way to get a (cummulative) build number into my
> compiled swf's using the whole FAME setup? It would be great to make this
> info available in the contextmenu of the swf's for debugging purposes.
>
>
>
> Thx in advance,
>
> Christophe
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
On 6/1/05, Christophe Herreman <lists at herrodius.com> wrote:
>
>
>
> Hi guys,
>
>
>
> Does anyone know of a way to get a (cummulative) build number into my
> compiled swf's using the whole FAME setup? It would be great to make this
> info available in the contextmenu of the swf's for debugging purposes.
>
>
>
> Thx in advance,
>
> Christophe
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
More information about the osflash
mailing list