Ticket #3618 (closed feature: fixed)

Opened 3 months ago

Last modified 3 months ago

Problems with closure compiler under windows.

Reported by: scaddenp Owned by:
Priority: minor Milestone: 2.12 Release
Component: general Version: 2.11
Keywords: Cc: xavier.mamano@…
State:

Description

The README instructions for closure compiler do not work. Looking at the build.py,

looking in build.py, I found comments which refer to a jscompiler.py which presumably gets renamed to closure_library_jscompiler. I downloaded that.

Now get.

C:\Program Files\openlayers\build>build.py -c closure full OpenLayers-closure.js

Merging libraries. Traceback (most recent call last):

File "C:\Program Files\openlayers\build\build.py", line 117, in <module>

build(args[0], args[1], options=options)

File "C:\Program Files\openlayers\build\build.py", line 55, in build

sourceFiles = mergejs.getNames(sourceDirectory, configFilename)

AttributeError: 'module' object has no attribute 'getNames'

Summit broken here... I tried this a checkout of the current svn openlayers.

Workaround:

build.py -c none myconfig.cfg uncompressed.js java -jar ..\tools\closure-compiler.jar --js uncompressed.js --js_output_file OpenLayers-closure.js

copy /b license.txt+OpenLayers-closure.js ..\OpenLayers.js

Change History

Changed 3 months ago by jorix

It seems that you are not using the latest version of tools/mergejs.py

You see 'getNames' on line 152 of your tools/mergejs.py? See :  mergejs.py:152

See also:  http://trac.osgeo.org/openlayers/wiki/HowToDownload

Changed 3 months ago by jorix

  • cc xavier.mamano@… added

Changed 3 months ago by scaddenp

  • status changed from new to closed
  • resolution set to fixed

Resolved by a fresh checkout of OL.

Note: See TracTickets for help on using tickets.