title: Issues with dojo release build
body: <p>We are using dojo 1.7.2 in our application. Even though <code>AMD</code> is supported in this version, we are not using that approach at all. We are still going
  with the legacy <code>dojo.require("package")</code> approach.</p>
  
  <p>We need to create a release build for our application. Below is the profile that we are using to do that. We are using <code>ANT</code> task to do this. Our profile
  is very simple and doesn't have much dojo require in it.</p>
  
  <pre><code>dependencies = {
      layers: [
         {
              name:"cutom_dojo.js",
              resourceName:"custom-dojo",
              dependencies:[
                  "dojo.NodeList-traverse",
                  "dojo.io.iframe",
                  "dojo.date",
                  ]
         }
      ],
      prefixes: [
          [ "dijit", "../dijit" ],
          [ "dojox", "../dojox" ]
      ]
  }
  </code></pre>
  
  <p>Now we are creating the release build using the below ANT task.</p>
  
  <pre><code>&lt;target name="create-dojo-release"&gt;
          &lt;echo message="Starting Dojo Release Build " /&gt;
          &lt;java fork="true" dir="${shrinksafe.util.path}/buildscripts" classname="org.mozilla.javascript.tools.shell.Main"&gt;
              &lt;classpath&gt;
                  &lt;pathelement location="${shrinksafe.util.path}/shrinksafe/js.jar" /&gt;
                  &lt;pathelement location="${shrinksafe.util.path}/closureCompiler/compiler.jar"/&gt;
                  &lt;pathelement location="${shrinksafe.util.path}/shrinksafe/shrinksafe.jar" /&gt;
                  &lt;pathelement path="${java.class.path}" /&gt;
              &lt;/classpath&gt;
              &lt;arg value="../../dojo/dojo.js"/&gt;
              &lt;arg value="baseUrl=../../dojo"/&gt;
              &lt;arg value="releaseDir=${dojo.release.dir}"/&gt;
              &lt;arg value="load=build"/&gt;
              &lt;arg value="profile=${dojo.profile.file}" /&gt;
              &lt;arg value="action=clean,release" /&gt;
              &lt;arg value="version=1.7.2" /&gt;
              &lt;arg value="releaseName=cutom_dojo" /&gt;
              &lt;arg value="cssOptimize=comments" /&gt;
              &lt;arg value="copyTests=false" /&gt;
          &lt;/java&gt;
          &lt;echo message="Dojo Release build successfull." /&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>We get a custom_dojo.js file in the dojo folder. We included this JS file in our application. When we open this JS file and search for the packages which are
  mentioned in the layer, they are all available there. But when we access the application page, we still see separate HTTP requets send for individual modules even though
  <code>custom_dojo.js</code> file is included at the top of the page. Could you please suggest us if we are doing this in the right way?</p>