if you add this code to the last build file, you can execute refresh-site-xml target, and the site.xml page tags update him bytes and seoBytes attribute.
you can download the new project from
http://blog.desarrolloflash.comThis code only update the page tag, if i can the next weekend upload a build.xml file with the proper task to update assets.
Thanx kyoji
<target name="refresh-site-xml">
<echo message="refresh-site-xml"/>
<update-page-site-xml/>
</target>
<macrodef name="update-bytes-page">
<attribute name="input" default="home"/>
<attribute name="bytes" default="0"/>
<attribute name="seoBytes" default="0"/>
<sequential>
<echo message="@{input}"/>
<if>
<equals arg1="${seoBytes}" arg2="0" />
<then>
<xmltask source="${bin}/site.xml" dest="${bin}/site3.xml">
<attr path="//page[@id='@{input}']" attr="bytes" value="@{bytes}"/>
<attr path="//page[@id='@{input}']" attr="seoBytes" remove="true"/>
</xmltask>
</then>
<else>
<xmltask source="${bin}/site.xml" dest="${bin}/site3.xml">
<attr path="//page[@id='@{input}']" attr="bytes" value="@{bytes}"/>
<attr path="//page[@id='@{input}']" attr="seoBytes" value="@{seoBytes}"/>
</xmltask>
</else>
</if>
<copy file="${bin}/site3.xml" tofile="${bin}/site.xml"
overwrite="true"/>
<delete file="${bin}/site3.xml"/>
</sequential>
</macrodef>
<macrodef name="update-page-site-xml">
<sequential>
<xmltask source="${bin}/site.xml" dest="${bin}/site2.xml">
<call path="//page">
<param name="swffile" path="@src"/>
<param name="htmlfile" path="@seo" default="false"/>
<param name="ident" path="@id" default="false"/>
<actions>
<var name="branch" value="" unset="true"/>
<var name="existSwf" value="" unset="true"/>
<var name="existHtmlSeo" value="" unset="true"/>
<var name="existHtmlId" value="" unset="true"/>
<var name="bytes" unset="true"/>
<var name="seoBytes" value="0" unset="true"/>
<available file="${bin}\@{swffile}" property="existSwf"/>
<available file="${bin}\@{htmlfile}.html" property="existHtmlSeo"/>
<available file="${bin}\@{ident}.html" property="existHtmlId"/>
<if>
<equals arg1="${existSwf}" arg2="true" />
<then>
<length file="${bin}/@{swffile}" property="bytes" />
<get-branch-page input="site" page="@{ident}"/>
<if>
<equals arg1="${existHtmlSeo}" arg2="true" />
<then>
<length file="${bin}/@{htmlfile}.html" property="seoBytes" />
</then>
<elseif>
<equals arg1="${existHtmlId}" arg2="true" />
<then>
<length file="${bin}/@{ident}.html" property="seoBytes" />
</then>
</elseif>
<else>
<var name="seoBytes" value="0"/>
</else>
</if>
<update-bytes-page input="@{ident}" bytes="${bytes}" seoBytes="${seoBytes}"/>
</then>
</if>
</actions>
</call>
</xmltask>
<delete file="${bin}/site2.xml"/>
</sequential>
</macrodef>