I am trying to retrieve the path to a Java class file. I have 2 projects in my eclipse: project_a
and project_b
. I navigated to project_a
's bin
folder and tried the command locate WebPerformanceUtil.class
. But it gives me four paths:
home/local/prasanth/eclipse/project_a/bin/com/web/utils/WebPerformanceUtil.class
/home/local/prasanth/eclipse/project_a/bin/com/web/utils/ChromeWebPerformanceUtil.class
/home/local/prasanth/eclipse/project_b/bin/com/web/utils/WebPerformanceUtil.class
/home/local/prasanth/eclipse/project_b/bin/com/web/utils/ChromeWebPerformanceUtil.class
But I want only the path which contains the the bin
folder of the project which I'm working in.