Eclipse Gradle Plugin issue with context root

Hi ,

I am building a java project using gradle and eclipse is the ide. I am using IBM websphere for deployment. I have root project with 2 subprojects. When I build the project and deploy without using eclipse context root seems to be fine. But when I am building using eclipse and deploying , the context root of the application is getting messed up. I tried using eclipse wbt ,

eclipse {
wtp {
component {
contextRoot = ‘correctContextRoot’
}
}
}
But still above didnt work. Any help is appreciated.