Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Integrating Hibernate into build process
Integrating Hibernate into build process [message #121925] Tue, 25 November 2003 15:43 Go to next message
Eclipse UserFriend
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 17:57 Go to previous messageGo to next message
Eclipse UserFriend
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 18:08 Go to previous message
Eclipse UserFriend
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: Sat Jun 07 00:20:14 EDT 2025

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

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

Back to the top