From d9c9fe17099a083eb603a58bfa7babe0aa3336e0 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 28 Mar 2013 16:51:45 -0400
Subject: [PATCH] Added weblogic.xml to WAR for deployment on WebLogic (issue 199)

---
 releases.moxie                     |    2 ++
 build.xml                          |    1 +
 src/main/java/WEB-INF/weblogic.xml |    9 +++++++++
 3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/build.xml b/build.xml
index 4c92206..ab50333 100644
--- a/build.xml
+++ b/build.xml
@@ -279,6 +279,7 @@
 				<include name="LICENSE" />
 				<include name="NOTICE" />
 			</zipfileset>
+			<zipfileset prefix="WEB-INF" file="${project.compileOutputDirectory}/WEB-INF/weblogic.xml" />
 			<!-- Classes and classpath resources -->
 			<zipfileset prefix="WEB-INF/classes" dir="${project.compileOutputDirectory}">
 				<include name="**/*.class" />
diff --git a/releases.moxie b/releases.moxie
index 61e2153..b4a6021 100644
--- a/releases.moxie
+++ b/releases.moxie
@@ -12,6 +12,7 @@
 
     additions: 
 	 - Option to force client-side basic authentication instead of form-based authentication if web.authenticateViewPages=true (issue 222)
+	 - Added weblogic.xml to WAR for deployment on WebLogic (issue 199)
      - Optional periodic LDAP user and team pre-fetching & synchronization
      - Display name and version in Tomcat Manager
      - FogBugz post-receive hook script
@@ -20,6 +21,7 @@
 
     contributors:
 	- Christian Aistleitner
+	- Jay Meyer
 	- github/furinzen
     - github/mschaefers
     - github/thefake
diff --git a/src/main/java/WEB-INF/weblogic.xml b/src/main/java/WEB-INF/weblogic.xml
new file mode 100644
index 0000000..cd08111
--- /dev/null
+++ b/src/main/java/WEB-INF/weblogic.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
+    <wls:weblogic-version>12.1.1</wls:weblogic-version>
+    <wls:context-root>gitblit</wls:context-root>
+    <wls:container-descriptor>
+         <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
+         <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
+    </wls:container-descriptor>
+</wls:weblogic-web-app> 
\ No newline at end of file

--
Gitblit v1.9.1