ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: Configuring Ibator's classpath for different machines (Eclipse)
Date Wed, 31 Mar 2010 20:38:31 GMT
You could use the <properties> element to point to a common property
file, and then put the location of the JDBC driver in a property.
Still ugly.

The ibator menu option in eclipse is very limited - no control over
the classpath, no ability to specify properties, etc.  My suggestion
is that you remove the <classPathEntry> element altogether and run
Ibator with the integrated Ant task.  This will give you all the
flexibility you need - each team member can specify the location of
the driver on their Ant run configuration.

Look in the Eclipse documentation for Ibator - theres a sample
build.xml file you can copy that shows how to use the built in
"ibator.generate" task.

Jeff Butler

On Wed, Mar 31, 2010 at 3:27 PM, Morearty, Brian
<Brian_Morearty@intuit.com> wrote:
> My team is using Ibator 1.2.2 in Eclipse. We happen to have our Oracle
> installations in different directories. It looks like the <classPathEntry>
> element in Ibator config only allows an absolute path:
>       <classPathEntry
> location="C:/oraclexe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc6.jar"/>
> Is there a way to do parameter substitution in this file, either from a
> system environment variable, an Eclipse “linked resource,” or something
> else?
> If not we can work around it by requiring everyone to have this jar
> available in the same place.
> Brian Morearty | Grow Your Business Division, Intuit | Staff Software
> Engineer | direct 650-944-6852

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message