-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Use ant -diagnostics
instead of realpath
to get ANT_HOME
#28
Comments
ant -diagnostics
instead of realpath
to get AN_HOMEant -diagnostics
instead of realpath
to get ANT_HOME
HI @sxa555 , do you have any insight about this? |
A fair comment and that sounds like a reasonable approach - that code predates me being involved with the project so I'll tag in @lumpfish :-) |
@TianyuZuo - what is it you are saying is not working? Are you saying that on RHEL /tmp/svttemp/git/stf/../../systemtest_prereqs/apache-ant-1.10.1/lib/ant-launcher.jar does actually exist? Since the code is trying to find ant I can't see how running ant is going to help. What if ant is not on the path? |
Not exactly. If the Ant in the system was not successfully setup, the code snippet in the makefile may fail to find the realpath of system installed Ant. Taking that RHEL machine as an example, the Ant was installed in If Ant was not on the path, I don't think |
Looking at the gmake doc: https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html realpath is supported to follow symlinks. Do you still have access to the machine where this is not working? I see you have included make -version output - are you saying there is an issue with realpath in make 3.82? |
In the makefile of stf, this parts of code is trying to define the ANT_HOME
However, this part of code doesn't work as expected on RHEL7
RHEL7:
Ubuntu16:
Instead of using
realpath
in the makefile, is usingant -diagnostics
a proper approach to get the correct ant.home? For exampleThere should be a same way on Windows to parse the
ant -diagnostics
result to get the real ant.homeThe text was updated successfully, but these errors were encountered: