compc

Compc (Actionscript Library Compiler) Doesn't Fail Unless I Delete the File First?

Here's the scenario: I run compc on a source directory to recompile an already existing library after some changes, which completes successfully. Then I remove the library (the .swc file) and re-compile, which causes many errors to be thrown. Nothing changed in the interim - clearly this should have either succeeded both times or failed...

Compile a SWC using COMPC, excluding 3rd party libs.

Hi, I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc. This would obviou...

Why are some of my assets 0-byte in size when I build a component using compc?

I'm building a flex .swc library using Ant, and many of the assets that are supposed to be in the file are not being copied, instead creating 0-byte entries in the .swc. Here is the ant compc target that is doing the creation. I've tried both compiler.include-libraries and compiler.library-path here, which is why the latter is still pr...

Does it matter that there are 0-byte resources in my compiled SWC?

I have a Flex 3 SWC file compiled using the compc Ant task. It looks very similar to the one generated by the Eclipse export release build command, but there are some 0-byte files in the mx packages that unnerve me: Archive: flex/package/bin/package.swc Length Date Time Name -------- ---- ---- ---- 0 10-16...

How to compile a SWC file with mulitple namespaces

Hi, I'm trying to compile an SWC file from a list of given ActionScript classes. I'm using the compc compiler. The problem is that there are so many classes grouped into multiple namespaces that I am finding it very tedious to specify each individual class to be included in the SWC. Is there any easier way of doing this like just simpl...

Flex Compilation - Strange Behavior of metadata tags

I'm trying to move the build of a Flex Builder workspace from the IDE into an Ant task, and I'm having some trouble with the behavior of some custom metadata tags in the projects. I have one library project which is compiled as a .swc, which includes several classes that read metadata off of classes passed to them. An application depend...

Compiling a Flex Library with a source attachment using compc or FlashBuilder

I am trying to compile a Library SWC using FlashBuilder while retaining the references to the source code so that asdocs will still appear and the debugger will show source code when there is a problem. The results I want are similar to what you get when you set a "source-attachment" in the "ActionScript Build Path" settings panel. (see ...

Conditionally including Flex libraries (SWCs) in mxmlc/compc ant tasks

I have been struggling trying to figure out how to conditionally include Flex libraries in an ant build based on a property that is set on the command line. I have tried a number of approaches with the <condition/> task, but so far have not gotten it to work. Here is where I am currently. I have an init target that includes condition ...

Why doesn't ${locale} resolve in my <compc> Ant task?

I've seen a number of examples, e.g. here, where people are including locale resource bundles by referencing the locale attribute in the element. For some reason this doesn't work for me. Here's what I have for the task: <compc output="${deploy.dir}/myfrmwrk.swc" locale="en_US"> <source-path path-element="${basedir}/src/main/fle...

Compiling content of directories/wildcard to SWC using Flex compc ant tasks

Here is how I usually write the compile task: <compc keep-generated-actionscript="true" include-classes="Class1 Class2 com.package.Class3" output="${module.output.dir}/output.swc" fork="${flex.fork}" maxmemory="256m"> <source-path path-element="${module.basedir}/src"/> </compc> What I'm looking for is a...