[ 
https://issues.apache.org/jira/browse/NPANDAY-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145529#comment-13145529
 ] 

Stoyan Damov commented on NPANDAY-322:
--------------------------------------

I'll try to make it clearer:

First, here's the new code:

{code}
if (!ArtifactUtils.Exists(artifact) || (isSnapshot && resyncFromRemoteRepo))
{
    if (!ArtifactUtils.DownloadFromRemoteRepository(artifact, logger))
    {
        RaiseError("Unable to get the artifact {0} from any of your 
repositories.", artifact.ArtifactId);
        return;
    }
}

CopyToReferenceFolder(artifact, referenceFolder);
{code}

*TODO*: gotta go, will comment a bit later tonight.

                
> Resync Reference doesn't update SNAPSHOT artifact from local repository that 
> already exist in .references folder
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-322
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-322
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.4-incubating
>            Reporter: Dmitry L
>            Assignee: Lars Corneliussen
>            Priority: Minor
>             Fix For: 1.2.1, 1.4.1-incubating
>
>         Attachments: ArtifactUtils.cs, Connect.cs, 
> NPANDAY-322_and_NPANDAY-476.diff, ReferenceManager.cs, 
> TEST-npanday.its.IntegrationTestSuite.xml, 
> npanday.its.IntegrationTestSuite.txt
>
>
> Steps:
> 1. Install Library1 into local maven repo
> 2. Add Library1 as dependency using Resync Reference to ProjectA (it will be 
> copied into .references folder)
> 3. Update and reinstall Library1 into local maven repo
> 4. Invoke Resync Reference for ProjectA
> 5. Error: Library1 won't be updated in .references folder
> Expected: newer version (in terms of file timestamp) of Library1 (if any) 
> should be copied into .references folder from local maven repo during Resync 
> Reference
> Issue exist in trunk r59731

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to