Revision 95 org.gvsig.jvmpreferences/trunk/org.gvsig.jvmpreferences.native/org.gvsig.jvmpreferences.native.lib/org.gvsig.jvmpreferences.native.lib.impl.linux/src/main/java/org/gvsig/jvmpreferences/nativeprefs/MemoryPreferencesLinux.java

View differences:

MemoryPreferencesLinux.java
31 31
 * This class abstracts the complexity of reading/storing
32 32
 * memory preferences for different operating systems.
33 33
 * Linux implementation
34
 * 
34
 *
35 35
 * @author Cesar Martinez Izquierdo
36 36
 *
37 37
 */
38
public class MemoryPreferencesLinux extends BaseMemoryPreferences { 
39
	public static final String CONFIG_FILE_LINUX="gvSIG.sh";
38
public class MemoryPreferencesLinux extends BaseMemoryPreferences {
39
	//public static final String CONFIG_FILE_LINUX="gvSIG.sh";
40
    public static final String CONFIG_FILE_LINUX="gvSIG.config";
40 41
	private File configFile;
41 42

  
42 43
	public MemoryPreferencesLinux() {
......
50 51

  
51 52
	@Override
52 53
	protected String getMaxMemoryRegexp() {
53
		return "\\s*export\\s+GVSIG\\_MAX\\_MEM\\s*\\=\\s*(\\d+)([mMkKgG]?).*";
54
		//return "\\s*export\\s+GVSIG\\_MAX\\_MEM\\s*\\=\\s*(\\d+)([mMkKgG]?).*";
55
	    return "\\s*GVSIG\\_MAX\\_MEM\\s*\\=\\s*(\\d+)([mMkKgG]?).*";
54 56
	}
55 57

  
56 58
	@Override
57 59
	protected String getEncodedMaxMemoryLine(int maximumMemory) {
58
		return "export GVSIG_MAX_MEM="+maximumMemory+"M";
60
		//return "export GVSIG_MAX_MEM="+maximumMemory+"M";
61
	    return "GVSIG_MAX_MEM="+maximumMemory+"M";
59 62
	}
60 63

  
61 64
}

Also available in: Unified diff