You could do something like this:
repositories.getLayoutInfo(searches.artifactsBySha1(dependency.sha1).iterator()[0])
Naturally, assuming there is only one element in the search results is
wrong :)
Baruch.
--
Developer Advocate
JFrog Ltd
www.jfrog.com
+972544954353
@jbaruch
On Mon, Feb 4, 2013 at 5:43 PM, detelin <[email protected]> wrote:
> Thanks Baruch,
> I figured I could use Repositories.getLayoutInfo(RepoPath)
> <
> http://wiki.jfrog.org/javadocs/artifactory/latest/papi/org/artifactory/repo/Repositories.html#getLayoutInfo%28org.artifactory.repo.RepoPath%29
> >
> to obtain this information (instead of e.g. manually parsing the repo
> path),
> but still I cannot match the layout info against the Dependency, for
> example:
>
> The code above is invalid, as Dependency.getId() cannot be accessed. Is
> there any other way to obtain the FileLayoutInfo
> <
> http://wiki.jfrog.org/javadocs/artifactory/latest/papi/org/artifactory/fs/FileLayoutInfo.html
> >
> of a given Dependency
> <
> http://wiki.jfrog.org/javadocs/artifactory/latest/papi/org/artifactory/build/Dependency.html
> >
> ?
>
> Thanks,
> Detelin
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Why-is-org-artifactory-build-Dependecy-getId-private-tp7578552p7578554.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users