Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2012 15:15
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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."
Copy link

Thanks for sharing :)

Copy link

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