<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] How to set the Config folder path at runtime? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282787#M56883</link>
    <description>Hey can anyone out here tell me how to pass context variable value to .sh file
&lt;BR /&gt;I mean I exported my job for UNIX platform and calling the same from my Java code.
&lt;BR /&gt;It is unable to load Command Line Input... 
&lt;BR /&gt;Plz help.. Its urgent..</description>
    <pubDate>Wed, 01 Jun 2011 06:19:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-01T06:19:47Z</dc:date>
    <item>
      <title>[resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282780#M56876</link>
      <description>Hi Shong,
&lt;BR /&gt; While exporting the job, the source code containing the hard coded value of config folder path. How to pass the path value as a command line argument?
&lt;BR /&gt;Code Snippet:
&lt;BR /&gt;-----------------
&lt;BR /&gt;Instead of this one:
&lt;BR /&gt;java.io.InputStream inContext = Context.class.getClassLoader()
&lt;BR /&gt; .getResourceAsStream(
&lt;BR /&gt; "config/context_0_1/contexts/" + contextStr
&lt;BR /&gt; + ".properties");
&lt;BR /&gt;i need the following oprtions:
&lt;BR /&gt;java.io.InputStream inContext = Context.class.getClassLoader()
&lt;BR /&gt; .getResourceAsStream(
&lt;BR /&gt; contextStr+ ".properties");
&lt;BR /&gt;or
&lt;BR /&gt;java.io.InputStream inContext = Context.class.getClassLoader()
&lt;BR /&gt; .getResourceAsStream(
&lt;BR /&gt; configpath + contextStr
&lt;BR /&gt; + ".properties");
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance...</description>
      <pubDate>Sat, 16 Nov 2024 12:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282780#M56876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282781#M56877</link>
      <description>Hi, 
&lt;BR /&gt;You can set up this path value as a context, ie. context.path. 
&lt;BR /&gt;When you execute the jar file, you can directly override a context variable from a commandline using --context-param path=mypath</description>
      <pubDate>Mon, 09 May 2011 12:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282781#M56877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-09T12:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282782#M56878</link>
      <description>Hi Shong,
&lt;BR /&gt; I thought that you didn't understand my scenario. But i got your point. My scenario is to use the context variables in Context file. But path of the context file path should be passed as command line argument. It contains at the executable batch/shell file level.
&lt;BR /&gt;instead of this one:
&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: config.sqljdbc_0_1.SQLJDBC --context=Default $*
&lt;BR /&gt;i need the following one
&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: config.sqljdbc_0_1.SQLJDBC --context=&amp;lt;filepath&amp;gt;/Default $*
&lt;BR /&gt;Because the source code cointains the hard coded context path as mentioned in the previous thread.
&lt;BR /&gt; please see the screen shot below.</description>
      <pubDate>Mon, 09 May 2011 13:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282782#M56878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-09T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282783#M56879</link>
      <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;i need the following one&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: config.sqljdbc_0_1.SQLJDBC --context=&amp;lt;filepath&amp;gt;/Default $*&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;It is impossible, the path of .properties is fixed now. You can report a new feature on our bugtracker.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 09 May 2011 16:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282783#M56879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-09T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282784#M56880</link>
      <description>If you use tContextLoad or implicit context loading in your jobs rather than the context group values preset within the studio you can specify the location of the file containing your context values at run-time. Within the job, set the location of the file to itself be a context variable and then set that location at run-time e.g. 
&lt;PRE&gt;java -Xms256M -Xmx1024M -cp classpath.jar: config.sqljdbc_0_1.SQLJDBC --context_param contextfile="C:/my context files/contextfileA.txt"&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2011 01:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282784#M56880</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-05-10T01:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282785#M56881</link>
      <description>I have used tContextLoad but no luck i can't able to specify the property file i.e still java code containing the  hard code of properties path Can u plz send me some screen shots</description>
      <pubDate>Wed, 11 May 2011 13:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282785#M56881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-11T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282786#M56882</link>
      <description>In the screenprint you can see that the Default values of the context have been overridden in running the job by those from c:\program files\vars.txt. The actual location of vars.txt is passed to the job from the command line.</description>
      <pubDate>Fri, 13 May 2011 12:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282786#M56882</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-05-13T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282787#M56883</link>
      <description>Hey can anyone out here tell me how to pass context variable value to .sh file
&lt;BR /&gt;I mean I exported my job for UNIX platform and calling the same from my Java code.
&lt;BR /&gt;It is unable to load Command Line Input... 
&lt;BR /&gt;Plz help.. Its urgent..</description>
      <pubDate>Wed, 01 Jun 2011 06:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282787#M56883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-01T06:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282788#M56884</link>
      <description>Hello alevy,&lt;BR /&gt;                        Thanks for your solutions. It works for me..Problem resolved.</description>
      <pubDate>Wed, 08 Jun 2011 13:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282788#M56884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-08T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to set the Config folder path at runtime?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282789#M56885</link>
      <description>Guys, You look at the below mentioned article: 
&lt;BR /&gt; 
&lt;A href="http://www.vikramtakkar.com/2013/04/how-to-pass-context-parameters-to.html" target="_blank" rel="nofollow noopener noreferrer"&gt;How to pass the Parameters and context variables through command line&lt;/A&gt; 
&lt;BR /&gt;You can also go through following links to know more about context variables 
&lt;BR /&gt; 
&lt;A href="http://www.vikramtakkar.com/2013/01/understand-context-variables-with.html" target="_blank" rel="nofollow noopener noreferrer"&gt;1. Understand Context variables and define their value inside the Job.&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://www.vikramtakkar.com/2013/01/understand-context-variables-with_20.html" target="_blank" rel="nofollow noopener noreferrer"&gt;2. Define context variables in Repository, which can be made available to multiple jobs.&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://www.vikramtakkar.com/2013/01/understand-context-variables-with_26.html" target="_blank" rel="nofollow noopener noreferrer"&gt;3. Populate the values of context variables from file. (tContextLoad)&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://www.vikramtakkar.com/2013/03/pass-parameters-and-variables-to-child.html" target="_blank" rel="nofollow noopener noreferrer"&gt;4. Pass context variables or parameters from Parent Job to Child Job.&lt;/A&gt;</description>
      <pubDate>Fri, 26 Apr 2013 20:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-set-the-Config-folder-path-at-runtime/m-p/2282789#M56885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-26T20:03:09Z</dc:date>
    </item>
  </channel>
</rss>

