As quoted from "Diez, Matthew" <[EMAIL PROTECTED]>:
> > The current MapbuilderCompressed.js (built from r3033) produces errors:
> > 
> > + csList has no properties
> >   csList.EPSG42101="+title=WGS84 / LCC Canada EPSG:42101 +proj=lcc 
> > +ellps=WGS84
> > +...
> >   on MapbuilderCompressed.js (line 1546)
> > 
> > + config has no properties
> >   config.parseConfig(config);
> >   on MapbuilderCompressed.js (line 124)
> 
> The compression script does have some rather specific expectations for file
> content (for pattern matching and such), and as such, is rather brittle.
> 
> Let me look into this, it might be a file order issue.

The first one is (lib/util/cscs/lib/cscs.js needs to be included before
the rest of that directory), so changing the specific part of
kompress.sh to:

# Compress javascript files
java -jar lib/util/custom_rhino.jar -c ${targetDir}/lib/Mapbuilder.js > 
${originalFile} 2>&1
java -jar lib/util/custom_rhino.jar -c ${targetDir}/lib/RELEASE.js >> 
${originalFile} 2>&1
java -jar lib/util/custom_rhino.jar -c ${targetDir}/lib/util/cscs/lib/cscs.js 
>> ${originalFile} 2>&1

java -jar lib/util/custom_rhino.jar -c ${targetDir}/lib/widget/ButtonBase.js >> 
${originalFile} 2>&1
java -jar lib/util/custom_rhino.jar -c ${targetDir}/lib/widget/EditLine.js >> 
${originalFile} 2>&1


for file in `find ${targetDir}/lib -name "*.js" | \
         egrep -v "overlib" \
        | egrep -v "/lib/Mapbuilder.js" \
        | egrep -v "/lib/RELEASE.js" \
        | egrep -v "/lib/util/cscs/lib/cscs.js" \
        | egrep -v "/lib/widget/ButtonBase.js" \
        | egrep -v "/lib/widget/EditLine.js" \
        | egrep -v "/lib/MapbuilderServerLoad.js" \
        | egrep -v "/lib/MapbuilderCompressed.js"`; do

solves that issue.  The second one however remains, and that's worrying
me.  Maybe some of Config.js, ModelBase.js or whatever needs to be
loaded first as well?

Regards,
-- 
-- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191 600

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to