a simple textfile me thinks
-----------the build file
<project name="MXMLBuildScript" default="all" basedir="./">

    <property file="${basedir}/IterationBuild.properties"/>
    <target name="all" depends="run"/>
    <target name="properties">
        <fail unless="mxmlc.dir">The "mxmlc.dir" property must be set in
            ${basedir}/build.properties.</fail>
        <fail unless="flash.player">The "flash.player" property must be set in
            ${basedir}/build.properties.</fail>
        <fail unless="proxy.url">The "proxy.url" property must be set in
            ${basedir}/build.properties.</fail>
        <fail unless="mxml.source">The "mxml.source" property must be set in
            ${basedir}/build.properties.</fail>
    </target>
    <target name="compile" depends="properties">
        <exec executable="${mxmlc.dir}/mxmlc.exe" dir="${mxmlc.dir}">
            <arg line="-aspath '${basedir}/${src.path}';'${basedir}/../common/src/flash'"/>
            <arg line="-proxyurl ${proxy.url}"/>
            <arg line="-o '${basedir}\IterationOutput\Iteration${iterationNumber}\${swf.name}.swf'"/>
            <arg line="-configuration '${basedir}/flex-config.xml'"/>
            <arg line="'${basedir}/${src.path}/${mxml.dir}/${mxml.source}.mxml'"/>
        </exec>
    </target>

    <target name="run" depends="compile">
        <exec executable="${flash.player}" spawn="yes" dir="${basedir}/bin">
            <arg line="'${basedir}\IterationOutput\Iteration${iterationNumber}\${swf.name}.swf'"/>
        </exec>
    </target>
   

   
</project>

------------------------------- the properties file
iterationNumber = 10
swf.name = search
mxml.source = index
mxml.dir = ../..
src.path = src/flash
outputdir = bin

mxmlc.dir = C:/Program Files/Macromedia/Flex/bin
flash.player = C:/Program Files/Macromedia/Flash 8/Players/Debug/SAFlashPlayer.exe
proxy.url = "" href="http://localhost:8700">http://localhost:8700

custom = true


On 1/17/06, Diego Guebel <[EMAIL PROTECTED]> wrote:
Hi johannes, thanks for reply.
do you have any build.xml example that uses a properties file to have a
look ? would it be also possible using a xml file?
cheers, diego.

Johannes Nel wrote:
> use a build.properties file and  just update that
>
> On 1/17/06, *erixtekila* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi,
>
>
>     I personaly use an echo task to create the xml on each build.
>     It could be a longer process, but it's a good approach for changing
>     content.
>
>     Le 16 janv. 06, à 23:56, Diego Guebel a écrit :
>
>     > Hi there,
>     > I think this might be possible to do, but I didn't find out the
>     way to
>     > resolve it. The issue is this:
>     > I'm using ant task form as2lib to build my swf. At the develop
>     stage
>     > I'm
>     > using an xml file where I have path to images that I use.
>     > When I release this project what I wanna do is synchronize this xml
>     > with
>     > the build.xml to include all these images as includes.
>     > Any clue?
>     >
>
>     HTH
>
>     -----------
>     erixtekila
>     http://blog.v-i-a.net/
>
>     _______________________________________________
>     osflash mailing list
>     [email protected] <mailto:[email protected]>
>     http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
>
> --
> j:pn
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org



--
j:pn
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to