on 03-09-2009 10:04 AM
Hi Experts,
How can we get the EP installation directory from code? which API we have to use..?
Thanks,
jak
Hi,
One way of doing work around is Create a KM repository in portal as portal root folder.
Then it is easy using to access the content using KM API's.
It may not be a good practice.
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by the installation directory? Which folder do you want to find? Do you want this for a specific operating system? If you use Java to do a directory of "\usr\sap" on Windows you will find your systems and then you can find your instances etc...
File dir = new File("\\usr\\sap");
String[] files = dir.list();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I use System - properties to solve this, e.g.
String pathString = System.getProperty("statusicons.mimes.name");
returns
file://usr/sap/<SID>/<INSTANCE>/j2ee/cluster/server<NODE>/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.portal.htmlb/mimes/mimesinfo.xml
I use substring() - calls on it.
There are more System - properties Strings containing the path, that may be used.
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.