Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#5675 closed defect (duplicate)

custom dojo build failed

Reported by: guest Owned by: James Burke
Priority: high Milestone: 1.0
Component: BuildTools Version: 1.0
Keywords: buildscripts custom Cc:
Blocked By: Blocking:

Description

I downloaded the dojo-release-1.0.2.zip and dojo-release-1.0.2-buildscripts.zip from http://download.dojotoolkit.org/release-1.0.2/. There are two folders "dojo-release-1.0.2-buildscripts" and "dojo-release-1.0.2-src" in the dojo-release-1.0.2-buildscripts.zip. and I copy the util folder in the dojo-release-1.0.2-src to the dojo-release-1.0.2 foler.

I have the following directory structure:

dojo/ dijit/ dojox/ util/ util/buildscripts/ util/shrinksafe/

When I try to build one of the included profiles it fails:

E:dojo-release-1.0.2utiluildscripts>java -jar ../shrinksafe/custom_rhino.jar build.js profile=base action=release release: Using profile: profiles/base.profile.js release: Using version number: 0.0.0.dev for the release. release: Deleting: ../../release/dojo release: Copying: ../../dojo to: ../../release/dojo/dojo release: Building dojo.js and layer files js: uncaught JavaScript? runtime exception: TypeError?: Cannot read property "dojo .foo" from undefined js: uncaught JavaScript? runtime exception: TypeError?: Cannot find function regis terModulePath.

I tested the buildscript on dojo 1.0 and it works well.

Change History (9)

comment:1 Changed 12 years ago by Adam Peller

You shouldn't really need the buildscripts release; everything you need should be in src. You can only do a build against the src tree, iirc.

comment:2 Changed 12 years ago by James Burke

Milestone: 1.0.31.0
Resolution: duplicate
Status: newclosed

peller is correct, download a -src distribution to do the build. There is a trac ticket for allowing a build from a release bundle (#4565). It may not get fixed for 1.1, but hopefully in the release after that.

comment:3 Changed 12 years ago by guest

Resolution: duplicate
Status: closedreopened

I also encountered this issue. Anybody can say more about how to do?

In my understanding: 1 If we want to do the compressing against 1.0.2 release under buildscripts/, I will need to download the files under src. But how to get this folder? I think we should make Dojo is easy to use for those do not have too much knowledges on the dojo source files repository. Then Dojo can go faster and wider. Anybody can point me to the approach, I would be appreciated.

comment:4 in reply to:  2 Changed 12 years ago by guest

Would you say more about how to download a -src distribution? I will need to install a tool like subclipse? Is there a zip package for those have limited knowledge on this? Thanks

Replying to jburke:

peller is correct, download a -src distribution to do the build. There is a trac ticket for allowing a build from a release bundle (#4565). It may not get fixed for 1.1, but hopefully in the release after that.

comment:5 Changed 12 years ago by dante

Resolution: duplicate
Status: reopenedclosed

http://download.dojotoolkit.org/release-1.0.2/

in there you will see all the available downloads. a parent higher, and you will see all the available downloads for all the available versions.

the -src is identical to the release version except it has not been "built", and it contains the tools needed to do your own build.

uncompress to some folder, go into util/buildscripts/profiles and setup your profile. you can replace your release tree, though being uncompressed js it will be substantially slower until you rebuild.

please visit the forums and book at dojotoolkit.org for further assistance doing a custom build.

comment:6 in reply to:  description Changed 12 years ago by guest

When i custom build dojo 1.0.0.2 , it succeded .But when i test my application ,strange problem occurs :Bundle not found : loading in dijit ,locale=en; I had a look and found bundle contains just two value : "zh" and "zh-cn"; however my locale is "en".

comment:7 Changed 12 years ago by Adam Peller

please post more detail to the forums and we'll try to help. if it turns out to be a bug, we can make a new ticket here in trac.

comment:8 in reply to:  7 ; Changed 12 years ago by guest

Replying to peller:

please post more detail to the forums and we'll try to help. if it turns out to be a bug, we can make a new ticket here in trac.

Yes.I am trying to update my dojo version from 1.0.0.1 to 1.0.0.2. And in concern of performance,I prefer to compress the js files under dojo folder. This 1.0.0.2 version can work fine in my project.However after i customed a new dojo build (i did nothing but compressing the dojo files using Shrinksafe), it couldn't work ,warning :Bundle not found : loading in dijit ,locale=en ; My os is zh-cn /WinXp? ,and my browser IE6.0,language is en ; I looked into it , and find if i use 1.0.0.2 without compressing it ,dojo._loadedModules[dijit.nls.loading] has three values : ROOT ,zh ,zh-cn ; If i use 1.0.0.2 compressed version ,dojo._loadedModules[dijit.nls.loading] has just two values : zh ,zh-cn ;This leads to an exception in function dojo.i18n.getLocalization in dojo/i18n.js . I am using these widgets in my project :dijit.form.DropDownButton?, dijit.Menu, dijit.MenuItem?, dijit.form.RadioButton?, dijit.form.TextBox?, dijit.form.Button, dijit.Dialog, dijit.form.CheckBox?, dijit.form.NumberTextBox?, dijit.layout.TabContainer?, dijit.layout.ContentPane? I don't know if i made myself understood. Thank you very much for your help !

comment:9 in reply to:  8 Changed 12 years ago by Adam Peller

This is not the right place for troubleshooting. Please post a message in the forum with details. Thank you.

Note: See TracTickets for help on using tickets.