Revision: 14876
          http://gate.svn.sourceforge.net/gate/?rev=14876&view=rev
Author:   ian_roberts
Date:     2012-01-04 10:54:28 +0000 (Wed, 04 Jan 2012)
Log Message:
-----------
Support for Gate.runInSandbox in the Spring initializer.

Modified Paths:
--------------
    gate/trunk/src/gate/util/spring/Init.java
    gate/trunk/src/gate/util/spring/xml/gate-spring.xsd

Modified: gate/trunk/src/gate/util/spring/Init.java
===================================================================
--- gate/trunk/src/gate/util/spring/Init.java   2012-01-04 02:29:00 UTC (rev 
14875)
+++ gate/trunk/src/gate/util/spring/Init.java   2012-01-04 10:54:28 UTC (rev 
14876)
@@ -69,6 +69,14 @@
  * is a list of <code>Resource</code>s that will be loaded as GATE
  * plugins after GATE is initialised.
  * </p>
+ *
+ * <p>
+ * Alternatively, instead of specifying <code>gate-home</code>,
+ * <code>plugins-home</code> and the configuration files, specifying
+ * <code>run-in-sandbox="true"</code> will tell GATE to initialize without
+ * reading any configuration files.  See {@link gate.Gate#runInSandbox} for
+ * details.
+ * </p>
  * 
  * <p>
  * As well as any plugins specified using <code>preload-plugins</code>,
@@ -138,6 +146,11 @@
       Gate.setBuiltinCreoleDir(builtinCreoleDir.getURL());
   }
 
+  public void setRunInSandbox(boolean runInSandbox) {
+    if(!Gate.isInitialised())
+      Gate.runInSandbox(runInSandbox);
+  }
+
   public void setPreloadPlugins(List<Resource> plugins) {
     this.plugins = plugins;
   }

Modified: gate/trunk/src/gate/util/spring/xml/gate-spring.xsd
===================================================================
--- gate/trunk/src/gate/util/spring/xml/gate-spring.xsd 2012-01-04 02:29:00 UTC 
(rev 14875)
+++ gate/trunk/src/gate/util/spring/xml/gate-spring.xsd 2012-01-04 10:54:28 UTC 
(rev 14876)
@@ -44,6 +44,7 @@
           <xsd:attribute name="site-config-file" type="xsd:string" 
use="optional" />
           <xsd:attribute name="user-config-file" type="xsd:string" 
use="optional" />
           <xsd:attribute name="builtin-creole-dir" type="xsd:string" 
use="optional" />
+          <xsd:attribute name="run-in-sandbox" type="xsd:boolean" 
use="optional" />
         </xsd:extension>
       </xsd:complexContent>
     </xsd:complexType>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to