views:

9

answers:

0

Hello I have a simple script as shown below:

I am getting following error on running this script.


includeTargets << grailsScript("Init")
includeTargets << grailsScript("TestApp")

target(main: "The description of the script goes here!") {
      echo "This is the start"
}

  setDefaultTarget(main)
Environment set to test
Error executing script LocalBuild: TestApp_groovy (wrong name: testApp_groovy)
java.lang.NoClassDefFoundError: TestApp_groovy (wrong name: testApp_groovy)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at gant.Gant$_closure1.doCall(Gant.groovy:125)
 at gant.Gant$_closure1.call(Gant.groovy)
 at LocalBuild.run(LocalBuild:5)
 at LocalBuild$run.call(Unknown Source)
 at gant.Gant.prepareTargets(Gant.groovy:606)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
Error executing script LocalBuild: TestApp_groovy (wrong name: testApp_groovy)

Can you please let me know what is missing?

Regards, Amrish

Edit: Apperntly i cannout use "<<" in the pre section so I had to use "&lt ;"