-
Notifications
You must be signed in to change notification settings - Fork 136
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
Fixing builds on Windows #24606
Fixing builds on Windows #24606
Conversation
To save your time, part 1: glassfish/nucleus/admin/launcher/src/test/java/com/sun/enterprise/admin/launcher/GFLauncherTest.java Line 94 in 67d5fae
glassfish/nucleus/admin/launcher/src/test/java/com/sun/enterprise/admin/launcher/GFLauncherTest.java Line 106 in 67d5fae
Also we should disable with
Asterisk glassfish/appserver/itest-tools/src/test/java/org/glassfish/main/admin/test/tool/StartStopITest.java Line 39 in 67d5fae
|
Bit late, I already did that, but at least we have same ideas :-)
I cannot make the host name public, but it is from some managed windows domain and I have no rights to expose port on this machine. |
@@ -36,6 +36,6 @@ class StartStopITest { | |||
*/ | |||
@Test | |||
void asadminGet() { | |||
assertThat(ASADMIN.exec("get", "*"), asadminOK()); | |||
assertThat(ASADMIN.exec("get", "'*'"), asadminOK()); |
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.
On Windows work with double quotes, on Linux - no. We need some condition here.
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.
Aha, I thought it passed on my Windows, but this test failed to start the domain (unable to expose ports). Can you finish the PR? I can't do more on this machine. I just used the opportunity to try it :)
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.
Sure ;)
This PR #24610 should fix |
Aha, I did not notice you switched it back to Draft, @avpinchuk |
Yes. This is because we need to close several bugs in GF, not only in tests ;) |
Ok, I will leave it on your decision for now, thank you. |
On Windows, Thus, |
@dmatej, all done. |
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Unix feature Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
I have yet one failure, the exec plugin execution (and same previous gfbuild-maven-plugin:exec) were depending on OS java command, same as #24617 , I will fix it now. |
- if it executed asadmin, it used OS default java Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
I opened yet another PR to WaSP eclipse-ee4j/wasp#61 |
I started the build... BUILD SUCCESS |
So, let's make it Ready for review, do you agree? |
Yes, sure. |
LGTM, although I didn't test on Windows. The WaSP PR has some good comments btw ;) |
I pushed a fixed version |
I would not recommend MS Windows for a development to anyone, however ... I would like to see the build passing at least basically. Also tests are useful to see differences between operating systems and can suggest some solutions of possible issues.