Configure Eclipse wtp to use the same context root as jetty

This commit is contained in:
Rob Winch 2011-03-06 18:34:40 -06:00
parent bd53ff1832
commit 6983b166d8
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ configure(javaProjects) {
}
}
}
tasks.withType(org.gradle.plugins.eclipse.EclipseWtpComponent) {
whenConfigured { wtpComponent ->
wtpComponent.contextPath = project.tasks.findByName('jettyRun')?.contextPath?.replaceFirst('/','')
}
}
}
ideaModule {