<div dir="ltr"><div>off top of my head i've got 2 methods....<br><br></div>1: 
Symlinking.  Put the war in a common space, like 
/usr/share/<app>/app.war and symlink based on the installed app (i
 don't think this is as pretty and requires potentially ugly logic)<br>
<br><div>2: Subpackaging.  Do a subpackage for each of the web servers 
that drops the package in their known directory pathing. (i guess you 
could argue there is some ugliness to this too)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 1:14 AM, Eran Ben Natan <span dir="ltr"><<a href="mailto:eranb@celltick.com" target="_blank">eranb@celltick.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I want to create an RPM that installs some .war file in a web server deploy directory.<u></u><u></u></p>
<p class="MsoNormal">My problem is that on the target server there can be a Jboss or Tomcat, and for each the directory where I should put the war file in different.<u></u><u></u></p>
<p class="MsoNormal">Is there a way to do this, without coping the file in the %post?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:rgb(16,16,16)">Eran Ben-Natan | R&D Infrastructure</span></b><span style="color:rgb(16,16,16)"></span><br></p></div></div></blockquote></div><br></div></div>