buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (BUILDR-488) artifact poms not reinstalled
Date Wed, 04 Aug 2010 05:49:16 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Boisvert reassigned BUILDR-488:
------------------------------------

    Assignee: Alex Boisvert

> artifact poms not reinstalled
> -----------------------------
>
>                 Key: BUILDR-488
>                 URL: https://issues.apache.org/jira/browse/BUILDR-488
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>
> Currently, artifact poms are never reinstalled if they already exist in local repository,
as illustrated by this failing spec,
> Index: packaging/artifact_spec.rb
> ===================================================================
> --- packaging/artifact_spec.rb	(revision 966696)
> +++ packaging/artifact_spec.rb	(working copy)
> @@ -608,6 +608,16 @@
>      install artifact(@spec).from(@file)
>      lambda { install.invoke }.should change { File.exist?(artifact(@spec).pom.to_s)
}.to(true)
>    end
> +
> +  it 'should reinstall POM alongside artifact' do
> +    pom = artifact(@spec).pom.to_s
> +    write @file
> +    write pom
> +    sleep 1
> +
> +    install artifact(@spec).from(@file)
> +    lambda { install.invoke }.should change { File.mtime(pom) }
> +  end
>  end

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message