<?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] Execution of .jar with specific parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353788#M119899</link>
    <description>&lt;BLOCKQUOTE&gt;
  cterenzi wrote: 
 &lt;BR /&gt;You want a context variable. &amp;nbsp;Within your Talend job, click on the Contexts tab and add a variable named fileName. &amp;nbsp;Set the filemask in your tFileList to 
 &lt;I&gt;context.fileName.&lt;/I&gt; 
 &lt;BR /&gt; 
 &lt;BR /&gt;Edit your .sh file to add 
 &lt;I&gt;--context_param fileName="some.fil"&lt;/I&gt;&amp;nbsp; 
 &lt;BR /&gt; 
 &lt;BR /&gt;You may not need to edit the .sh file, actually. &amp;nbsp;I think it would be ok to add the --context_param when you call the .sh 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thank you very much for your help. It works.</description>
    <pubDate>Fri, 24 Mar 2017 01:54:39 GMT</pubDate>
    <dc:creator>Dazbellboy</dc:creator>
    <dc:date>2017-03-24T01:54:39Z</dc:date>
    <item>
      <title>[resolved] Execution of .jar with specific parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353786#M119897</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;I have a job made in Talend. The job has a tFileList and it iterates on a tFileInputPositional. The tFileInputPositional has the value of&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGSR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147247iEBFF73E0E9121316/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGSR.png" alt="0683p000009MGSR.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;And the tFileList has the filemask of "*.FIL"&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGSW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132720iDE78F3E158228016/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGSW.png" alt="0683p000009MGSW.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I need to execute the .jar generated after the build job by the .sh... but I need to send the filemask value of the tFileList in that .sh. The .sh content is this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGSb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133117i9582640C1E31A4D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGSb.png" alt="0683p000009MGSb.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;But I need add some value like "-fileName=some.FIL" to replace the file mask of the tFileList.&lt;BR /&gt;Can I modify the job before build it in order to configure the filemask of the tFileList to be passed as a parameter?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 18:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353786#M119897</guid>
      <dc:creator>Dazbellboy</dc:creator>
      <dc:date>2017-03-23T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Execution of .jar with specific parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353787#M119898</link>
      <description>You want a context variable. &amp;nbsp;Within your Talend job, click on the Contexts tab and add a variable named fileName. &amp;nbsp;Set the filemask in your tFileList to 
&lt;I&gt;context.fileName.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Edit your .sh file to add 
&lt;I&gt;--context_param fileName="some.fil"&lt;/I&gt;&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;You may not need to edit the .sh file, actually. &amp;nbsp;I think it would be ok to add the --context_param when you call the .sh</description>
      <pubDate>Thu, 23 Mar 2017 19:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353787#M119898</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-23T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Execution of .jar with specific parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353788#M119899</link>
      <description>&lt;BLOCKQUOTE&gt;
  cterenzi wrote: 
 &lt;BR /&gt;You want a context variable. &amp;nbsp;Within your Talend job, click on the Contexts tab and add a variable named fileName. &amp;nbsp;Set the filemask in your tFileList to 
 &lt;I&gt;context.fileName.&lt;/I&gt; 
 &lt;BR /&gt; 
 &lt;BR /&gt;Edit your .sh file to add 
 &lt;I&gt;--context_param fileName="some.fil"&lt;/I&gt;&amp;nbsp; 
 &lt;BR /&gt; 
 &lt;BR /&gt;You may not need to edit the .sh file, actually. &amp;nbsp;I think it would be ok to add the --context_param when you call the .sh 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thank you very much for your help. It works.</description>
      <pubDate>Fri, 24 Mar 2017 01:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execution-of-jar-with-specific-parameters/m-p/2353788#M119899</guid>
      <dc:creator>Dazbellboy</dc:creator>
      <dc:date>2017-03-24T01:54:39Z</dc:date>
    </item>
  </channel>
</rss>

