tag:support.gradlefx.org,2011-05-23:/discussions/questions/3615-from-flex-to-gradlefxGradleFx: Discussion 2016-08-11T02:29:30Ztag:support.gradlefx.org,2011-05-23:Comment/395505792016-04-04T07:52:14Z2016-04-04T07:52:14ZFrom Flex to GradleFx<div><p>Hi!</p>
<p>One issue I see is the way you specify the mainClass. This
shouldn't be wrapped into a compileFlex block, but instead can be
used without. Also, since both Popup.mxml and Resize.mxml are in
the same package (so com.abc.help.component), this path should also
be used in the mainClass definition:</p>
<pre>
<code>mainClass = 'com/abc/help/component/Popup.mxml'</code>
</pre></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/395505792016-04-05T07:44:17Z2016-04-05T07:44:18ZFrom Flex to GradleFx<div><p>Hi Yennick,<br>
Thanks for your reply.</p>
<p>mainClass = 'com/abc/help/component/Popup.mxml'</p>
<p>I removed compileFlex block and declared the main class as
suggested<br>
'com/abc/help/component/Popup.mxml'. However its looking for file
with name 'com/abc/help/component/Popup.mxml' instead of Popup.mxml
in specified path. I have given srcDirs =
['com/abc/help/component','com/abc/help/presentation'<br>
.....] However nothing is working. If you could please help me.</p>
<p>Thanks & Regards,<br>
Parthasarathy K.</p></div>Partha Sarathytag:support.gradlefx.org,2011-05-23:Comment/395505792016-04-05T12:45:48Z2016-04-05T12:45:48ZFrom Flex to GradleFx<div><p>ok, in that case it makes sense that the component Resize can't
be found, given your defined srcDirs. The srcDirs should point to
the root of your package structure.</p>
<p>For example, given you have the following directory structure in
your project, where "com/abs/help/component" is a package structure
containing your class files:</p>
<pre>
<code>src/main/flex/com/abs/help/component</code>
</pre>
<p>Then srcDirs should be:</p>
<pre>
<code>srcDirs = ['src/main/flex']</code>
</pre>
<p>and mainClass should be:</p>
<pre>
<code>mainClass = 'com/abc/help/component/Popup.mxml'</code>
</pre></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/395505792016-04-07T07:43:50Z2016-04-07T07:43:50ZFrom Flex to GradleFx<div><p>Hi Yennick,<br>
Thanks that helped me :)</p>
<p>Thanks,<br>
Parthasarathy K.</p></div>Partha Sarathy