Yeah :)  Just tried it works, so for the toFile you can provide a full path,
but toDir is just a directory and the actual file with the original filename
will be put there.


Dan Tran wrote:
> 
> actually, it is not a bug, just need better comment.  When toDir is
> used,  toFile is ignored
> 
> 0Dan
> 
> On Wed, May 26, 2010 at 2:07 PM, YevK <[email protected]> wrote:
>>
>> Do I need to create an account on the JIRA or perhaps you can add it?
>>  Would
>> be nice to have a patch/fix asap I need it :)
>>
>> Thanks !
>>
>>
>> Dan Tran wrote:
>>>
>>> confirm, it is a bug :(. please file a JIRA
>>>
>>> -D
>>>
>>> On Wed, May 26, 2010 at 1:10 PM, YevK <[email protected]> wrote:
>>>>
>>>> Its part of the zip, but here...
>>>> http://old.nabble.com/file/p28685707/pom.xml
>>>> pom.xml
>>>>
>>>> Dan Tran wrote:
>>>>>
>>>>> please attach a pom.xml file
>>>>>
>>>>> -D
>>>>>
>>>>> On Wed, May 26, 2010 at 12:16 PM, YevK <[email protected]> wrote:
>>>>>>
>>>>>> Here is a sample project that tries to download an html file from
>>>>>>
>>>>>> http://www.jboss.org/drools/drools-guvnor.html and rename it to
>>>>>> something
>>>>>> else.
>>>>>>
>>>>>> Should run once you unzip it.
>>>>>>
>>>>>>
>>>>>> Dan Tran wrote:
>>>>>>>
>>>>>>> what error?
>>>>>>>
>>>>>>> Could you produce a pom file to produce the issue using a well known
>>>>>>> file on internet ( id maven central )
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>> On Wed, May 26, 2010 at 10:48 AM, YevK <[email protected]> wrote:
>>>>>>>>
>>>>>>>> I setup the following config in my project and expect to have a
>>>>>>>> file
>>>>>>>> renamed
>>>>>>>> from QA.drl to mapping.drl, but it doesn't work.  Any ideas?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> <plugin>
>>>>>>>>                <groupId>org.codehaus.mojo</groupId>
>>>>>>>>                <artifactId>wagon-maven-plugin</artifactId>
>>>>>>>>                <version>1.0-beta-3</version>
>>>>>>>>                <executions>
>>>>>>>>                        <execution>
>>>>>>>>                                <id>download-drools-drl</id>
>>>>>>>>                                <phase>package</phase>
>>>>>>>>                                <goals>
>>>>>>>>                                        <goal>download-single</goal>
>>>>>>>>                                </goals>
>>>>>>>>                                <configuration>
>>>>>>>>                                    <fromFile>QA.drl</fromFile>
>>>>>>>>                                    <toFile>mapping.drl</toFile>
>>>>>>>>
>>>>>>>> <url>http://url/org.drools.guvnor.Guvnor/package/mapping/</url>
>>>>>>>>
>>>>>>>> <toDir>target/${artifactId}-${version}/WEB-INF/classes</toDir>
>>>>>>>>                                </configuration>
>>>>>>>>                        </execution>
>>>>>>>>                </executions>
>>>>>>>>            </plugin>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://old.nabble.com/toFile-doesn%27t-work-in-wagon-mojo-for-download-single-goal-tp28684084p28684084.html
>>>>>>>> Sent from the mojo - dev mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe from this list, please visit:
>>>>>>>>
>>>>>>>>    http://xircles.codehaus.org/manage_email
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> http://old.nabble.com/file/p28685097/wagon-tofile-problem.zipx
>>>>>> wagon-tofile-problem.zipx
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/toFile-doesn%27t-work-in-wagon-mojo-for-download-single-goal-tp28684084p28685097.html
>>>>>> Sent from the mojo - dev mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe from this list, please visit:
>>>>>>
>>>>>>    http://xircles.codehaus.org/manage_email
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe from this list, please visit:
>>>>>
>>>>>     http://xircles.codehaus.org/manage_email
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/toFile-doesn%27t-work-in-wagon-mojo-for-download-single-goal-tp28684084p28685707.html
>>>> Sent from the mojo - dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list, please visit:
>>>>
>>>>    http://xircles.codehaus.org/manage_email
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/toFile-doesn%27t-work-in-wagon-mojo-for-download-single-goal-tp28684084p28686439.html
>> Sent from the mojo - dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/toFile-doesn%27t-work-in-wagon-mojo-for-download-single-goal-tp28684084p28686555.html
Sent from the mojo - dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to