maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaron Goldstein <yarongoldstei...@gmail.com>
Subject Re: First copy one file, befo re anything
Date Fri, 05 Dec 2014 16:11:56 GMT
Hi,
You can copy it to any directory of choice.
One thing to remember is to run it in the validate phase:
mvn validate install ....

More info here
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html
Good luck & Shalom!!
Yaron

On Fri, Dec 5, 2014 at 6:06 PM, Aitor Iturriondobeitia <
laudio.info@gmail.com> wrote:

> Thanks
> I must copy the file to one dir out of the project. The file is Info the
> project  ($project.base}/Filters and i must to move to c:/Filters
> Thanks
>
> El viernes, 5 de diciembre de 2014, Yaron Goldstein <
> yarongoldstein10@gmail.com> escribió:
>
> Hi.
>> Use the ant plugin. Here's an example:
>>
>> <build>
>>
>> <plugin>
>>
>> <artifactId>maven-antrun-plugin</artifactId>
>>
>> <executions>
>>
>>           <execution>
>>
>> <phase>validate</phase>
>>
>> <goals>
>>
>> <goal>run</goal>
>>
>> </goals>
>>
>> <configuration>
>>
>> <tasks>
>>
>> <delete file="src/main/resources/config.properties" />
>>
>> <copy file="src/main/resources/gold/config.properties"
>>
>> tofile="src/main/resources/config.properties" />
>>
>> <delete file="src/main/resources/TestData.properties" />
>>
>> <copy file="srcץץץץץ
>>
>> Thanks,
>>
>> Yaron
>> בתאריך 5 בדצמ' 2014 17:13, "Aitor Iturriondobeitia" <
>> laudio.info@gmail.com> כתב:
>>
>>> hello
>>> I must to copy one file before anything,
>>> This file contains some properties for filtering
>>> What plugin must i use and how for moving one file to one directory?
>>> Thanks
>>>
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message