Flash Builder (Flex) ANT build and debug

I am trying to use ANT with Flash Builder 4 to compile and debug. Compiling is the easy part, but I have problems with the debugger.

I want to use ANT to debug a SWF file inside Flash Builder so that breakpoints, contour traces and everything works as it should.

My script. Creates * .as in * .swf and moves from bin-debug to expand the folder. How to start the Flash Builder debugger for the created SWF?


<target name="Compile level 1">
    <antcall target="compile flex file">
        <param name="file" value="GameOffice"/>
    </antcall>
    <antcall target="open player">
        <param name="file" value="GameOffice.swf"/>
    </antcall>
</target>

<target name="compile flex file">
    <mxmlc file="${SRC_DIR}/${file}.as" output="${BUILD_DIR}/${file}.swf" 
        actionscript-file-encoding="UTF-8" 
        keep-generated-actionscript="true" 
        incremental="true" 
        static-link-runtime-shared-libraries="true"
        show-actionscript-warnings="true"
        failonerror="true"
        debug="true"
        optimize="false">

        <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
        <source-path path-element="${FLEX_HOME}/frameworks" />

        <compiler.include-libraries dir="${basedir}/libs" append="true">
            <include name="HelloThereLibGames.swc" />
            <include name="HelloThereLibStructure.swc" />
            <include name="HelloThereLibUtils.swc" />
        </compiler.include-libraries>

        <metadata description="Hello There Production">
            <contributor name="Fredrick Bäcker" />
        </metadata>

    </mxmlc>
    <copy todir="${DEPLOY_DIR}" file="${BUILD_DIR}/${file}.swf"/> 
</target>
+3
source share
3 answers

I made 1 attempt at one hit on google: http://blogs.4point.com/armaghan.chaudhary/2009/04/remote-debugging-using-flex-builder-ide.html

, ant flashbuilder. , ?

IMHO CI, hudson. , , .

, .

+3

, -, Flash Builder, html (, : ), ( URL, ).

ant, debug, , - localhost.

0

, , , , , !

, , . , , :

http://blog.tiltdigital.com/flex/running-flash-builder-4-in-debug-mode-from-apache-ant/

Basically, you just need to add the Ant Builder property properties to Flash Builder 'in your project properties. You can then use this to compile / debug using the build script, as usual, using the Flash Builder compiler / debugger.

0
source

Source: https://habr.com/ru/post/1783858/


All Articles