Opened 12 years ago

Closed 12 years ago

#121 closed defect (fixed)

built dojo files do not follow standard dojo convention

Reported by: sheppard Owned by: theduckylittle
Priority: minor Milestone: 2.6.1
Component: GeoMOOSE/JS Version: 2.6
Keywords: Cc:

Description

Current structure:

build/

dojo.js
resources/
nls/
dijit/

icons/
themes/

dojo/ (empty)

Recommended structure:

build/

dojo/

dojo.js
resources/
nls/

dijit/

icons/
themes/

Details:
dojo.js expects to be installed within a dojo/ directory so that it can reference the other namespaces via a relative path. This can be tested with dojo.modulePath('dijit') which returns an nonexistent path in the current build setup. It doesn't seem to break anything yet since we reference the dijit CSS directly, but I'm guessing there are latent issues.

In #120 I am proposing incorporating dojox.widget.Standby, which uses dojo.modulePath to dynamically inject its resources. Thus #120 depends on this ticket.

Attachments (1)

paths.patch (1.1 KB ) - added by sheppard 12 years ago.
pdate build paths

Download all attachments as: .zip

Change History (9)

by sheppard, 12 years ago

Attachment: paths.patch added

pdate build paths

comment:1 by sheppard, 12 years ago

Status: newtesting

The attachment only updates the paths in geomoose.html and patch_dojo.sh. The following is the primary change but makes a very messy patch:

cd htdocs/build
svn mv dojo.js resources nls dojo/

comment:2 by sheppard, 12 years ago

Sorry, shouldn't have marked this as testing.

comment:3 by EliL, 12 years ago

Status: testingneeds_work

comment:4 by theduckylittle, 12 years ago

Owner: set to theduckylittle
Status: needs_workassigned

comment:5 by theduckylittle, 12 years ago

Status: assignedtesting

in reply to:  1 comment:6 by sheppard, 12 years ago

Status: testingneeds_work

Seems to work, but now there are duplicate dojo.js, nls/, and resources/ in both build/ and build/dojo/. I meant to move those but wasn't able to include that in the patch, see comment above.

comment:7 by theduckylittle, 12 years ago

Status: needs_worktesting

Cool, got it cleaned out. I thought I did this but I must've dreamed that.

r887

comment:8 by sheppard, 12 years ago

Resolution: fixed
Status: testingclosed

Looks good.

Note: See TracTickets for help on using tickets.