Archive-path

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(renamed tag to directive)
 
Line 1: Line 1:
 
[[Category:Configuration]]
 
[[Category:Configuration]]
  
The <archive-path> tag assigns a [[.war]] file for a <[[web-app]]> or a .jar file for a <[[host]]>.
+
The <archive-path> directive assigns a [[.war]] file for a <[[web-app]]> or a .jar file for a <[[host]]>.
  
 
If the web-app is deployed using <[[web-app-deploy]]>, the [[.war]] file will be assigned automatically.
 
If the web-app is deployed using <[[web-app-deploy]]>, the [[.war]] file will be assigned automatically.

Latest revision as of 20:20, 21 February 2006


The <archive-path> directive assigns a .war file for a <web-app> or a .jar file for a <host>.

If the web-app is deployed using <web-app-deploy>, the .war file will be assigned automatically.

example

In the following example, the "/foo" web-app uses /var/www/foo as its expanded <document-directory> and uses /var/www-deploy/foo.war as its source archive. Resin will expand any new version of foo.war into /var/www/foo.


<resin xmlns="http://caucho.com/ns/resin">
  ...
  <host id="">
    <web-app id="/foo" 
             document-directory="/var/www/foo"
             archive-path="/var/www-deploy/foo.war">
    </web-app>
  </host>
  ...
</resin>
Personal tools