Re: [flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread dorkie dork from dorktown
I think you can set a property that will allow it to incremental build.

Also, how are you deploying the same project to desktop and web? Desktop
requires WindowApplication and web Application.

On Wed, Aug 4, 2010 at 5:00 PM, Oleg Sivokon  wrote:

>
>
> Maybe someone will correct me... but I think that the antTask from the SDK
> doesn't cache do the iterative compilation, so that's why it may be slower.
> This may not be the best technique, but I build with Ant in a way, I set it
> as an alternative builder... so, it's the same as running the Ant script
> from the command line basically. However, I don't think this will have any
> effect on speed...
> Generally, I don't think there is a way to make the compiler think that it
> should cache data from one compilation to reuse it in another compilation,
> if that's not the same project... But, again, I'm not really sure about it.
> Well, if the compilation speed matters, I can only think of some general
> advises, like, putting more code into SWCs, removing all [Embed] and
> @Embed() tags from the code, avoiding MXML in general... Compiling separate
> classes for testing rather than rebuilding the entire project (in fact, I
> build the entire project only few times a day, the rest of the time I'd work
> on a single class, or a small set of classes)...
>  
>


Re: [flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread Oleg Sivokon
Maybe someone will correct me... but I think that the antTask from the SDK
doesn't cache do the iterative compilation, so that's why it may be slower.
This may not be the best technique, but I build with Ant in a way, I set it
as an alternative builder... so, it's the same as running the Ant script
from the command line basically. However, I don't think this will have any
effect on speed...
Generally, I don't think there is a way to make the compiler think that it
should cache data from one compilation to reuse it in another compilation,
if that's not the same project... But, again, I'm not really sure about it.
Well, if the compilation speed matters, I can only think of some general
advises, like, putting more code into SWCs, removing all [Embed] and
@Embed() tags from the code, avoiding MXML in general... Compiling separate
classes for testing rather than rebuilding the entire project (in fact, I
build the entire project only few times a day, the rest of the time I'd work
on a single class, or a small set of classes)...


Re: [flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread Greg Hess
Thanks Oleg!

I have added a ANT builder to my FlashBuilder project and am now running my
new ANT build. However, it is much slower, ouch... and only "Clean" is
working the "auto" and "manual" builds do nothing even though I have
configured my targets for auto and manual.

Did you have to do anything special to have the "auto" and "manual" builds
work with ANT?


Cheers,

Greg



On Wed, Aug 4, 2010 at 1:47 PM, Oleg Sivokon  wrote:

>
>
> You can do that with Ant. Just compile the same project twice with
> different settings.
>  
>


Re: [flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread Oleg Sivokon
You can do that with Ant. Just compile the same project twice with different
settings.


[flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread Greg Hess
Hi All,

Finally have the opportunity to build and deploy our WEB app as a desktop
application but am not familiar with how to use Flash Builder to do so.

It does not seem apparent how a single project can support multiple builders
in Flash Builder, do most people leverage a single code base and check it
out into multiple projects, one for Desktop(AIR) and one for Web?

What project structure is recommended?

Any help much appreciated,

Greg