1. Add ant.bat to environment variable(if eclipse installed it is in its plugin folder otherwise download)
2. Put buildscripts,release,tests,src (with all files of dojo) and demo folders inside dojo folder.
3. Copy dojo.js,README and LICENSE files to the dojofolder
(the files are available from http://svn.dojotoolkit.org/branches/0.4/)
4. Put lib, profiles folder inside buildscripts folder.
5. Add these files(from above link inside buildscripts folder) build.xml,build_notice.txt,
buildUtil.js,buildUtilXd.js,copyright.txt,dojoGuardEnd.js,dojoGuardStart.js,
flattenResources.js,internStrings.js,makeDojoJs.js,stripComments.js,xdgen.js
6. Add ant_apache_bsf.jar,ant_dojotest.jar,bsf.jar,custom_rhino.jar,js.jar to lib folder.
7. Add foo.profile.js file inside profiles folder
its contents
____________
var dependencies = [
"dojo.event.*",
"dojo.widget.Menu2",
"dojo.widget.TabContainer",
"dojo.widget.Tooltip",
"dojo.widget.ContentPane",
"dojo.widget.LinkPane",
"dojo.widget.Button"
];
load("getDependencyList.js");
ie, required widgets depends upon your page.
8. Then run the command inside buildscripts folder
ant -Dprofile=foo -Dstrip_and_compress=true clean release
9. You can add options to get the css integrated into file and to remove comments
ant -Dprofile=foo -Dstrip_and_compress=true clean release intern-strings strip-resource-comments
Technorati Tags: Custom Dojo
2. Put buildscripts,release,tests,src (with all files of dojo) and demo folders inside dojo folder.
3. Copy dojo.js,README and LICENSE files to the dojofolder
(the files are available from http://svn.dojotoolkit.org/branches/0.4/)
4. Put lib, profiles folder inside buildscripts folder.
5. Add these files(from above link inside buildscripts folder) build.xml,build_notice.txt,
buildUtil.js,buildUtilXd.js,copyright.txt,dojoGuardEnd.js,dojoGuardStart.js,
flattenResources.js,internStrings.js,makeDojoJs.js,stripComments.js,xdgen.js
6. Add ant_apache_bsf.jar,ant_dojotest.jar,bsf.jar,custom_rhino.jar,js.jar to lib folder.
7. Add foo.profile.js file inside profiles folder
its contents
____________
var dependencies = [
"dojo.event.*",
"dojo.widget.Menu2",
"dojo.widget.TabContainer",
"dojo.widget.Tooltip",
"dojo.widget.ContentPane",
"dojo.widget.LinkPane",
"dojo.widget.Button"
];
load("getDependencyList.js");
ie, required widgets depends upon your page.
8. Then run the command inside buildscripts folder
ant -Dprofile=foo -Dstrip_and_compress=true clean release
9. You can add options to get the css integrated into file and to remove comments
ant -Dprofile=foo -Dstrip_and_compress=true clean release intern-strings strip-resource-comments
Technorati Tags: Custom Dojo
No comments:
Post a Comment