Commandline compiler question
I have a question about the mobl commandline compiler moblc.jar.
My eclipse mobl plugin is located in mobl_0.2.9.201107081446, which should mean that http://hydra.nixos.org/build/1153417 would be the correct version of moblc.jar to make sure the commandline compiler generates the exact same code as my plugin does. Is that correct?
Also, now that I assume I found the correct version of moblc.jar, how do I obtain it? It is no longer downloadable form the buildserver.
Do I need to clone a git repo, switch to an old revision and build it myself? If so, which repo/revision should I use?
VolkerSubmitted by Volker on 26 March 2012 at 11:33
it is not sure those versions are of the same moment, even so since it is not downloadable this will doesn’t make to much sense. The commandline compiler has slightly different behaviour but will be comparable to the release build option of the eclipse version.
the easiest for you is to download the newest version and look if it works otherwise the only other option is indeed to fork the repro from a revision in that period
I figured they would generate the same code since the timestamp of my mobl plugin folder mobl_0.2.9.201107081446 matched the timestamp of the moblc.jar build with only a 44 second difference (2011-07-08 14:45:16).
The reason I’m looking for a matching commandline compiler is that the latest build generates html with a script tag for jquery-1.7.1.min.js, but jquery-1.4-min.js is included in the www/js/ folder instead of jquery-1.7.1.min.js.
I’m trying to compile the mobl code on a server to which I have no connection with graphics, so I can’t use the Eclipse plugin there.
I’ll look into the git repo revision thing.
Thanks for the reply.
I just realized the jquery version in the www/js folder comes from our fork of the mobl-lib, so adding jquery-1.7.1.min.js to it should fix the problem.
yea this could fix the problem, however i’m currently trying this update of jquery(therefor this is the case) i’m not sure if this will stay, it delivers a bug in the eclipse compiler, wich doesn’t give any errors. However for commandline there should be no problem
if you look into a bit older builds of moblc.jar( like a 1 to 2 weeks ago you should find one with just the 1.4 in the compiler
I ended up building moblc.jar from the mobl/mobl repo at commit 11a4ceff75cac2dd0c193d9703729f2d0772aed8.
This does indeed seem to be the same compiler as used by the eclipse plugin at http://mobl-lang.org/update.
It was a lot easier than I expected.
In case anyone else might ever be interested, here is what I did:
cd /home/user/git (or wherever you want your mobl repo)
git clone email@example.com:mobl/mobl.git
cd mobl (or whatever directory you cloned mobl/mobl into)
git reset –hard 11a4ceff75cac2dd0c193d9703729f2d0772aed8
open the mobl project in eclipse (and read the README)
run the moblc-release target from build.main.xml
(These last two steps should be possible without eclipse as well, e.g. by running the commandline ant)
And the moblc.jar file will be created in the directory where you cloned mobl/mobl into.
(/home/user/git/mobl/moblc.jar in my example)
Thanks for the quick replies and the help, the issue is resolved.
Log in to post comments