Commits

Ángel L. García committed 29b1bec Merge

Merged sdorra/scm-manager into default

Comments (0)

Files changed (3)

scm-server/src/main/assembly/WORKDIR.txt

+This directory is the temp directory for the SCM-Manager webapp.
+
+Further reading on jetty temp directories:
+
+- http://wiki.eclipse.org/Jetty/Reference/Temporary_Directories

scm-server/src/main/assembly/scm-server-app.xml

       <destName>logging.xml</destName>
     </file>
     
+    <!--
+      create work directory, see
+      https://bitbucket.org/sdorra/scm-manager/issue/464/scmserver-login-page-fails-to-render
+    -->
+    
+    <file>
+      <source>src/main/assembly/WORKDIR.txt</source>
+      <outputDirectory>work</outputDirectory>
+    </file>
+    
   </files>
   
 </assembly>

scm-server/src/main/conf/server-config.xml

       <Arg>org.eclipse.jetty.servlet.Default.dirAllowed</Arg>
       <Arg>false</Arg>
     </Call>
+    <Set name="tempDirectory">
+      <SystemProperty name="basedir" default="."/>/work
+    </Set>
   </New>
 
   <New id="docroot" class="org.eclipse.jetty.webapp.WebAppContext">
         </Arg>
       </New>
     </Set>
+    <Set name="tempDirectory">
+      <SystemProperty name="basedir" default="."/>/work
+    </Set>
   </New>
   
   <Set name="handler">