Changeset 4122
- Timestamp:
- Feb 4, 2008, 1:14:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r4113 r4122 127 127 specified or if the path is null nothing is done. If the given path is 128 128 a subpath to the <code>plugins.dir</code> path the common path is replaced 129 with <code>%plugins.dir%</code> For example: 129 with <code>%plugins.dir%</code> and all path separator characters are 130 converted to '/'. For example: 130 131 <pre class="code>" 131 132 path = /usr/local/base/plugins/myplugin.jar 132 133 plugins.dir = /usr/local/base/plugins 133 134 relative path = %plugins.dir%/myplugin.jar 135 136 //On windows 137 path = c:\base\plugins\mine\myplugin.jar 138 plugins.dir = c:\base\plugins 139 relative path = %plugins.dir%/mine/myplugin.jar 134 140 </pre> 135 141 … … 146 152 if (path.startsWith(pluginsDir)) 147 153 { 148 path = "%plugins.dir%" + path.substring(pluginsDir.length()); 154 path = "%plugins.dir%" + path.substring(pluginsDir.length()). 155 replace(java.io.File.separatorChar, '/'); 149 156 } 150 157 return path; … … 166 173 if (path.startsWith("%plugins.dir%")) 167 174 { 168 path = pluginsDir + path.substring("%plugins.dir%".length()); 175 path = pluginsDir + path.substring("%plugins.dir%".length()). 176 replace('/', java.io.File.separatorChar); 169 177 } 170 178 return path;
Note: See TracChangeset
for help on using the changeset viewer.