I am looking for a way to create an EJB with gradle. The closest I think I
can come to doing this is by using IBM websphere's wsanttasks.jar, which I
believe might contain the task wsejbdeploy, and defining a task in gradle.
If you can think of a better way, please let me know. Otherwise, can you
give me an overview of what needs to be done for me to get to the point
where I can run something like:
ant.wsejbdeploy(inputJar: new File(projectDir,
'build/'+archivesBaseName+'.jar'), wasDir: wasDirPath, outputJar: .... etc
....)
within my build script?
So far, I have just found some variables I need, and I think I will have
something similar to this in a gradle task:
ant{
taskdef(name: "wsejbdeploy", classname:
"com.ibm.websphere.ant.tasks.WsEjbDeploy",
classpath: dependencies.antpath('wsanttasks'))
wsejbdeploy(inputJar: archivesBaseName+'.jar',
wasHome: wasDirPath,
workingDirectory:projectRoot.path,
outputJar:archivesBaseName+'.jar',
classpathref: cpRef,
quiet:'false',
trace:'true',
failonerror:'true')
}
And, following the earlier maven repository thread's ant_nodeps proxy
example, a dependency:
wsanttasks ":wsanttasks::jar"
Note: this line causes an error. Any help would be greatly appreciated.
Jerod
--
View this message in context:
http://www.nabble.com/custom-ant-tasks---ejb-deploy-tp18092263p18092263.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email