Jump to content

Recommended Posts

Posted

Added this to my build.gradle to try and help with automation, as gradle closes the running bat file upon finishing for some reason. I tried taking the "Read build.properties" thing from github.com/Vazkii/Botania yet it doesn't work. No idea what's wrong with it, something about the ConfigSlurper class not found. Any help is appreciated.

 

[spoiler=gradle setupDecompWorkspace eclipse --stacktrace]

 

C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8>gradle setupDecompWorkspace

 

FAILURE: Build failed with an exception.

 

* Where:

Build file 'C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8\build.gradle' line: 84

 

* What went wrong:

A problem occurred evaluating root project 'Random Utilities 1.8'.

> [Ljava/util/HashMap$Entry;

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 13.808 secs

 

C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8>gradle setupDecompWorkspace --stacktrace

 

FAILURE: Build failed with an exception.

 

* Where:

Build file 'C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8\build.gradle' line: 84

 

* What went wrong:

A problem occurred evaluating root project 'Random Utilities 1.8'.

> [Ljava/util/HashMap$Entry;

 

* Try:

Run with --info or --debug option to get more log output.

 

* Exception is:

org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'Random Utilities 1.8'.

        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)

        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:177)

        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)

        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)

        at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)

        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)

        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:507)

        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:82)

        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31)

        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)

        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)

        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)

        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)

        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)

        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)

        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)

        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)

        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)

        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)

        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)

        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

        at org.gradle.launcher.Main.doAction(Main.java:46)

        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

        at org.gradle.launcher.Main.main(Main.java:37)

        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

Caused by: java.lang.NoClassDefFoundError: [Ljava/util/HashMap$Entry;

        at build_5g0h7l23029l9ut7udrdkibf4s$_parseConfig_closure6.doCall(C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8\build.gradle:84)

        at build_5g0h7l23029l9ut7udrdkibf4s.parseConfig(C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8\build.gradle:81)

        at build_5g0h7l23029l9ut7udrdkibf4s$parseConfig.callCurrent(Unknown Source)

        at build_5g0h7l23029l9ut7udrdkibf4s.run(C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8\build.gradle:25)

        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)

        ... 30 more

Caused by: java.lang.ClassNotFoundException: java.util.HashMap$Entry

        ... 35 more

 

 

BUILD FAILED

 

Total time: 13.27 secs

 

C:\Users\Mitch\Central Storage\eclipseworkspace\Random Utilities 1.8>

 

 

 

task relaunchBat(type: Exec) {
workingDir './'
commandLine 'cmd', '', 'SyncProperties.bat'
standardOutput = new ByteArrayOutputStream()

ext.output = {
	return standardOutput.toString()
}
}

def parseConfig(File config) {
    config.withReader {
        def prop = new Properties()
        prop.load(it)
        return (new ConfigSlurper().parse(prop)) -- Line 84
    }
}

defaultTasks 'relaunchBat'

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.