Skip to content
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

Merged
merged 3 commits into from
Sep 10, 2019

Conversation

MeroRai
Copy link
Member

@MeroRai MeroRai commented Sep 5, 2019

No description provided.

@MeroRai MeroRai self-assigned this Sep 5, 2019
@MeroRai MeroRai added this to the 5.194 milestone Sep 5, 2019
@MeroRai
Copy link
Member Author

MeroRai commented Sep 5, 2019

jenkins test please

@Pandrex247
Copy link
Member

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)) {
Copy link
Contributor

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?

Copy link
Contributor

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")) {
Copy link
Contributor

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.

Copy link
Contributor

@cubastanley cubastanley left a 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

@MeroRai
Copy link
Member Author

MeroRai commented Sep 9, 2019

jenkins test please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants