How to use the ant construct to complete the exportReleaseBuild task in Flash Builder 4

I am trying to build an Ant using FlashBuilder 4 to build a release for export. It is assumed that there will be a new (in FB4) Ant task fb.exportReleaseBuild, which will build the release. The usage link is here:

http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000.html

When I turn on the target

.. target name = "exportRelease"

fb.exportReleaseBuild project="${flexproject}" ...

I am generating an error indicating that the task cannot be found:

Problem: Could not create task or enter fb.exportReleaseBuild Explanation: Name is undefined. Action: Check spelling. Act. Make sure any custom tasks / types are declared. Action: Ensure that any presetde / macrodef declarations have been executed.

I look in flexTasks.jar and it does not include the flex.ant.exportReleaseBuild class, despite having the last jar.

Am I mistaken in assuming that I can run exportReleaseBuild with an Ant script?

+5
source share
3 answers

You probably decided to do it, but here is the answer to the case if someone needs it.

Ant , ExportReleaseBuild. , Ant IDE, Flash Builder. , , .

IDE:

  • build.xml Flash Builder
  • Run → External Tools → External Tools Configuration...
  • Ant, " "
  • "":
  • JRE, " JRE, " (. )
  • "", ""

enter image description here

, : enter image description here

+5

, w/@renaun ( : http://renaun.com/blog/2010/09/command-line-build-a-flash-builder-4-premium-feature/), CI, FB4, .

OSX-, Adobe , , . ant, , importexport- ant.jar, Eclipse ( ).

, , - / cmd. CI. jar, , , ant script , : (

+1

I think I cracked it by installing the shell script and calling the shell script from the ant task. Thus, you * * use the brainless Flash Builder modulator from Flash Builder.

Full working example: https://gist.github.com/1077715

Thanks for the lordB8r link that I thought :)

0
source

All Articles