yatsek / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

--id parameter is ignored for rms root dir #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run any midlet with --id emulatorid

What is the expected output? What do you see instead?

Microemu stores RMS in .microemulator/emulatorid

Actual: microemu stores in .microemulator/ root dir regardless of the value of 
the --id parameter.

What version of the product are you using? On what operating system?

trunk, mac OSX

Please provide any additional information below.

It seems that there is a race condition in Config

    public static File getConfigPath() {
        if (meHome == null) {
            meHome = initMEHomePath();
        }
        return meHome;
    }

This is first called from Main.java constructor. Only after this the parameters 
are interpreted at which time meHome has already been set and the emulator id 
does not affect the root directory anymore.

Original issue reported on code.google.com by rbur...@gmail.com on 11 Nov 2010 at 11:43

GoogleCodeExporter commented 8 years ago
only happens when you launch with the following commandline

java -jar microemulator.jar -cp ... com.my.mymidlet --propertiesjad 
mymidlet.jad --id myemuid

Original comment by rbur...@gmail.com on 11 Nov 2010 at 12:27