Revision 32877 trunk/frameworks/_fwAndami/src/com/iver/andami/Launcher.java

View differences:

Launcher.java
222 222
    		File parent = new File( appHomeDir );
223 223
    		parent.mkdirs();
224 224

  
225
    		andamiConfigPath = appHomeDir + "andami-config.xml";
226
    		pluginsPersistencePath = appHomeDir +
227
    		"plugins-persistence.xml";
225
    		// CHANGE FROM CARTOLAB TO ALLOW MORE THAN 1 GVSIG INSTALLATION
226
    		// WITH ITS OWN CONFIG FILE
227
    		andamiConfigPath = System.getProperty("user.dir") +  File.separator + "andami-config.xml";
228
    		pluginsPersistencePath = System.getProperty("user.dir") + File.separator + "plugins-persistence.xml";
229
    		
230
//    		andamiConfigPath = appHomeDir + "andami-config.xml";
231
//    		pluginsPersistencePath = appHomeDir + "plugins-persistence.xml";
228 232

  
233
    		// END OF CARTOLAB CHANGE
234
    		
235
    		
236
    		
229 237
    		// Configurar el log4j
230 238
    		Launcher.class.getClassLoader()
231 239
			.getResource(".");
232 240
    		PropertyConfigurator.configure("log4j.properties");
233 241

  
234 242
    		PatternLayout l = new PatternLayout("%p %t %C - %m%n");
243

  
244
    		// CONTRIBUCI?N FROM CARTOLAB
235 245
    		RollingFileAppender fa = new RollingFileAppender(l,
236
    				appHomeDir + args[0] + ".log", false);
246
    				System.getProperty("user.dir") + File.separator + args[0] + ".log", false);
247
    		
248
//    		RollingFileAppender fa = new RollingFileAppender(l,
249
//    				appHomeDir + args[0] + ".log", false);
250
    		// END CONTRIBUTION FROM CARTOLAB (PABLO XANXIAO)
237 251
    		fa.setMaxFileSize("512KB");
238 252
    		fa.setMaxBackupIndex(3);
239 253
    		Logger.getRootLogger().addAppender(fa);

Also available in: Unified diff