Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.9.4] [UNSOLVED] Portable Forge Workspace


Bektor
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

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

If you don't know what you are talking about, please shut up. This might be rude, but you are not helping by providing incorrect advice.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 Share



×
×
  • Create New...

Important Information

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