Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:20:08+00:00 2026-06-06T04:20:08+00:00

I understand dojo’s build system, but I’m rather new to Grails. Does anyone know

  • 0

I understand dojo’s build system, but I’m rather new to Grails. Does anyone know how, or have a resource for, integrating dojo’s JS build into Grails? I’d like to be able to use the JS sources during development, and then switch to the built version of JS for production.

So far, I am envisioning just having the dojo-src directory in js dir, and using that during development. Then, when I want to deploy to prod, I’ll manually run a dojo build and output it also in the /js dir.

(I’m planning to us a request parameter to tell the app which js to use, compressed or src).

Is there another, better, way I should consider?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:20:09+00:00Added an answer on June 6, 2026 at 4:20 am

    I don’t know a whole lot about grails, but I think you are on the right path. I use a query parameter to set the configuration to use, but i store the configuration in the session, so that I don’t need it on every page.

    Take a look at my answer to this:
    How do I use uncompressed files in Dojo 1.7?

    From what I have read on Grails, it uses ant for building. This is an ant script to build. I don’t know how to integrate it into the gant convention for building a war.

    <java fork="true" dir="${dojo.build.util.dir}/buildscripts"
    classname="org.mozilla.javascript.tools.shell.Main">
    
    <classpath>
        <pathelement location="${dojo.build.util.dir}/shrinksafe/js.jar"/>
        <pathelement location="${dojo.build.util.dir}/shrinksafe/shrinksafe.jar"/>
    </classpath>
    
    <arg value="build.js"/>
    <arg value="version=${version}"/>
    <arg value="profileFile=../../profile.js"/>
    <arg value="action=release"/>
    <arg value="releaseDir=../../../"/>
    <arg value="releaseName=${dojo.releaseName}" />
    <arg value="optimize=shrinksafe"/>
    <arg value="cssOptimize=comments.keepLines"/>
    </java>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Dojo and trying to understand how to handle events. There
I understand what weak tables are. But I'd like to know where weak tables
I understand the differences in ROLAP, MOLAP, HOLAP i think but does that mean
I understand how LIMIT works, but I want to know if there is a
I understand this is an easy question but for some reason this just isn't
I have begun doing dojo accessibility testing on a web application and have noticed
JavaScript For example, I have the following JavaScript code (Dojo 1.6 is already loaded):
I was looking for cascaded (multi-level) dialogs in DOJO Toolkit. I understand that a
Understand that the subject should be discussed before. But as I haven't found the
understand that we can write the new values to zend coiguration file using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.