On 5/19/06, Patil, Shivakumar (GE Healthcare) <[EMAIL PROTECTED]>
wrote:
I want to copy a file from one directory to another.
Is there any standard & elegant way to copy a file in Maven.I could not
find any.(Suggest me any if you know).
Instead Iam using the ant plugin for maven & trying to do the copy.
I tried this...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<copy file="C:\build\work\abc.ear"
tofile="C:\abc"/>
</tasks>
</configuration>
</plugin>
The above piece runs fine & successfully.But,the file is NEVER copied.
Any suggestions please...
Sounds like you are looking for <resources>.
--
Jamie Bisotti