-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Added quoting around compile properties #577
Conversation
We were able to workaround it by
But I stil think it should be quoted, thoughts? |
Happy to bring this change in (with some additional testing expected), fixes a "closed as won't fix" issue #502 |
compile.mk
Outdated
@@ -38,7 +38,7 @@ TEST_FLAG_PARAM := -DTEST_FLAG=$(TEST_FLAG) | |||
else | |||
TEST_FLAG_PARAM := | |||
endif | |||
COMPILE_CMD=ant -f scripts$(D)build_test.xml -DTEST_ROOT=$(TEST_ROOT) -DBUILD_ROOT=$(BUILD_ROOT) -DJDK_VERSION=$(JDK_VERSION) -DJDK_IMPL=$(JDK_IMPL) -DJDK_VENDOR=$(JDK_VENDOR) -DJCL_VERSION=$(JCL_VERSION) -DBUILD_LIST=${COMPILE_BUILD_LIST} -DRESOURCES_DIR=${RESOURCES_DIR} -DSPEC=${SPEC} -DTEST_JDK_HOME=${TEST_JDK_HOME} -DJVM_VERSION=$(JVM_VERSION) -DLIB_DIR=$(LIB_DIR) ${TEST_FLAG_PARAM} | |||
COMPILE_CMD=ant -f scripts$(D)build_test.xml -DTEST_ROOT="$(TEST_ROOT)" -DBUILD_ROOT="$(BUILD_ROOT)" -DJDK_VERSION="$(JDK_VERSION)" -DJDK_IMPL="$(JDK_IMPL)" -DJDK_VENDOR="$(JDK_VENDOR)" -DJCL_VERSION="$(JCL_VERSION)" -DBUILD_LIST="${COMPILE_BUILD_LIST}" -DRESOURCES_DIR="${RESOURCES_DIR}" -DSPEC="${SPEC}" -DTEST_JDK_HOME="${TEST_JDK_HOME}" -DJVM_VERSION="$(JVM_VERSION)" -DLIB_DIR="$(LIB_DIR)" ${TEST_FLAG_PARAM} |
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.
Could we only quote JDK_VENDOR or non directory one unless this can be tested in windows platforms (jenkins and local)?
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.
Also, we may need to use $(Q)
to replace "
and test it works on all platforms.
Sure. TY! Will elebaorate |
Jsut a question - I woudl thought, that the directories one would be the most important, due to possible space in path... But seeing the #502 I smell troubles :) |
yes, feel like directory ones would be the most possible ones with spaces in path, especially for windows and mac. However we haven't got problems by now. The reason we might need to be cautious is quotes might be added later somewhere else. Then there will be extra quotes. Though if tests on windows and mac are fine then we are good to do that. |
Hello! Sorry for delay. I had did all suggested changes. Once this beak in, I will submit PR, which will be quoting all, as it seesm to be correct way to do so. All local testing on linux passed |
|
@sophia-guo @smlambert @LongyuZhang Just in case it is not clear, the #577 (comment) is showing the improvement this PR does :) (I opened it today and it is not clear..but it really shows that.) |
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.
LGTM.
tyvm! |
Hello!
We are hitting:
Which suggests that under some circumstances vendor with spaces is not handled properly. THis PR may be very wrong, the call from aqa-tests may be guilty., BUt I have hard times to manually trigger it, however:
In case of rpms vendor is: "Red Hat, Inc."
Seems like some logic simplifies it to "redhat" and it is then passed as that:
ant -f scripts/build_test.xml ... -DJDK_VENDOR=redhat ...
In case undef builds seems to be: "Undefined Vendor"
which it says is unrecognized and passed literally:
ant -f scripts/build_test.xml ... -DJDK_VENDOR=Undefined Vendor ...