I tryied this aproach, but it didn't work. I get the taskdef not found. I
probably am missing jars on my lib.repo...
On Wed, May 29, 2002 at 10:54:46AM -0500, Stephen Haberman wrote:
> I've patched the build-torque.xml so that you can just keep Torque in
> the jar and not have to extract it. Everything is configured via
> properties (see the attached project.properties for the new properties I
> added), so normally you'd put in the build-torque.xml in a dir, set the
> properties in the build.properties and call "ant -f build-torque.xml".
>
> As long as Torque is in your classpath, it should work great. So you'd
> accomplish this with maven but adding it to your dependencies in
> project.xml, as you said you were interested in doing.
>
> Also, since you're using Maven, you can setup the Torque settings in
> your project.properties, then in your build.xml, add:
>
> <property name="maven.core.callback.pre-compile.buildFile"
> value="${basedir}/build-torque.xml"/>
> <property name="maven.core.callback.pre-compile.buildTarget"
> value="main-classpath"/>
>
> This plugs Torque into the Maven callback architecture, so now Torque
> will automatically run everytime you run ant.
>
> If this isn't desirable (eventually I'll get around to making it smart
> enough to only run when it needs to), you can also add delegates to your
> build.xml file (see the bottom of attached build.xml file), and then
> just run "ant torque:main" when you've changed your schema.
>
> This setup has been working well for me and I'd like to see it included
> in Torque (or at least the functionality of it, if not necessarily my
> patch of it). So if you like how these files work, let the devs know so
> they'll accept my patch or work on their own. :-)
>
> Also, let me know if you run into problems/bugs in this approach and
> I'll try and patch them up.
>
> Thanks,
> Stephen
>
> > -----Original Message-----
> > From: Christian Willy Asmussen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 29, 2002 10:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: What happend to build-torque.xml
> >
> > In the torque site, the documentation refers to a file named
> > build-torque.xml. I cannot find it anywhere.
> >
> > Also, I am using maven on my project. Is it possible to use torque
> simply
> > by declaring it as a dependency, or do I have to get the .tar.gz and
> do all
> > that stuff?
> >
> >
> > --
> > There is no limit to what you can do
> > if you don't care who gets the credit.
> > - Keynote
> >
> > --
> > To unsubscribe, e-mail: <mailto:turbine-torque-user-
> > [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:turbine-torque-user-
> > [EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
There is no limit to what you can do
if you don't care who gets the credit.
- Keynote
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>