Am Sonntag, 27. Januar 2013, 18:27:17 schrieb thron7:
> > Source job uses resources from their original location, since it uses all
> > js files there as well.
> 
> That's right, "source" and "source-all" use all resources (class files,
> images, ...) from their original libraries, so that's by design.
> 
> > As for source-hybrid, thats a bit more complicated. JS files are copied
> > to script folder, while resources not and they are referenced as with
> > source job.
> 
> In "source-hybrid" the JS files are not simply copied, but script files
> that contain class code of multiple classes are generated, much like in
> the "build" version but restricted to classes that you normally wouldn't
> want to change (framework classes). This has the goal of making the
> generated app load faster in the browser (fewer files to load than with
> the normal source or source-all build), while still loading the
> application's own class files individually so they are easy to inspect and
> debug.
> 
> > I know it makes compilation and running of the application in
> > source-hybrid mode a bit more problematic, and you need to adjust your
> > directory structure to be able to serve those files (or copy them to
> > expected location).
> 
> It's actually the same complexity as with source and source-all, if you
> want to run the app through a web server.
> 
> > It should be possible for source-hybrid to make local copy inside script
> > folder, but I'm not sure how much would it be for Qooxdoo devs. Generator
> > would have to change all path for images for libraries, but only for
> > libraries.. You can write enhancement request for it but i doubt they
> > will implement it anytime soon, it might prove a bit too expensive for
> > what it would give you in return..
> 
> Collecting files under a common root in a source version has drawbacks,
> the foremost being that you have to re-run the Generator job every time
> you change a file, so the change is being picked up in the app. But one of
> the corner stones of source versions is that you can modify files of an
> application in place (at least the interesting files) and see the result
> with a simple reload in the browser.
> 
> Rather, we have added Generator jobs 'source-server' and
> 'source-httpd-config' which both try to capture the libraries that go into
> an application for the source version so that their files can be served
> over a web server without the need to copy them around.
> 
> T.

Hi - thanks for clarification.

How to activate "source-server"? My top level qooxdoo is from github/HEAD, all 
components reference to it, but there's no "source-server" job available. I 
can see it in the source if I grep thru qx/tools, though.

Does this job honour the "add-script" of components, too?

Cheers,
Cajus

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to