Open squeedee opened 13 years ago
Can you show me some error output? Not sure where the problem lies here and how to provide a workaround.
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.
Do you think we need a DSL to work with manifests, rsls, flex config etc? I'll look into solutions for this!
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?
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.
Jusr getting to this. Do you know how IDEs handle this?
Is this problem compc only? What does mxmlc do?
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/