Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-connect-dev] List out driver files from a ConnectionProfile object


Hi Jack!

Try something along these lines...

                IConnectionProfile profile = "">
                String driverID = profile.getBaseProperties().getProperty(
                                ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID);
                DriverInstance driverInstance =
                        DriverManager.getInstance().getDriverInstanceByID(driverID);
                String jarList = driverInstance.getJarList();
                String[] jarListArray = driverInstance.getJarListAsArray();

Hope that helps!
--Fitz

Brian Fitzpatrick
Senior Software Engineer/DTP Committer
Sybase, Inc.



Jack Fong <jackfong@xxxxxxxxxx>
Sent by: dtp-connect-dev-bounces@xxxxxxxxxxx

06/19/2007 03:51 PM

Please respond to
DTP Connectivity project development list        <dtp-connect-dev@xxxxxxxxxxx>

To
dtp-dev@xxxxxxxxxxx, dali-dev@xxxxxxxxxxx, dtp-connect-dev@xxxxxxxxxxx
cc
Subject
[dtp-connect-dev] List out driver files from a ConnectionProfile        object






Hello,

Does anyone know how to list out the driver files from an
org.eclipse.datatools.connectivity.internal.ConnectionProfile object
please?

I am expecting something like:
C:\db-derby-10.2.2.0-bin\lib\derby.jar;C:\db-derby-10.2.2.0-bin\lib\derbyclient.jar

Thank you very much.


Regards,
Jack
                                                                           
/                                                                          
/                                                                          
                                                                           
/  Jack Fong                                                              
/  jackfong@xxxxxxxxxx                                                    
/                                                                          
/  Software Developer, Rational/AIM WebSphere, Java EE Application Tools  
   IBM Canada Ltd.                                                        
/  905-413-3930 (T/L 969)                                                  
/  D3/RKB/8200/MKM                                                        
/                                                                          
/                                                                          
/                                                                          
/                                                                          
/                                                                          
/                                                                          
                                                                           
                                                                           
/ (Embedded image moved to file: pic17710.gif)  (Embedded image moved to  
/ file: pic03291.gif)                                                      
                                                                           


_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev

Attachment: pic17710.gif
Description: GIF image

Attachment: pic03291.gif
Description: GIF image


Back to the top