GRAILS: buildconfig.groovy and buildconfig.java

GRAILS plugin

I used to have app/conf/buildconfig.groovy, but instead, all of sudden, I have buildconfig.java file in its place.

What happened?

-Jay

3 comments

IDEA could not do it)))
What is the content of buildconfig.java?

0

IDEA - did it, I didn't type this code. These are the content of BuildConfig.java and BuildConfig.groovy has vanashied. Amazing.

---

import groovy.lang.Binding;
import groovy.lang.Closure;
import groovy.lang.Script;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;

public class BuildConfig extends Script {
    public static void main(String[] args) {
        new BuildConfig(new Binding(args)).run();
    }

    public Object run() {
        grails.servlet.version = "2.5";
        grails.project.class.dir = "target/classes";
        grails.project.test.class.dir = "target/test-classes";
        grails.project.test.reports.dir = "target/test-reports";
        grails.project.target.level = 1.6;
        grails.project.source.level = 1.6;
        return grails.project.dependency.resolution = new Closure<Void>(this, this) {
            public void doCall(Object it) {
                inherits("global", new Closure<Void>(this, this) {
                    public void doCall(Object it) {
                    }

                    public void doCall() {
                        doCall(null);
                    }

                });
                log("error");
                checksums(true);
                legacyResolve(false);
                repositories(new Closure<Void>(this, this) {
                    public void doCall(Object it) {
                        inherits(true);
                        grailsPlugins();
                        grailsHome();
                        grailsCentral();
                        mavenLocal();
                        mavenCentral();
                    }

                    public void doCall() {
                        doCall(null);
                    }

                });
                dependencies(new Closure<Void>(this, this) {
                    public void doCall(Object it) {
                    }

                    public void doCall() {
                        doCall(null);
                    }

                });
                plugins(new Closure<java.lang.Object>(this, this) {
                    public java.lang.Object doCall(Object it) {
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{DefaultGroovyMethods.plus(":hibernate:", this.getBinding().getProperty("String").invokeMethod("valueOf", new Object[]{this.getBinding().getProperty("grailsVersion")}))});
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":jquery:1.8.3"});
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":resources:1.1.6"});
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":dao-artefacts:0.4"});
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":jquery-ui:1.8.24"});
                        DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":jquery-ui-timepicker:0.9.8.1"});
                        DefaultGroovyMethods.invokeMethod(this, "build", new Object[]{DefaultGroovyMethods.plus(":tomcat:", this.getBinding().getProperty("String").invokeMethod("valueOf", new Object[]{this.getBinding().getProperty("grailsVersion")}))});
                        DefaultGroovyMethods.invokeMethod(this, "build", new Object[]{":jquery:1.8.3"});
                        DefaultGroovyMethods.invokeMethod(this, "build", new Object[]{":jquery-ui:1.8.24"});
                        return DefaultGroovyMethods.invokeMethod(this, "runtime", new Object[]{":database-migration:1.2.1"});
                    }

                    public void doCall() {
                        doCall(null);
                    }

                });
            }

            public void doCall() {
                doCall(null);
            }

        };

    }

    public BuildConfig(Binding binding) {
        super(binding);
    }

    public BuildConfig() {
        super();
    }
}

0

Anyone knows whats going on there?

0

Please sign in to leave a comment.