-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #12124 fix jsp scratchdir location for ee9. #12129
Conversation
Also ensure the name of war appears in the name of the tmp dir for ee9 webapps.
@@ -2852,4 +2864,9 @@ public boolean handle(org.eclipse.jetty.server.Request coreRequest, Response res | |||
} | |||
} | |||
} | |||
|
|||
public Resource getResourceAsBaseName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about calling this:
public Resource getResourceAsBaseName() | |
public Resource getNestedResourceForeTempDirName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Still some test failures. |
wrong danged button push! |
FS.ensureDirExists(myTempDir); | ||
|
||
// Create war on the fly | ||
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this may not work with generated ee8 as resources are in target/test-classes.
But depends if the test only need the web.xml or the other resources as the web.xml will not be in this directory)
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); | |
Path testWebappDir = MavenTestingUtils.getTargetPath("test-classes/webapp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new MavenPaths
object has several .find*
methods that will work as intended on ee8/ee9.
Can we use one of those?
public void testFreshTempDir(WorkDir workDir) throws Exception | ||
{ | ||
// Create war on the fly | ||
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); | |
Path testWebappDir = MavenTestingUtils.getTargetPath("test-classes/webapp"); |
public void testSameTempDir(WorkDir workDir) throws Exception | ||
{ | ||
// Create war on the fly | ||
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment
Path testWebappDir = MavenTestingUtils.getProjectDirPath("src/test/webapp"); | |
Path testWebappDir = MavenTestingUtils.getTargetPath("test-classes/webapp"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused, the tests appear to be working on ee8?
…12124-jsp-tmp-dir
…nces to jar:file urls." This reverts commit 7b4cb73.
Closes #12124
After #12044, the jsp scrachdir is showing up in
jetty.base
instead of under the webapp's tmp dir.Also, the name of the webapp's tmp dir (if created by jetty) is missing the name of the war.