<?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 Pass filename to tFileInputDelimited from java in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276257#M52401</link>
    <description>I call a Job from java, that must open a .csv file and do something with the content... 
&lt;BR /&gt;I need to be able to configure the name and path of the file to read. 
&lt;BR /&gt;How do I do that? 
&lt;BR /&gt;I would prefer to be able to set a parameter in a .properties file or to call runJob(...) from java with the filename as a parameter. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Morten</description>
    <pubDate>Sat, 16 Nov 2024 14:20:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:20:57Z</dc:date>
    <item>
      <title>Pass filename to tFileInputDelimited from java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276257#M52401</link>
      <description>I call a Job from java, that must open a .csv file and do something with the content... 
&lt;BR /&gt;I need to be able to configure the name and path of the file to read. 
&lt;BR /&gt;How do I do that? 
&lt;BR /&gt;I would prefer to be able to set a parameter in a .properties file or to call runJob(...) from java with the filename as a parameter. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Morten</description>
      <pubDate>Sat, 16 Nov 2024 14:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276257#M52401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename to tFileInputDelimited from java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276258#M52402</link>
      <description>You can use context variables for nearly every setting. This contexts and their variables can be accessed and changed in a ContextName.properties file in your exported job. 
&lt;BR /&gt;To set and use context variables, just press F5 in a Talend settings field or set them directly via contexts tab in the lower part of the Talend window. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Theo</description>
      <pubDate>Wed, 04 Jun 2008 16:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276258#M52402</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-06-04T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename to tFileInputDelimited from java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276259#M52403</link>
      <description>Thanks, that clarified quite a bit.
&lt;BR /&gt;Now I can create the context variable and use it from Talend.
&lt;BR /&gt;I can export the job script to a zip file containing libraries, the job in a .jar file.
&lt;BR /&gt;Now I want to be able to change the properties, in the job, that is started from an existing application. This means that I need to be able to edit the properties file and use that.
&lt;BR /&gt;The .properties file is a part of the .jar file, so editing that and using the .jar file afterwards would require that i unzip the jar, edit it and jar it again.
&lt;BR /&gt;I would like to be able to control it from java, like setting the context by passing the context to the runJob method:
&lt;BR /&gt;runJob("--context=Production");
&lt;BR /&gt;and refer to a Production.properties file somewhere in the classpath.
&lt;BR /&gt;Where should I put the Production.properties file if the described way of using the job works?</description>
      <pubDate>Fri, 06 Jun 2008 11:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276259#M52403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-06T11:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename to tFileInputDelimited from java</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276260#M52404</link>
      <description>.properties file have to be stored in the classpath of YOUR java classes at runtime.&lt;BR /&gt;HTH,</description>
      <pubDate>Mon, 09 Jun 2008 23:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-to-tFileInputDelimited-from-java/m-p/2276260#M52404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-09T23:53:40Z</dc:date>
    </item>
  </channel>
</rss>

