<div dir="ltr">On Mon, Jan 8, 2018 at 10:08 AM, David Lloyd <span dir="ltr">&lt;<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jan 8, 2018 at 9:41 AM, Brian Stansberry<br>
&lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt; wrote:<br>
&gt; On Mon, Jan 8, 2018 at 9:25 AM, David Lloyd &lt;<a href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>&gt; wrote:<br>
</span><span class="">&gt;&gt; I guess I wasn&#39;t too clear.  I didn&#39;t mean to say there was some other<br>
&gt;&gt; way to detect the type.  I meant to say that the type determination<br>
&gt;&gt; should be done *before* the overridden runtime name is applied, not<br>
&gt;&gt; after.<br>
&gt;<br>
&gt; I&#39;m confused now. :)<br>
<br>
</span>Isn&#39;t this entire thread about the ability to use the &quot;runtime-name&quot;<br>
attribute to override the actual file name of the JAR?  I&#39;m simply<br>
stating that the type probably should be based on the name of the<br>
content file, not the runtime-name.<br><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Gotcha.</div><div><br></div><div>We don&#39;t reliably know the name of the content file. For unmanaged content we should, but for managed content when the user adds the deployment they provide a stream or a url (or in theory a ModelType.BYTES ModelNode). It&#39;s possible to add an optional param to the add ops to pass in a suffix and then our standard clients could provide that if they are able to figure it out. But if that wasn&#39;t provided it would still be down to the suffix of the runtime name.</div><div><br></div><div>I also have a vague memory of some of the EE stuff (i.e. not our DUP code) being driven by suffixes. IOW even if our DUPs didn&#39;t need to get type info from the suffix, something in EE might. I don&#39;t recall the details of this though; something about default values of EE application and module names. Perhaps the DUPs could be adapted to deal with that, or perhaps not.</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Brian Stansberry<div>Manager, Senior Principal Software Engineer</div><div>Red Hat</div></div></div>
</div></div>