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]

Reply via email to