title: Spring Roo , Custom Dojo Build
body: <p>I have been attempting to implement a custom dojo build to replace the dojo version that comes with spring roo 1.1.5.</p>
  
  <p>I followed the instructions at</p>
  
  <p><a href="http://sagittech.blogspot.com/2011/08/asdadsad-qwasdace-aavvrv-place-holder.html" rel="nofollow">http://sagittech.blogspot.com/2011/08/asdadsad-qwasdace-aavvrv-place-holder.html</a></p>
  
  <p>as well as</p>
  
  <p><a href="http://www.qc4blog.com/?p=1001" rel="nofollow">http://www.qc4blog.com/?p=1001</a></p>
  
  <p>I have been able to create the builds.</p>
  
  <p>My problem is that when I place the new build into the project like</p>
  
  <p>WEB-INF\classes\META-INF\web-resources\dojo-1.6.2\</p>
  
  <p>(FYI: I renamed the version from 1.6.1 to 1.6.2 to avoid conflict with same version as in 
  Roo.)</p>
  
  <p>When I load my web page I get</p>
  
  <p>syntax error
  <a href="http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js" rel="nofollow">http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js</a>
  Line 14</p>
  
  <p>also </p>
  
  <p>missing ) after argument list
  <a href="http://localhost:8080/app-1.0.0/" rel="nofollow">http://localhost:8080/app-1.0.0/</a>
  Line 3</p>
  
  <p>dojo is not defined
  <a href="http://localhost:8080/app-1.0.0/resources/spring/Spring-Dojo.js" rel="nofollow">http://localhost:8080/app-1.0.0/resources/spring/Spring-Dojo.js</a>
  Line 16</p>
  
  <p>So, the question is:</p>
  
  <p>What is the proper way to integrate a new custom dojo build with Spring Roo?</p>
  
  <p>Is there a special way to build dojo to make this happen?</p>
  
  <p>Are there additional steps required to make a custom build work with Roo?</p>
  
  <p>Update:</p>
  
  <p>Below is my profile file to create the new dojo.js</p>
  
  <pre><code>dependencies = {
  optimize:"shrinksafe", 
  stripConsole: "normal",
  cssOptimize: "comments",
  layers:
  [
  {
  name: "dojo.js",
  layerDependencies:
  [
  "dojo.js",
  ],
  dependencies:
  [
  "dijit.Dialog",
  "dijit.Tooltip",
  "dijit.form.DateTextBox",
  "dijit.form.CheckBox",
  "dijit.form.CurrencyTextBox",
  "dojox.widget.Standby",
  "dijit.form.ComboBox",
  "dijit.form.FilteringSelect",
  "dojox.form.PasswordValidator",
  "dojo.parser",
  "dijit.form.Form",
  "dojox.grid.EnhancedGrid",
  "dojo.data.ItemFileWriteStore",
  "dijit.TitlePane",
  "dijit.layout.LayoutContainer",
  "dijit.layout.BorderContainer",
  "dijit.form.SimpleTextarea",
  "dijit.form.Textarea",
  "dojo.date.locale",
  "dojo.data.ItemFileReadStore",
  "dojox.grid.cells.dijit",   
  "dojox.grid.DataGrid",
  "dijit.form.Button",
  "dijit.form.ValidationTextBox",
  "dijit.Dialog",
  "dijit.form.NumberSpinner",
  "dojox.grid.enhanced.plugins.Menu",
  "dojox.grid.enhanced.plugins.NestedSorting",
  "dojox.grid.enhanced.plugins.IndirectSelection",
  "dijit.MenuItem",
  "dijit.MenuSeparator",
  "dijit.PopupMenuItem",
  "dijit.Menu",
  "dojox.form.Uploader",
  "dojox.form.uploader.FileList",
  "dojox.form.uploader.plugins.Flash",
  "dijit.form.Select"
   ]
  }
  ],
  
  prefixes: [
  ["dijit", "../dijit"],
  ["dojox", "../dojox"]
  ]
  
  }
  </code></pre>
  
  <p>After making sure that I made the new optimized file the same as dojo.js to insure that dojo was found I now get the following error:</p>
  
  <p>failed loading /app-1.0.0/resources/dojo-1.6.2/dojo/./parser.js with error: SyntaxError: syntax error
  <a href="http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js" rel="nofollow">http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js</a>
  Line 14</p>