tag:support.gradlefx.org,2011-05-23:/discussions/problems/2241-asdoc-tasl-generate-error-with-include-namespace-compile-propertyGradleFx: Discussion 2016-06-15T15:38:43Ztag:support.gradlefx.org,2011-05-23:Comment/390186982016-01-27T09:29:02Z2016-01-27T09:29:04ZAsdoc tasl generate error with '-include-namespace' compile property<div><p>I built swc libarary with additionalCompilerOptions =
["-namespace+=${ext.namespace},${projectDir.path}/src/main/resources/manifest.xml",<br>
"-include-namespaces=${ext.namespace}"]</p>
<p>Also I try to generate asdoc documents and get error: "command
line: Error: unknown configuration variable
'include-namespaces'"</p>
<p>asdoc {<br>
additionalASDocOptions = [
"-doc-namespaces=${ext.namespace},${projectDir.path}/src/main/resources/manifest.xml"
] }</p>
<p>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.</p>
<p>Thanks for help</p></div>Andrei Starodubctevtag:support.gradlefx.org,2011-05-23:Comment/390186982016-01-27T12:10:55Z2016-01-27T12:10:58ZAsdoc tasl generate error with '-include-namespace' compile property<div><p>I found workaround:<br>
asdoc {<br>
project.tasks.findByName('asdoc').doFirst {
additionalCompilerOptions = [] }</p>
<pre>
<code>additionalASDocOptions = [
"-doc-namespaces=${ext.namespace}"
]</code>
</pre>
<p>}</p>
<p>But it is looks ugly. I can't call asdoc task because asdoc
configuration and asdoc task have same names.</p>
<p>My suggestion is in asdoc task using only additionalASDocOptions
without additionalCompilerOptions.</p></div>Andrei Starodubctevtag:support.gradlefx.org,2011-05-23:Comment/390186982016-01-31T17:06:39Z2016-01-31T17:06:39ZAsdoc tasl generate error with '-include-namespace' compile property<div><p>Hi Andrei,</p>
<p>Indeed, you're right, I've created a ticket for it in our issue
tracker: <a href="https://github.com/GradleFx/GradleFx/issues/225">https://github.com/GradleFx/GradleFx/issues/225</a></p>
<p>Currently your workaround is the only way to get this
working.</p></div>Yennick Trevels