Please explain exactly what you want to do (what do the ant tasks do), so we
can help you do that in a correct Maven way. Very likely, there are maven
plugins that do this so that you can remove the dependency to ant.

/Anders

On Thu, Apr 29, 2010 at 10:47, Partha Maitra <[email protected]>wrote:

> Hi Kalpak,
> Thanks for your reply, actually I would want to perform some additional ant
> tasks, but instead of calling an additional goal as "antrun:run" I would
> want to use normal "mvn clean install". When I call this "mvn install" I
> would expect to run the ant task. Can you please help?
> Can you please provide an example for doing this?
>
> Regards,
> Partha.
>
> -----Original Message-----
> From: Kalpak Gadre [mailto:[email protected]]
> Sent: Thursday, April 29, 2010 2:12 PM
> To: [email protected]
> Subject: Re: Using Ant script in Maven
>
> Hi Partha,
>
> If you just need to copy the properties file so that it gets embedded in
> the jar file, Maven conventionally uses src/main/resources/ directory for
> this. So you could simply place your properties file under
> src/main/resources and it will automatically get embedded in the jar file.
>
> Is this what you are looking at?
>
> Thanks,
>
> Kalpak
>
> >   Hi Antonio,
> >
> > Thanks for your quick reply, but in order to run this I would have to use
> the goal as "antrun:run" if I am not woring(as I am very new to Maven) , but
> I need to run the ant command that will just copy 1property file from one
> location to the source directory of the project when I give the command as
> "mvn clean install"
> > Can you please help?
> >
> > -----Original Message-----
> > From: Antonio Petrelli [mailto:[email protected]]
> > Sent: Thursday, April 29, 2010 1:53 PM
> > To: Maven Users List
> > Subject: Re: Using Ant script in Maven
> >
> > 2010/4/29 Partha Maitra<[email protected]>:
> >
> >> I am very new to Maven, and would like to know how to add an "ant" task
> as a pert of my "install" goal, i.e. if I use mvn install it should first
> run that ant task.
> >>
> > AntRun plugin:
> > http://maven.apache.org/plugins/maven-antrun-plugin/
> >
> > However I think you should check if there is already a plugin that does
> what you need. If you post your needs we might help you.
> >
> > Antonio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> > SASKEN BUSINESS DISCLAIMER: This message may contain confidential,
> proprietary or legally privileged information. In case you are not the
> original intended Recipient of the message, you must not, directly or
> indirectly, use, disclose, distribute, print, or copy any part of this
> message and you are requested to delete it and inform the sender. Any views
> expressed in this message are those of the individual sender unless
> otherwise stated. Nothing contained in this message shall be construed as an
> offer or acceptance of any offer by Sasken Communication Technologies
> Limited ("Sasken") unless sent with that express intent and with due
> authority of Sasken. Sasken has taken enough precautions to prevent the
> spread of viruses. However the company accepts no liability for any damage
> caused by any virus transmitted by this email.
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
> SASKEN BUSINESS DISCLAIMER: This message may contain confidential,
> proprietary or legally privileged information. In case you are not the
> original intended Recipient of the message, you must not, directly or
> indirectly, use, disclose, distribute, print, or copy any part of this
> message and you are requested to delete it and inform the sender. Any views
> expressed in this message are those of the individual sender unless
> otherwise stated. Nothing contained in this message shall be construed as an
> offer or acceptance of any offer by Sasken Communication Technologies
> Limited ("Sasken") unless sent with that express intent and with due
> authority of Sasken. Sasken has taken enough precautions to prevent the
> spread of viruses. However the company accepts no liability for any damage
> caused by any virus transmitted by this email.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to