Jump to content

Recommended Posts

Posted

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

Developer of Primeval Forest.

Posted

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?

Developer of Primeval Forest.

Posted

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.

Developer of Primeval Forest.

Posted

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. :P

Developer of Primeval Forest.

Posted

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.

Developer of Primeval Forest.

Posted

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.

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.