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

  • Home
  • SEARCH
  • 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 7741119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:56:41+00:00 2026-06-01T08:56:41+00:00

I am facing a rather odd problem with our groovy build script. The whole

  • 0

I am facing a rather odd problem with our groovy build script. The whole project uses a helper groovy script that calls all other build scripts (maven and ant). One of the ant targets invoked by the groovy script calls, invokes through “exec” grails war:

    <exec executable="cmd" dir="${parentDir}/${grails.appname}">
        <arg value="/c"/>
        <arg path="${env.GRAILS_HOME}/bin/grails.bat"/>
        <arg value="war"/>
        <arg value="${grails.appname}-${app.version}.war"/>
    </exec>

The call of this block fails with:

     [exec] Application is pre-Grails 0.5, please run: grails upgrade

Any suggestions how to go around this problem?

Thanks for your time.

  • 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-01T08:56:42+00:00Added an answer on June 1, 2026 at 8:56 am

    I finally found the solution to the problem, I don’t know if this is the best way but it fixed my problem. So in the same target as the “exec” block I added a new “exec” block to invoke the upgrade on the grails.bat. So far so good, calling this command without parameters will generate a confirmation question whether to proceed with the requested operation – in ant this will create an infinite loop. In order to avoid this I added the “-f” parameter. The whole exec block:

        <exec executable="cmd" dir="${parentDir}/${grails.appname}">
            <arg value="/c"/>
            <arg path="${env.GRAILS_HOME}/bin/grails.bat"/>
            <arg value="upgrade"/>
            <arg value="-force"/>
        </exec>
    

    Hope this will help somebody.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing a rather odd problem right now. If you fellow this :
I am facing a rather strange problem with make. My make file contains: all:
I am facing a rather peculiar problem. I am working on a compiler for
I'm facing a rather queer problem. I use an Ubuntu(Lucid Lynx-64 bit, to be
I'm currently in the planning phase of a rather large project that I'll develop
While working on a project that will store a whole bunch of (completely different)
i'm facing a design problem within my project. PROBLEM i need to query solr
I'm completely new to Oracle's Service Bus. The problem I'm facing is that OSB
Thank you in advance for any responses. I am facing rather a trivial problem.
I am facing a rather strange problem when it comes to orientation change in

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.