Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
gant script for generating stubs from a whizdul file...
import grails.util.GrailsUtil
includeTargets << grailsScript("Init")
target(main: "The description of the script goes here!") {
File whizdul = new File("${basedir}/grails-app/conf/enterprise.wsdl")
if (whizdul.exists()) {
String[] attrs = [
//Returns: 0 if the tool runs successfully.
//For more info check:!/com/sun/tools/ws/WsImport.html#doMain(java.lang.String[])
def isStubGenerated =
if(isStubGenerated == 0){
println "Salesforce enterprise.wsdl stubs have been generated successfully."
} else {
print "ERROR: "
println "Salesforce enterprise whizdul does not exist."
println "Please goto download enetrprise whizdul and copy it inside /web-app/WEB-INF/wsdl/ of project."

This comment has been minimized.

Copy link

@hussainanjar hussainanjar commented Jul 9, 2012

Thanks for sharing :)


This comment has been minimized.

Copy link
Owner Author

@minhajkk minhajkk commented Jul 9, 2012

Always a pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment