In eclipse you should not edit the .classpath file directly. You should edit the launch configuration through the UI. The menu option is something like "Run->External Tools...", this will present you with a dialog where you can find your Ant launches and set the classpath appropriately. Assuming your custom class is a part of an eclipse project, add the project to the classpath of the launch configuration.
The Abator plugin for eclipse includes a build in Ant task called " abator.generate" that supports Java file merging. You should that task when running Ant in eclipse. This means that you do not need to do a <taskdef> when running in the eclipse environment - simply use the "abator.generate" task. An example of this is in the eclipse help for abator. If you eant to automate this, read the eclipse help about running a "headless ant build". Jeff Butler On Fri, Mar 14, 2008 at 6:41 PM, kbighorse <[EMAIL PROTECTED]> wrote: > > More of an Ant/Eclipse question, but how does one "add your custom class > to > the Ant class path in the Ant launch configuration"? I tried adding the > folder with my source file in it and adding the folder with the .class > file. > Also, is it impossible to extend Abator and use Java file auto-merge, > since > the former only works in Ant and the latter only with the Eclipse plug-in? > > kimball > > > Olivier Ziller GMail Lists wrote: > > > > hello Jeff, > > > > yes it works with Eclipse and the ant task! > > > > regards > > > > Jeff Butler a écrit : > >> Classloading in Eclipse plugins is complex. > >> > >> Basicly, the Abator plugin will not be able to see your custom class > >> if you run Abator through the menu option. There may be something I > >> can do about that at some point, but I've not figured it out yet. > >> > >> I think you can get this to work if you use the Eclipse ant task for > >> Abator, and then add your custom class to the Ant class path in the > >> Ant launch configuration. > >> > >> I'd be interested to know your results with this. > >> > >> Jeff Butler > >> > >> > >> > >> On 8/24/06, *Olivier Ziller GMail Lists* > >> <[EMAIL PROTECTED] > >> <mailto:[EMAIL PROTECTED]>> wrote: > >> > >> hello, > >> > >> i'm using the abator eclipse plugin and i've developped my own > >> javaTypeResolver > >> i try to reference it in my abatorConfig.xml > >> > >> <javaTypeResolver type="fr.univnancy2.abator.AgatteResolver"> > >> </javaTypeResolver> > >> > >> but the problem is that each time i run abator i get the error > >> "Unexpected error while running Abator. Cannot instantiate object > of > >> type fr.univnancy2.abator.AgatteResolver" > >> > >> where to put my AgatteResolver.class file? > >> > >> regards > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/custom-abator-javaTypeResolver-and-eclipse-tp5963457p16062405.html > Sent from the iBATIS - User - Java mailing list archive at > Nabble.com<http://nabble.com/> > . > >
