Until the OP responds, we'll never know the answer. We're both making
assumptions here.
Wayne
On 9/11/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> Because ant can inherit the classpaths/dependencies. Presumably he *is*
> utilizing the lifecycle, and attaching this ant config to one of the phases,
> but has a need to call specific ant tasks only sometimes. Was there
> something I missed that made you think he was calling maven only to call
> ant, and that he had no interest in utlizing the lifecycle? I assumed this
> was a somewhat special case and that it wasn't just using Maven to wrap an
> ant build process - that I agree would be silly.
>
>
> On 9/11/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > That just sounds more complicated than it needs to be. Calling Maven
> > just so it will call Ant for me is too indirect when I can just call
> > Ant directly, right? What's the advantage when it works fine with "ant
> > <target>" and I have no interest in utilizing the Maven lifecycle for
> > this particular Ant target/call?
> >
> > Wayne
> >
> > On 9/11/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > > Can't you just pass in a -D argument and execute the argument that's
> > passed
> > > in?
> > >
> > > e.g.
> > > mvn install -DantTarget=targetToCall
> > >
> > > then in the antrun execution:
> > > <ant
> > > antfile="src/main/ant-builds/buildJnlps.xml"
> > > target="${antTarget}" />
> > >
> > >
> > > On 9/11/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I would just move those targets out to a build.xml file so you can
> > > > call them directly with Ant. Then set Maven up so it calls the targets
> > > > in the build.xml file rather than embedding the Ant stuff in your pom.
> > > >
> > > > Wayne
> > > >
> > > > On 9/11/07, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I have already two profiles...
> > > > > I dont want to blow up my pom too much!
> > > > > Is there no other easier way to call specific targets?
> > > > >
> > > > > Martin
> > > > >
> > > > >
> > > > > > Profiles will solve your problem.
> > > > > >
> > > > > > Wayne
> > > > > >
> > > > > > On 9/11/07, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I have some ant targets integrated in my pom.xml.
> > > > > > > I declared an ant build script which is therefor called from
> > maven.
> > > > > > > Now I dont want to perform every ant target on every build.
> > > > > > > Is there a way to call only specific ant-targets from the
> > > > > > command line (maybe by calling the target or the id)?
> > > > > > >
> > > > > > > ---
> > > > > > > kind regards
> > > > > > > Martin Ritz
> > > > > > >
> > > > > > > > BTC AG - Unit Software Engineering
> > > > > > > mailto:[EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]