Hi Andy, I don't know if this has a sence to make qooxdoo source more lightweight. Qooxdoo is designed to distribute only generated scripts are resources, so you don't worry about framework size (you will distribute only small part of it).
If you need really lightweight dist you can check qxbuild, but keep in mind that this is special build not for everyone and you lose the confort that generate.py gives you. Cheers - Petr 2009/3/11 Andy Fuchs <[email protected]>: > Hi Thomas, hi all, > > here's a short shell script (MacOSX) to remove unnecessary files from the > framework. > > --------- > #Place the script alongside the qooxdoo framework and uncomment the next > line > > QOOXDOODIR="qooxdoo" > > # or put it somewhere and set the path to the qooxdoo framework: > #QOOXDOODIR="<your_path_to_qooxdoo>/qooxdoo/" > > rm -d -R -v "${QOOXDOODIR}"/framework/source/class/qx/legacy/ > rm -d -R -v "${QOOXDOODIR}"/framework/source/class/qx/test/ > rm -d -R -v "${QOOXDOODIR}"/framework/source/resource/qx/decoration/Classic/ > rm -d -R -v "${QOOXDOODIR}"/framework/source/resource/qx/icon/Oxygen/ > rm -d -R -v "${QOOXDOODIR}"/tool/data/test/ > rm -d -R -v "${QOOXDOODIR}"/tool/data/migration/ > > ---------- > After this, the qooxdoo frameworks is a lot more lightweight than before and > the most important generate scripts still work: > > ./generate.py distclean > ./generate.py source > ./generate.py build > > Enjoy > > andy > > On 11.03.09 11:06, "thron7" <[email protected]> wrote: > >> >> >> >>> removing the component folder gave issues with using the distclean job >>> (missing some json files), that I just added again leaving everything >>> else removed: >>> ./apiviewer/api.json >>> ./inspector/inspector.json >>> ./testrunner/testrunner.json >>> >> >> This cannot be true. The distclean job is entirely free from dependecies >> to those config files. This can only happen if you are including >> application.json, rather than base.json. >> >>> The source-all job won't work any more failing with the following >>> messages: >>> Traceback (most recent call last): >>> File >>> "/Users/gereon/Developer/MeVis/Foundation/BuildTools/WebTools/ActRep/actrep/p >>> ublic/qooxdoo/qooxdoo-0.8.2-sdk/tool/bin/generator.py", line 144, in >>> <module> >>> main() >>> ers/gereon/Developer/MeVis/Foundation/BuildTools/WebTools/ActRep/actrep/publi >>> c/qooxdoo/qooxdoo-0.8.2-sdk/tool/bin/generator.py", line 139, in main >>> Generator(config, job, console).run() >>> File >>> "/Users/gereon/Developer/MeVis/Foundation/BuildTools/WebTools/ActRep/actrep/p >>> ublic/qooxdoo/qooxdoo-0.8.2-sdk/tool/pylib/generator/Generator.py", line >>> 331, >>> in run >>> smartExclude, explicitExclude = >>> self.getExcludes(self._job.get("exclude", >>> [])) >>> File >>> "/Users/gereon/Developer/MeVis/Foundation/BuildTools/WebTools/ActRep/actrep/p >>> ublic/qooxdoo/qooxdoo-0.8.2-sdk/tool/pylib/generator/Generator.py", line >>> 1548, in getExcludes >>> smartExclude = self._expandRegExps(smartExclude) >>> File >>> "/Users/gereon/Developer/MeVis/Foundation/BuildTools/WebTools/ActRep/actrep/p >>> ublic/qooxdoo/qooxdoo-0.8.2-sdk/tool/pylib/generator/Generator.py", line >>> 1590, in _expandRegExps >>> raise RuntimeError, "Expression gives no results. Malformed entry: %s" % >>> entry >>> RuntimeError: Expression gives no results. Malformed entry: qx.legacy.* >>> >>> Please note that I removed the qx.legacy item from my local >>> configuration, but it is mentioned in base.json from tools/data/config. >>> Using the source job worked. I also tested build and lint which worked >>> too. >>> >> >> Ah, yes, the source-all tries to exclude qx.legacy.* and qx.test.* >> (making "all" "nearly all" ;). With them gone from the hard disk, you >> get this error. You could fix that by overriding the source-all job in >> your local config, setting "=exclude" : []". Or, of course, you remove >> it from base.json. >> >> Thanks for your testing. >> >> NB: Your mail client is setting your Reply-To: header to your personal >> address when you post to the mailing list. Since this is overriding the >> list address as default Reply-To, everybody naively responding to your >> posts will mail to you directly, rather than to the list. You might want >> to check this. >> >> Thomas >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
