Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Command prompt closes upon gradle task finishing (Automation question)


Recommended Posts

I'm trying to make a quick way for me to be able to update forge for all my 1.8 mods. I'm using a .cmd file ran from the directory where I store all my projects.


cd Durability Show 1.8

gradle clean setupDecompWorkspace eclipse build

cd ../Random Utilities 1.8

gradle clean setupDecompWorkspace eclipse build



I have more projects than this however that's the gist. After the first gradle line finishes (After durability show builds) the command prompt closes. I have no idea why this happens, it's always whenever I try to run any command after gradle, typing them manually works fine but in the automated file it refuses to work. Any idea how this can be fixed?

Link to comment
Share on other sites

Thanks :) Now would you know how I can have a build.properties in the main directory and all the build.gradles can pull the forge version and mappings from there.

I tried looking at https://github.com/SlimeKnights/TinkersConstruct/blob/master/build.gradle and copied these lines

ext.configFile = file "C:/Users/Mitch/Central Storage/eclipseworkspace/build.properties"

configFile.withReader {
def prop = new Properties()
project.ext.config = new ConfigSlurper().parse prop

However now when running gradle (Testing with gradle tasks) I get

FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Mitch\Central Storage\eclipseworkspace\Durability Show 1.8\build.gradle' line: 28
* What went wrong:
A problem occurred evaluating root project 'Durability Show 1.8'.
> [Ljava/util/HashMap$Entry;
Total time: 9.735 secs

Where line 28 is project.ext.config = new ConfigSlurper().parse prop


Any idea?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.