Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Integrating Hibernate into build process
Integrating Hibernate into build process [message #121925] Tue, 25 November 2003 20:43 Go to next message
Mitch Christensen is currently offline Mitch ChristensenFriend
Messages: 39
Registered: July 2009
Member
Hey,

Is there an easy way to copy modified xxx.hbm.xml files from the src/
directory structure to the bin/ directory structure as part of the build
of a PDE project?

I'm building a plugin that uses Hibernate to talk to Oracle, and I need to
manipulate the PDE build process to automatically copy any modified
*.hbm.xml files that reside in the src/ directory to the bin/ for ultimate
inclusion in the deployed .jar file.
Re: Integrating Hibernate into build process [message #121976 is a reply to message #121925] Tue, 25 November 2003 22:57 Go to previous messageGo to next message
Mitch Christensen is currently offline Mitch ChristensenFriend
Messages: 39
Registered: July 2009
Member
Of course the obvious answer is to have an external Ant script that copies
the mapping files. But I'd like to have the default build target take
care of this for me.

Is this possible?

Mitch Christensen wrote:

> Hey,

> Is there an easy way to copy modified xxx.hbm.xml files from the src/
> directory structure to the bin/ directory structure as part of the build
> of a PDE project?

> I'm building a plugin that uses Hibernate to talk to Oracle, and I need to
> manipulate the PDE build process to automatically copy any modified
> *.hbm.xml files that reside in the src/ directory to the bin/ for ultimate
> inclusion in the deployed .jar file.
Re: Integrating Hibernate into build process [message #121988 is a reply to message #121976] Tue, 25 November 2003 23:08 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
You can add an External Tool builder that runs an Ant build for each build
of the project.
On your project, Right click, Properties>Builders (or External Tools
Builders depending on your Eclipse build)
Create a new one that makes use of your Ant buildfile.

HTH
Darins

"Mitch Christensen" <mitch.christensen@informatixinc.com> wrote in message
news:bq0moi$kkg$1@eclipse.org...
> Of course the obvious answer is to have an external Ant script that copies
> the mapping files. But I'd like to have the default build target take
> care of this for me.
>
> Is this possible?
>
> Mitch Christensen wrote:
>
> > Hey,
>
> > Is there an easy way to copy modified xxx.hbm.xml files from the src/
> > directory structure to the bin/ directory structure as part of the build
> > of a PDE project?
>
> > I'm building a plugin that uses Hibernate to talk to Oracle, and I need
to
> > manipulate the PDE build process to automatically copy any modified
> > *.hbm.xml files that reside in the src/ directory to the bin/ for
ultimate
> > inclusion in the deployed .jar file.
>
>
Previous Topic:accessing project classpath from within ant file
Next Topic:How to programatically refresh a folder from a plugin?
Goto Forum:
  


Current Time: Fri Dec 27 02:39:13 GMT 2024

Powered by FUDForum. Page generated in 0.03218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top