relative location of driver JAR file [message #20311] |
Tue, 01 August 2006 05:31  |
Eclipse User |
|
|
|
Hi,
Is there a way of referencing a jar file in the JAR list of a driver
(jarList property) using a relative path of the plugin? I would like to
define a driver plugin, which would include the JAR files in the plugin.
I saw bug 140816 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140816)
that mentions using of the syntax like [plugin-id]/path, but that is not
working for me. Is there anything I might have done incorrectly?
Thanks,
Radim
|
|
|
|
|
|
|
|
Re: relative location of driver JAR file [message #29390 is a reply to message #20379] |
Fri, 13 April 2007 01:02  |
Eclipse User |
|
|
|
Hi,
I think, your problum is that, you create a plugin, which one
cammunicating with the database with the help of a data base driver. If
the driver is a jar file, then extract that jar file in the project
directory. in my case, if the programe name is org.test.hello then it is
D:\WorkSpace\org.test.hello\src\ and D:\WorkSpace\org.test.hello\bin\ .
No need any other settings. I am sure it is working.
Sabeesh .C.S
|
|
|
Re: relative location of driver JAR file [message #581470 is a reply to message #20311] |
Thu, 03 August 2006 16:35  |
Eclipse User |
|
|
|
Hi Radim...
You should be able to use the [plugin-id]/path method to use the relative
path. You might check a couple of things...
1) Is the plug-in you're referencing accessible from the plug-in with the
referenced path? (Maybe the file is exposed in a separate plug-in?)
2) What does your actual extension point look like? I may be able to see
something in the actual text that could help. (Hard to debug sight unseen.)
Thanks!
--Brian Fitzpatrick
Sybase, Inc.
Senior Software Engineer/DTP Connectivity Committer
"Radim" <radim@kolarikovi.net> wrote in message
news:92b8cfde2e13f012a9a252521b5fb123$1@www.eclipse.org...
> Hi,
>
> Is there a way of referencing a jar file in the JAR list of a driver
> (jarList property) using a relative path of the plugin? I would like to
> define a driver plugin, which would include the JAR files in the plugin.
>
> I saw bug 140816 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140816)
> that mentions using of the syntax like [plugin-id]/path, but that is not
> working for me. Is there anything I might have done incorrectly?
>
> Thanks,
> Radim
>
|
|
|
Re: relative location of driver JAR file [message #581483 is a reply to message #20329] |
Fri, 04 August 2006 08:52  |
Eclipse User |
|
|
|
Hi Brian,
my extension definition looks like this:
<plugin>
<extension
point="org.eclipse.datatools.connectivity.driverExtension">
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp "
name="Testapp"/>
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp5 "
name="Testapp 5 Database"
parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp "/>
<driverTemplate
createDefault="false"
emptyJarListIsOK="false"
id=" com.testapp.ide.db.connectivity.profile.drivertemplate.testa pp5 "
jarList=" [com.testapp.ide.db.connectivity.profile]/thirdparty/ojdbc14 .jar "
name="Oracle for Testapp 5"
parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp5 ">
<properties>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.driverClass"
name="Driver Class"
value="oracle.jdbc.OracleDriver"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.vendor"
name="Driver Vendor"
value="Oracle"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.version"
name="Driver Version"
value="9"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.databaseName"
name="Oracle Service Name"
value="db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.URL"
name="JDBC URL"
value="jdbc:oracle:thin:@server:1521:db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.username"
name="User"
value="testapp"
required="false"
visible="true"/>
<property
customPropertyDescriptor=" org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDe scriptor "
generated="false"
id="org.eclipse.datatools.connectivity.db.password"
name="Password"
required="false"
visible="true"/>
</properties>
</driverTemplate>
</extension>
Can you see if there is anything that I am doing wrong? I believe the JAR
file is accessible, it is part of the plugin.
Thanks for your help,
Radim
|
|
|
Re: relative location of driver JAR file [message #581490 is a reply to message #20339] |
Fri, 04 August 2006 11:13  |
Eclipse User |
|
|
|
I think I have identified the problem. It appears to be working only if
there is createDefault property set to "true". It then creates a default
driver instance successfully.
However, if I try to create the driver instance using menu, the
[plugin.id] string is not converted (looking at the source code, the
updatePluginJarList method of the DriverManager class is not called).
Is it a bug or is it an expected behaviour?
Thanks,
Radim
|
|
|
Re: relative location of driver JAR file [message #581536 is a reply to message #20349] |
Fri, 04 August 2006 15:18  |
Eclipse User |
|
|
|
Sounds like a bug. If you make a Bugzilla entry we'll get it fixed.
Thanks!
--Brian
"Radim" <radim@kolarikovi.net> wrote in message
news:b52536e43ffa9bb4af0776fbdc15325d$1@www.eclipse.org...
> I think I have identified the problem. It appears to be working only if
> there is createDefault property set to "true". It then creates a default
> driver instance successfully.
>
> However, if I try to create the driver instance using menu, the
> [plugin.id] string is not converted (looking at the source code, the
> updatePluginJarList method of the DriverManager class is not called).
>
> Is it a bug or is it an expected behaviour?
>
> Thanks,
> Radim
>
|
|
|
|
Re: relative location of driver JAR file [message #585231 is a reply to message #20379] |
Fri, 13 April 2007 01:02  |
Eclipse User |
|
|
|
Hi,
I think, your problum is that, you create a plugin, which one
cammunicating with the database with the help of a data base driver. If
the driver is a jar file, then extract that jar file in the project
directory. in my case, if the programe name is org.test.hello then it is
D:\WorkSpace\org.test.hello\src\ and D:\WorkSpace\org.test.hello\bin\ .
No need any other settings. I am sure it is working.
Sabeesh .C.S
|
|
|
Powered by
FUDForum. Page generated in 0.07347 seconds