I think you misunderstood me.  There is an Ant task built into Eclipse
for Ibator.  It includes the "don't clobber on regenerate"
capabilities.  This is different than the regular ant task in the base
Ibator distribution.  Check it out!  It does exactly what you need.

Jeff Butler

On Wed, Mar 31, 2010 at 3:46 PM, Morearty, Brian
<brian_morea...@intuit.com> wrote:
> Thanks for the suggestion.  We like the Eclipse-Ibator feature that lets us 
> regenerate without clobbering custom code we've added to the model objects, 
> so I think Ant isn't an option for us.
>
> That's ok.  It's not too super-painful to make sure we all put one jar in a 
> consistent place.
>
> Brian
>
>
>
> -----Original Message-----
> From: Jeff Butler [mailto:jeffgbut...@gmail.com]
> Sent: Wednesday, March 31, 2010 1:39 PM
> To: user-java@ibatis.apache.org
> Subject: Re: Configuring Ibator's classpath for different machines (Eclipse)
>
> 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_morea...@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-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>

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

Reply via email to