[JBoss JIRA] (SRAMP-580) Server-side autodetection of artifact types
by Brett Meyer (JIRA)
[ https://issues.jboss.org/browse/SRAMP-580?page=com.atlassian.jira.plugin.... ]
Brett Meyer updated SRAMP-580:
------------------------------
Git Pull Request: https://github.com/Governance/s-ramp/pull/511
> Server-side autodetection of artifact types
> -------------------------------------------
>
> Key: SRAMP-580
> URL: https://issues.jboss.org/browse/SRAMP-580
> Project: S-RAMP
> Issue Type: Feature Request
&…
[View More]gt; Reporter: Brett Meyer
> Assignee: Brett Meyer
>
> Currently, artifact type autodetection exists in multiple forms, nearly all of them client-side. The Maven Wagon inspects the deployment URL and makes assumptions. The UI checks file extensions.
> Instead, move a more complete set of artifact-inspection logic server-side. Some semblance of this already exists, to a certain degree. For example, ZipToSrampArchiveProvider#accept(ArtifactType) already exists, but is currently used only to determine which module should expand the artifact. But, the concept could be used to define the artifact type based on the new artifact. It would require a hierarchy of sorts where the most "specialized" integrations (Switchyard, RTGov, DTGov, etc.) are considered first. If none of those "accept" the artifact, the next tier (more generic types) are considered.
> The logic could be a mix of filename regex, archive inspection (ex: look for switchyard.xml), etc.
> This should completely replace all other types of client-side logic.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
[View Less]
10 years, 4 months