-
Notifications
You must be signed in to change notification settings - Fork 304
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
PAYARA-4025 Setting context root with app.war:context stopped working in Payara Micro #4200
Conversation
jenkins test please |
Jenkins test please |
@@ -1518,7 +1516,7 @@ private void deployAll() throws GlassFishException { | |||
File file = new File(entry); | |||
String deployContext = file.getName(); | |||
String name = deployContext.substring(0, deployContext.length() - 4); | |||
if (deployContext.endsWith(".ear") || deployContext.endsWith(".war") || deployContext.endsWith(".jar") || deployContext.endsWith(".rar")) { | |||
if (hasJavaFileExtension(deployContext)) { |
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.
Shouldn't this rather be called enterprise Java file extension?
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.
Or hasJavaArchiveExtension.
@@ -1638,6 +1650,14 @@ private void deployAll() throws GlassFishException { | |||
|
|||
LOGGER.log(Level.INFO, "Deployed {0} archive(s)", deploymentCount); | |||
} | |||
|
|||
private boolean hasJavaFileExtension(String filePath) { | |||
if (filePath.endsWith(".war") || filePath.endsWith(".ear") || filePath.endsWith(".jar") || filePath.endsWith(".rar")) { |
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.
Simply return the if clause.
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.
Agreed with couple of comments raised but otherwise happy
jenkins test please |
No description provided.