RAD 6.1 + System Properties for all projects





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm attempting to find how can I set a bunch of properties that could be accessed for any project. Let's say, that from any .java, I can do something like:



String var = System.getProperty(VAR_I_WANT);


Is it possible? I've found it for just one project, but I would like to do it for all, since all of them use it.










share|improve this question































    1















    I'm attempting to find how can I set a bunch of properties that could be accessed for any project. Let's say, that from any .java, I can do something like:



    String var = System.getProperty(VAR_I_WANT);


    Is it possible? I've found it for just one project, but I would like to do it for all, since all of them use it.










    share|improve this question



























      1












      1








      1








      I'm attempting to find how can I set a bunch of properties that could be accessed for any project. Let's say, that from any .java, I can do something like:



      String var = System.getProperty(VAR_I_WANT);


      Is it possible? I've found it for just one project, but I would like to do it for all, since all of them use it.










      share|improve this question
















      I'm attempting to find how can I set a bunch of properties that could be accessed for any project. Let's say, that from any .java, I can do something like:



      String var = System.getProperty(VAR_I_WANT);


      Is it possible? I've found it for just one project, but I would like to do it for all, since all of them use it.







      java ibm-rad






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '18 at 14:33









      Sneftel

      25.6k64582




      25.6k64582










      asked Jan 23 '15 at 14:53









      David CorreaDavid Correa

      6517




      6517
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The easiest way to do this to set them as environment variables outside of RAD (do this before launching RAD) either by changing them in the shell (or Advanced System Settings in Windows) or by establishing them in a script you use to launch RAD (or Eclipse or RSA). The latter is what we did at work to establish all of our common environment variables. This was the set-up we used for all of the 60+ developers that used RSA.



          Another, less recommended, approach is to edit the JRE definition (Window > Preferences > Java > Installed JREs) so that it has the System properties defined as VM arguments. For example, you would include -DVAR_I_WANT=myValue -DNEXT_VAR_I_WANT=myValue2 and so on. You have to be careful here that you don't use this VM for projects that should not have those variables defined. The easiest way around this would be to duplicate the JRE definition, change the copy, then use the new JRE in all of your projects.






          share|improve this answer
























          • I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

            – David Correa
            Jan 23 '15 at 17:44











          • For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

            – desilvai
            Jan 23 '15 at 19:38












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28112512%2frad-6-1-system-properties-for-all-projects%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The easiest way to do this to set them as environment variables outside of RAD (do this before launching RAD) either by changing them in the shell (or Advanced System Settings in Windows) or by establishing them in a script you use to launch RAD (or Eclipse or RSA). The latter is what we did at work to establish all of our common environment variables. This was the set-up we used for all of the 60+ developers that used RSA.



          Another, less recommended, approach is to edit the JRE definition (Window > Preferences > Java > Installed JREs) so that it has the System properties defined as VM arguments. For example, you would include -DVAR_I_WANT=myValue -DNEXT_VAR_I_WANT=myValue2 and so on. You have to be careful here that you don't use this VM for projects that should not have those variables defined. The easiest way around this would be to duplicate the JRE definition, change the copy, then use the new JRE in all of your projects.






          share|improve this answer
























          • I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

            – David Correa
            Jan 23 '15 at 17:44











          • For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

            – desilvai
            Jan 23 '15 at 19:38
















          0














          The easiest way to do this to set them as environment variables outside of RAD (do this before launching RAD) either by changing them in the shell (or Advanced System Settings in Windows) or by establishing them in a script you use to launch RAD (or Eclipse or RSA). The latter is what we did at work to establish all of our common environment variables. This was the set-up we used for all of the 60+ developers that used RSA.



          Another, less recommended, approach is to edit the JRE definition (Window > Preferences > Java > Installed JREs) so that it has the System properties defined as VM arguments. For example, you would include -DVAR_I_WANT=myValue -DNEXT_VAR_I_WANT=myValue2 and so on. You have to be careful here that you don't use this VM for projects that should not have those variables defined. The easiest way around this would be to duplicate the JRE definition, change the copy, then use the new JRE in all of your projects.






          share|improve this answer
























          • I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

            – David Correa
            Jan 23 '15 at 17:44











          • For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

            – desilvai
            Jan 23 '15 at 19:38














          0












          0








          0







          The easiest way to do this to set them as environment variables outside of RAD (do this before launching RAD) either by changing them in the shell (or Advanced System Settings in Windows) or by establishing them in a script you use to launch RAD (or Eclipse or RSA). The latter is what we did at work to establish all of our common environment variables. This was the set-up we used for all of the 60+ developers that used RSA.



          Another, less recommended, approach is to edit the JRE definition (Window > Preferences > Java > Installed JREs) so that it has the System properties defined as VM arguments. For example, you would include -DVAR_I_WANT=myValue -DNEXT_VAR_I_WANT=myValue2 and so on. You have to be careful here that you don't use this VM for projects that should not have those variables defined. The easiest way around this would be to duplicate the JRE definition, change the copy, then use the new JRE in all of your projects.






          share|improve this answer













          The easiest way to do this to set them as environment variables outside of RAD (do this before launching RAD) either by changing them in the shell (or Advanced System Settings in Windows) or by establishing them in a script you use to launch RAD (or Eclipse or RSA). The latter is what we did at work to establish all of our common environment variables. This was the set-up we used for all of the 60+ developers that used RSA.



          Another, less recommended, approach is to edit the JRE definition (Window > Preferences > Java > Installed JREs) so that it has the System properties defined as VM arguments. For example, you would include -DVAR_I_WANT=myValue -DNEXT_VAR_I_WANT=myValue2 and so on. You have to be careful here that you don't use this VM for projects that should not have those variables defined. The easiest way around this would be to duplicate the JRE definition, change the copy, then use the new JRE in all of your projects.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 23 '15 at 17:23









          desilvaidesilvai

          24316




          24316













          • I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

            – David Correa
            Jan 23 '15 at 17:44











          • For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

            – desilvai
            Jan 23 '15 at 19:38



















          • I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

            – David Correa
            Jan 23 '15 at 17:44











          • For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

            – desilvai
            Jan 23 '15 at 19:38

















          I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

          – David Correa
          Jan 23 '15 at 17:44





          I tried the Script option with a Batch file but how do you set the parameters so they can be used from RAD? Is it like -Dtest="true"?

          – David Correa
          Jan 23 '15 at 17:44













          For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

          – desilvai
          Jan 23 '15 at 19:38





          For the batch/script file option, they should be defined like any other environment variable. In Windows export VAR_I_WANT="myValue" in the .bat file. In bash, export VAR_I_WANT="myValue". The end of this script should start RAD/eclipse/RSA (they are all eclipse variants). If I remember RAD correctly, the command you execute is itself a script that just invokes eclipse with a given parameter to load the RAD plugins. You can either invoke this script from your script or you can copy the contents into your batch file.

          – desilvai
          Jan 23 '15 at 19:38




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28112512%2frad-6-1-system-properties-for-all-projects%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Guess what letter conforming each word

          Port of Spain

          Run scheduled task as local user group (not BUILTIN)