Changeset 5608
- Timestamp:
- Apr 15, 2011, 10:42:40 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/dist/base.config
r5570 r5608 183 183 184 184 185 # ======================= 186 # Plug-ins and extensions 187 # ======================= 188 189 # The path to the directory where external plugins are installed 190 plugins.dir=/usr/local/base2/plugins 191 192 # Set this flag to disable all external extensions 193 extensions.disabled = false 194 195 185 196 # =============== 186 197 # General section … … 189 200 # The path to the directory where uploaded files are stored 190 201 userfiles = /usr/local/base2/files 191 192 # The path to the directory where external plugins are installed193 plugins.dir=/usr/local/base2/plugins194 202 195 203 # Number of minutes to keep permission information for the logged -
trunk/config/dist/log4j.properties
r5416 r5608 40 40 41 41 ### Extensions API 42 #log4j.logger.net.sf.basedb.util.extensions=debug 42 43 #log4j.logger.net.sf.basedb.clients.web.extensions=debug 43 44 … … 45 46 #log4j.logger.net.sf.basedb.util.overview=debug 46 47 47 # -----------------48 # Migration loggers49 # -----------------50 #log4j.logger.net.sf.basedb.clients.migrate=warn51 log4j.logger.net.sf.basedb.clients.migrate=warn52 48 53 49 # ----------------- -
trunk/src/core/net/sf/basedb/core/Application.java
r5607 r5608 561 561 xtManager.addURI(Application.class.getResource("/core-extensions.xml").toURI()); 562 562 563 // Add plugins directory to the manager 564 xtManager.addDirectory(pluginsDirectory); 563 if (!Config.getBoolean("extensions.disabled")) 564 { 565 // Add plugins directory to the manager (unless disabled) 566 xtManager.addDirectory(pluginsDirectory); 567 } 565 568 566 569 // Register and load core extensions -
trunk/src/test/TestUtil.java
r5595 r5608 27 27 import net.sf.basedb.core.Item; 28 28 import net.sf.basedb.core.Permission; 29 import net.sf.basedb.core.Version; 29 30 import net.sf.basedb.util.MD5; 30 31 … … 152 153 { 153 154 Config.setProperty("plugins.dir", System.getProperty("user.dir")); 155 Config.setProperty("extensions.disabled", "true"); 154 156 showDbInfo(); 155 157 Application.start(false); … … 285 287 String message = 286 288 "--System information-----------------------------\n" + 287 "BASE : " + Application.getMajorVersion() + "." + 288 Application.getMinorVersion() + "." + 289 Application.getMaintenanceVersion() + "\n" + 289 "BASE : " + Version.getMajor() + "." + 290 Version.getMinor() + "." + Version.getMaintenance() + Version.getSuffix() + "\n" + 290 291 "Database : " + database + "\n" + 291 292 "Dialect : " + Config.getString("db.dialect") + "\n" +
Note: See TracChangeset
for help on using the changeset viewer.