Browse Source

ApplicationRunnerServlet to correctly get last modified application (#8852)

Also, change README.txt to the correct test port 8888
tags/8.1.0.alpha1
Ahmed Ashour 7 years ago
parent
commit
330329efce

+ 2
- 2
README.md View File

@@ -59,7 +59,7 @@ The following preferences need to be set to keep the project consistent. You nee
1. In a Project Explorer right-click *vaadin-uitest*
1. Open *Run As* -> *Maven build...*
1. Type in <code>jetty:run-exploded</code> into *Goals* and click *Run*
1. Open URL *http://localhost:8080/run/&lt;testUI&gt;*
1. Open URL *http://localhost:8888/run/&lt;testUI&gt;*

## Setting up IntelliJ IDEA to Develop Vaadin 7

@@ -75,7 +75,7 @@ The following preferences need to be set to keep the project consistent. You nee

1. Open *Maven Projects*
1. Open *vaadin-uitest* -> *Plugins* -> *jetty* -> *jetty:run-exploded*
1. Open URL *http://localhost:8080/run/&lt;testUI&gt;*
1. Open URL *http://localhost:8888/run/&lt;testUI&gt;*

## Running a Development Server


+ 1
- 2
uitest/src/main/java/com/vaadin/launcher/ApplicationRunnerServlet.java View File

@@ -337,7 +337,7 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
private static String findLastModifiedApplication() {
String lastModifiedClassName = null;

File uitestDir = new File("uitest/src");
File uitestDir = new File("src/main/java");
if (uitestDir.isDirectory()) {
LinkedList<File> stack = new LinkedList<>();
stack.add(uitestDir);
@@ -358,7 +358,6 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
lastModifiedTimestamp = file.lastModified();
lastModifiedClassName = className;
}

}
}
}

Loading…
Cancel
Save