Revision 33213 trunk/frameworks/_fwAndami/src/com/iver/andami/Launcher.java
Launcher.java | ||
---|---|---|
141 | 141 |
import com.iver.andami.ui.theme.Theme; |
142 | 142 |
import com.iver.andami.ui.wizard.UnsavedDataPanel; |
143 | 143 |
import com.iver.utiles.DateTime; |
144 |
import com.iver.utiles.FileUtils; |
|
144 | 145 |
import com.iver.utiles.XMLEntity; |
145 | 146 |
import com.iver.utiles.xml.XMLEncodingUtils; |
146 | 147 |
import com.iver.utiles.xmlEntity.generate.XmlTag; |
... | ... | |
213 | 214 |
|
214 | 215 |
appName = args[0]; |
215 | 216 |
|
216 |
//Se crea el directorio de configuraci�n de la aplicaci�n |
|
217 | 217 |
appHomeDir = System.getProperty(args[0]+".home"); |
218 | 218 |
if (appHomeDir == null) |
219 | 219 |
appHomeDir = System.getProperty("user.home"); |
220 | 220 |
|
221 | 221 |
appHomeDir += File.separator + args[0] + File.separator; |
222 |
|
|
223 |
// If gvSIG.confDir exists, then it will override any other setting for |
|
224 |
// the configuration file path. |
|
225 |
// This is a Java property, which means it has to be passed to the |
|
226 |
// VM like this: java -DgvSIG.confDir=<path> |
|
227 |
String gvsig_conf_dir = System.getProperty("gvSIG.confDir"); |
|
228 |
if ( gvsig_conf_dir != null ) { |
|
229 |
gvsig_conf_dir = gvsig_conf_dir.trim(); |
|
230 |
if ( gvsig_conf_dir.length() > 0 ) { |
|
231 |
if ( gvsig_conf_dir.endsWith(File.separator) ) { |
|
232 |
appHomeDir = gvsig_conf_dir; |
|
233 |
} else { |
|
234 |
appHomeDir = gvsig_conf_dir + File.separator; |
|
235 |
} |
|
236 |
} |
|
237 |
} |
|
238 |
|
|
239 |
FileUtils.setAppHomeDir(appHomeDir); |
|
240 |
logger.debug("User settings will be stored in: " + appHomeDir ); |
|
241 |
|
|
222 | 242 |
File parent = new File( appHomeDir ); |
223 |
parent.mkdirs(); |
|
243 |
parent.mkdirs();
|
|
224 | 244 |
|
225 | 245 |
// CHANGE FROM CARTOLAB TO ALLOW MORE THAN 1 GVSIG INSTALLATION |
226 | 246 |
// WITH ITS OWN CONFIG FILE |
Also available in: Unified diff