tag:support.gradlefx.org,2011-05-23:/discussions/problems/6-one-more-question-advice-on-organizationGradleFx: Discussion 2012-08-23T06:21:53Ztag:support.gradlefx.org,2011-05-23:Comment/109168492011-10-27T14:09:46Z2011-10-27T14:09:46ZOne more question, advice on organization<div><p>It all depends on the situation.<br>
When it's a small project that will stay small, then it's probably
easier to keep it all in one project and only have one build.gradle
file (which will have a type='swf'), no need to generate a seperate
swc in that case.<br>
When it's a project that is/will become large then you should
separate the code into several subprojects. e.g. one which contains
the services, one which contains general utility classes, one which
contains your domain models etc.<br>
In that case you'll need a build.gradle file for each project.</p>
<p>There is no way (as far as I know) to run multiple gradle builds
in a single subproject. Even when it would be possible I wouldn't
do it since it cleaner to have seperate projects.</p>
<p>To answer your question regarding the MainApp.as, if that class
is in the srcDir (src/main/actionscript by default) then GradleFx
should be able to find it and compile it in the swf. So if your
project is going to stay very small then I would keep it as one
project, with one build.gradle file which has a type='swf'
property, and all your classes under
%yourProjectRoot%/src/main/actionscript. Then it won't create a
seperate swc but just one swf which will contain everything.</p>
<p>If you can't get it running with this advice, then let me know
;)</p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/109168492011-11-06T06:46:15Z2011-11-06T06:46:15ZOne more question, advice on organization<div><p>Did this advice help you?</p></div>Yennick Trevels