tags:

views:

19

answers:

0

Hi all,

is it possible to run the ant mxmlc task with custom tokens? Here some part of my services-config.xml.

...
<channels>
    <channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
        <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
    </channel-definition> 
    <channel-definition id="php-amf" class="mx.messaging.channels.AMFChannel">
     <endpoint url="{profiline.service.url}" class="flex.messaging.endpoints.AMFEndpoint"/>
    </channel-definition>
</channels>
....

The profiline.service.url should be replaced.

Here my ant task:

<target name="build" depends="clean">
  <mkdir dir="${addressviewer.build.dir}"/>
  <mxmlc 
      file="${main.src.dir}/${addressviewer.prefix}.mxml" 
      output="${addressviewer.build.dir}/${addressviewer.prefix}.swf"
      keep-generated-actionscript="false"
      context-root="${context.root}"
      services="${selina.services.file}">
    <load-config filename="${main.flex.config}"/>
    <source-path path-element="${main.src.dir}"/>
    <library-path dir="${main.lib.dir}" append="true">
      <include name="**/*.swc"/>
    </library-path>
    <library-path dir="${rtx.common.dist.dir}" append="true">
      <include name="**/*.swc"/>
    </library-path>
    <library-path dir="${selina.frontend.core.dist.dir}" append="true">
      <include name="**/*.swc"/>
    </library-path>
  </mxmlc>
</target>

Any idea?!? Cowabunga!