Five Stars

How to pass on command line path to context file?

Talend Open Studio DI 6.2

Windows 7

 

How do I pass the context that points to my context parameter file from the command line?

I have a batch file that contains the line --context_param HomeDir="C:\home\context.csv" but is does not get read into the job before the job takes off.  All of the other command line contexts are passed without issue from the command line.  And the context value does get passed to the batch file without issue.

The context variable HomeDir exists in a context group. Would that be the problem?

 

Talend Job 

talend_1.PNGtalend_2.PNG

 

Batch Job (left off list of .jars from Talend)

java -Xms256M -Xmx1024M -cp .--context_param HomeDir=%1

1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: How to pass on command line path to context file?

The issue was I had " " around the path name that was being passed.  Remove quotes and all is fine.

1 REPLY
Five Stars

Re: How to pass on command line path to context file?

The issue was I had " " around the path name that was being passed.  Remove quotes and all is fine.