We are trying to switch the packaging for our project from dojo to google closure, but we haven\'t had any luck so far. Here is a simple example that illustrates what we are
Here's a little project that I've been working on that might be helpful to you: http://github.com/fintler/lanyard
Take a look at the build.xml, the file named lanyard.js, and all of the files located in src/geom/*.
The build.xml has an example of how to call calcdeps.py through ant for all of the js located in src. It may not be the best way to do things, but it's been working for me so far.