mirror of https://github.com/sbt/sbt.git
fix webapp tests to use different ports
This commit is contained in:
parent
344eed8156
commit
019ce4e535
|
|
@ -5,7 +5,8 @@ class JSP(info: ProjectInfo) extends DefaultWebProject(info)
|
|||
val j6 = "org.mortbay.jetty" % "jetty" % "6.1.17" % "test->default"
|
||||
val j = "org.mortbay.jetty" % "jsp-2.0" % "6.1.17" % "test->default"
|
||||
|
||||
def indexURL = new java.net.URL("http://localhost:8080")
|
||||
def indexURL = new java.net.URL("http://localhost:" + jettyPort)
|
||||
override def jettyPort = 7126
|
||||
def indexFile = new java.io.File("index.html")
|
||||
import Process._
|
||||
lazy val getPage = execTask { indexURL #> indexFile }
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ class WebappBuild(info: ProjectInfo) extends DefaultWebProject(info) {
|
|||
"org.eclipse.jetty" % "jetty-server" % "7.0.1.v20091125" % "test",
|
||||
"org.eclipse.jetty" % "jetty-webapp" % "7.0.1.v20091125" % "test")
|
||||
|
||||
def indexURL = new java.net.URL("http://localhost:8080")
|
||||
def indexURL = new java.net.URL("http://localhost:" + jettyPort)
|
||||
override def jettyPort = 7125
|
||||
def indexFile = new java.io.File("index.html")
|
||||
import Process._
|
||||
lazy val getPage = execTask { indexURL #> indexFile }
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ class WebappBuild(info: ProjectInfo) extends DefaultWebProject(info) {
|
|||
"org.eclipse.jetty" % "jetty-server" % "7.0.1.v20091125" % "test",
|
||||
"org.eclipse.jetty" % "jetty-webapp" % "7.0.1.v20091125" % "test")
|
||||
|
||||
def indexURL = new java.net.URL("http://localhost:8080")
|
||||
def indexURL = new java.net.URL("http://localhost:" + jettyPort)
|
||||
override def jettyPort = 7124
|
||||
def indexFile = new java.io.File("index.html")
|
||||
import Process._
|
||||
lazy val getPage = execTask { indexURL #> indexFile }
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ class WebappBuild(info: ProjectInfo) extends DefaultWebProject(info) {
|
|||
Set("javax.servlet" % "servlet-api" % "2.5" % "provided",
|
||||
"org.eclipse.jetty" % "jetty-webapp" % "7.0.1.v20091125" % "test")
|
||||
|
||||
def indexURL = new java.net.URL("http://localhost:8080")
|
||||
def indexURL = new java.net.URL("http://localhost:" + jettyPort)
|
||||
def indexFile = new java.io.File("index.html")
|
||||
override def jettyPort = 7123
|
||||
import Process._
|
||||
lazy val getPage = execTask { indexURL #> indexFile }
|
||||
lazy val checkPage = task { args => task { checkHelloWorld(args.mkString(" ")) } dependsOn getPage }
|
||||
|
|
|
|||
Loading…
Reference in New Issue