Explorar o código

Configure Eclipse wtp to use the same context root as jetty

Rob Winch %!s(int64=14) %!d(string=hai) anos
pai
achega
6983b166d8
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 {