mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-10 16:46:54 +01:00
added os and arch to plugin filter
This commit is contained in:
@@ -106,6 +106,8 @@ public class PluginResource
|
||||
@Produces(MediaType.APPLICATION_XML)
|
||||
public Response getPlugins(
|
||||
@PathParam("version") String version,
|
||||
@QueryParam("os") String os,
|
||||
@QueryParam("arch") String arch,
|
||||
@DefaultValue("false") @QueryParam("snapshot") boolean snapshot)
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
@@ -115,7 +117,7 @@ public class PluginResource
|
||||
}
|
||||
|
||||
List<PluginInformation> plugins =
|
||||
backend.getPlugins(new DefaultPluginFilter(version, null, null,
|
||||
backend.getPlugins(new DefaultPluginFilter(version, os, arch,
|
||||
snapshot));
|
||||
PluginCenter pc = new PluginCenter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user