Bektor Posted June 22, 2016 Posted June 22, 2016 Hi, I'm wondering how I can get my mod workspace portable, so I can install it on a stick and work on my mod on any PC. Currently I've got there the problem that I have to execute the "setupDecompWorkspace" again and again and that is not on all PC's possible because some do not have the processing power or the incorrect java version etc..... I've got already eclipse installed on my USB stick. I hope someone can help me with this. Thx in advance. Bektor Quote Developer of Primeval Forest.
MCrafterzz Posted June 22, 2016 Posted June 22, 2016 Copy your whole mod folder that contains eclipse, run, scr and etc. Then open it with eclipse on a other computer when you have imported that code to the computer. I think this works, try Quote http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
Bektor Posted June 22, 2016 Author Posted June 22, 2016 You can move the gradle cache to your portable drive as well, by setting the GRADLE_USER_HOME environment variable. This should make it work. However: because some do not have the processing power or the incorrect java version etc..... If this is the case you won't be able to develop on those computers either. Well, I can do modding on most of those PCs, but I can't setup gradle there.... (Java settings are the problem there and I don't have access on these machines to change them so that I can install gradle OR the PC is so slow in decompiling and recompiling.... and when then the WLAN in for example school breaks away.....) How do I set the 'GRADLE_USER_HOME' variable? Quote Developer of Primeval Forest.
Bektor Posted June 22, 2016 Author Posted June 22, 2016 Well, a tutorial found on google told me that: "Select Window -> Preferences and type "Gradle" in filter box." Which basically results in nothing. And if you mean the environment variables from windows where I set the JAVA_HOME stuff, that would not work on the other PCs. Quote Developer of Primeval Forest.
Bektor Posted June 22, 2016 Author Posted June 22, 2016 Well, but this would not work on most other PCs. It would require admin rights which I don't have on those PCs... on one I even can't open the "Systemsteuerung". And it wasn't shown as I searched. Maybe your keywords were better then mine. Quote Developer of Primeval Forest.
Bektor Posted June 22, 2016 Author Posted June 22, 2016 I searched "windows set environment variable". However every user has their own environment variables, which do not require admin access. You can see how to set them here. Ah, ok. Didn't know about that one. But isn't there a other option, like a option to set it in one of the files from gradlew itself? Would not require me to setup these variable each time I'm starting the PC because someone thought they have to be resetted every start-up. Quote Developer of Primeval Forest.
Choonster Posted June 22, 2016 Posted June 22, 2016 In addition to the GUI, you can set environment variables from batch scripts (which could be used to run Gradle). These can either be permanent or only apply for the duration of the script (and only to processes started by the script). See this page for a better explanation and more details. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.