Asdoc tasl generate error with '-include-namespace' compile property
I built swc libarary with additionalCompilerOptions = ["-namespace+=${ext.namespace},${projectDir.path}/src/main/resources/manifest.xml",
"-include-namespaces=${ext.namespace}"]
Also I try to generate asdoc documents and get error: "command line: Error: unknown configuration variable 'include-namespaces'"
asdoc {
additionalASDocOptions = [
"-doc-namespaces=${ext.namespace},${projectDir.path}/src/main/resources/manifest.xml"
]
}
How I can set additional compiler options only for asdoc. I tried to insert additionalCompilerOptions array without '-include-namespaces' into asdoc configuration and this broke main task compileFlex.
Thanks for help
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Andrei Starodub... on 27 Jan, 2016 12:10 PM
I found workaround:
asdoc {
project.tasks.findByName('asdoc').doFirst {
additionalCompilerOptions = [<set options only for asdoc>]
}
additionalASDocOptions = [
"-doc-namespaces=${ext.namespace}"
]
}
But it is looks ugly. I can't call asdoc task because asdoc configuration and asdoc task have same names.
My suggestion is in asdoc task using only additionalASDocOptions without additionalCompilerOptions.
Support Staff 2 Posted by Yennick Trevels on 31 Jan, 2016 05:06 PM
Hi Andrei,
Indeed, you're right, I've created a ticket for it in our issue tracker: https://github.com/GradleFx/GradleFx/issues/225
Currently your workaround is the only way to get this working.