Ticket #3618 (closed feature: fixed)
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>
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
