devboy / buildr_as3

“build like you code” – now supporting ActionScript 3 & Flex
devboy.org
MIT License
34 stars 5 forks source link

Support including sources from manifest #29

Open squeedee opened 13 years ago

squeedee commented 13 years ago

This line forces the use of -include-sources

https://github.com/devboy/buildr_as3/blob/master/lib/buildr/as3/compiler/compc.rb#L52

However if you are building by manifest, compc just wont handle you specifying -include-sources=path/to/src AND -include-namespaces=http://some.namespace/

devboy commented 13 years ago

Can you show me some error output? Not sure where the problem lies here and how to provide a workaround.

squeedee commented 13 years ago

The problem is, that providing a manifest and then including that namespace is an alternative mechanism for specifying which classes to include in the compiled output. In the case of the Flextras AACB component (I have licensed source, can't share) the namespace declares a manifest that then counts as a duplicate definition of the the include-sources.

I don't know what the workaround is either.

devboy commented 13 years ago

Do you think we need a DSL to work with manifests, rsls, flex config etc? I'll look into solutions for this!

devboy commented 13 years ago

If you just remove: compile.with("manifest-library.swc") Does it work then because the swc will be added via the manifest and won't be in -include-sources?

squeedee commented 13 years ago

Its the same swc, using it's own manifest, which makes sense, you define a namespace for a class and use that namespace in your mxml.

devboy commented 12 years ago

Jusr getting to this. Do you know how IDEs handle this?

devboy commented 12 years ago

Is this problem compc only? What does mxmlc do?