Thursday, June 4, 2009

Problem creating custom build using test profile as example | The Dojo Toolkit

Problem creating custom build using test profile as example | The Dojo Toolkit: "Problem creating custom build using test profile as example
Submitted by tristan421 on Thu, 08/23/2007 - 00:04.

* Dojo Core Support

I want to create a custom build for dojo so I can create my own widgets. I followed
instructions in http://dojotoolkit.org/book/dojo-porting-guide-0-4-x-0-9/build-system-ch...,
using a profile in the util/buildscripts/tests/ folder to see if it's gonna work.. see what I did below and the errors that resulted:

in Windows, I did the following:

1) Checked out a copy of util/ and put it at the same location as the dojo/ folder that contains the core dojo.js
2) I copied the file util/buildscripts/tests/profiles/nestedNls.profile.js into
util/buildscripts/profiles/
3) In util/buildscripts/, I ran:
build.bat profile=nestedNIs action=clean,release

*ERRORS 1:

C:\Documents and Settings\Owner\Desktop\Temp\08222007\dojotoolkit\util\buildscripts>java -jar lib/custom_rhino.jar build.js profile=nestedNls action=clean,release
clean: Deleting: ../../release/dojo
release: Using profile: profiles/nestedNls.profile.js
release: Using version number: 0.0.0.dev for the release.
release: Deleting: ../../release/dojo
release: Copying: ../../dojo/../util/buildscripts/tests/foo to: ../../release/dojo/foo
release: Copying: ../../dojo/../dojox to: ../../release/dojo/dojox
release: Copying: ../../dojo/../dijit to: ../../release/dojo/dijit
release: Copying: ../../dojo to: ../../release/dojo/dojo
release: Building dojo.js and layer files
js: Couldn't open file '../../dojo/_base/_loader/bootstrap.js'.
js: Couldn't open file '../../dojo/_base/_loader/loader.js'.
js: Couldn't open file '../../dojo/_base/_loader/hostenv_rhino.js'.
js: uncaught JavaScript runtime exception: ReferenceError: 'dojo' is not defined.

4) I noticed _base/ is not in the dojo/ directory, so I checked out a copy from
http://svn.dojotoolkit.org/dojo/dojo/trunk/_base/ into dojo/_base/

5) Again, In util/buildscripts/, I ran:
build.bat profile=nestedNIs action=clean,release

* ERRORS 2:

C:\Documents and Settings\Owner\Desktop\Temp\08222007\dojotoolkit\util\buildscripts>java -jar lib/custom_rhino.jar build.js profile=nestedNls action=clean,release
clean: Deleting: ../../release/dojo
release: Using profile: profiles/nestedNls.profile.js
release: Using version number: 0.0.0.dev for the release.
release: Deleting: ../../release/dojo
release: Copying: ../../dojo/../util/buildscripts/tests/foo to: ../../release/dojo/foo
release: Copying: ../../dojo/../dojox to: ../../release/dojo/dojox
release: Copying: ../../dojo/../dijit to: ../../release/dojo/dijit
release: Copying: ../../dojo to: ../../release/dojo/dojo
release: Building dojo.js and layer files
error loading uri: ./../../release/dojo/dojox/off/offline.js, exception: SyntaxError: missing ) after argument list

I've tried this on different nightly builds including the one on 08/22/2007 and I believe down 0.9beta as well. Can somebody please help me at least create a custom build using a working example?

I've been stuck on this for days now.

Thank you."

No comments:

Post a Comment