Sven Preßler wrote at Donnerstag, 15. Oktober 2009 13:10:

> That helped, thanks!

and you can define the phase for an execution. Typically a delete task can
be run in the "clean" phase while copy is often something
for "generate-resources".

- Jörg

> 
> --Sven
> 
> 
> 2009/10/15 Stephen Connolly <[email protected]>
> 
>> put the configuration into the execution
>>
>> e.g.
>>
>> <plugin>
>>  <executions>
>>    <execution>
>>      <configuration>
>>       ..
>>      <configuration>
>>    <execution>
>>  <executions>
>> </plugin>
>>
>> and not outside
>>
>> <plugin>
>>  <executions>
>>    <execution>
>>      ..
>>    <execution>
>>  <executions>
>>  <configuration>
>>   ..
>>  <configuration>
>> </plugin>
>>
>>
>> 2009/10/15 Sven Preßler <[email protected]>
>>
>> > Hi,
>> >
>> > I've got 2 antrun tasks: The first one should delete some files, the
>> second
>> > copies some files.
>> > The copy-task is in a profile, since I don't need it every time.
>> > However, if I need it, the configuration of the ant-tasks get merged.
>> > Apart from the problem that the tasks get merged in the wrong order
>> > (copy before delete, but delete is defined before copy in the pom), I
>> > want the tasks to be executed in different phases -> so when the
>> > configuration
>> gets
>> > merged, both tasks get to be executed in either phase.
>> > Is there a solution for maven 2.0.9? I remember reading some jira-Entry
>> > that
>> > there was a problem with such kind of things, but don't remember
>> > exactly. And does the problem still exist in newer versions of maven?
>> >
>> > thanks,
>> > Sven
>> >
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to