Browse Source

Configure Eclipse wtp to use the same context root as jetty

Rob Winch 14 năm trước cách đây
mục cha
commit
6983b166d8
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      build.gradle

+ 5 - 0
build.gradle

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