#1 2011-11-23 11:50:40

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

Generation Engine question

Hi,

I've been studying the usage of the command line interface to export jobs from outside of studio and administrative console. This all works pretty well.

However, I am facing another problem right now. To be able to confirm with our internal procedures, I'm required to deliver source files instead of compiled classes in a zip.

Is there any way I can use the command line interface to "just" generate the java source files that can later be compiled to be the job?

I hope anyone can help me with this.

Best regards,
Arno

Last edited by avdbrink (2011-11-23 11:51:44)

Offline

#2 2011-11-26 03:25:31

shong
Talend team
Registered: 2007-08-29
Posts: 10305
Website

Re: Generation Engine question

Hi Arno
No, the source Java file is included in the job script with other files, such as the required lib. So, you can use the 'exportJob' command to export the job script, but there is no a command used to only generate the source Java file.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2011-11-30 12:50:41

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

Re: Generation Engine question

Hi Shong,

Thanks for your reply. Although it wasn't the answer I was hoping for wink

Do you happen to know if there is an in depth manual of the command line interface? The only thing I have found were some tutorial-like samples, but no reference of possible command line parameters for example.

Best regards,
Arno

Offline

#4 2011-12-01 03:57:23

shong
Talend team
Registered: 2007-08-29
Posts: 10305
Website

Re: Generation Engine question

Hi
No yet, but I think there should be one in future to introduce each command with demo.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2011-12-12 02:29:37

lltalen
New member
Registered: 2011-12-12
Posts: 1

Re: Generation Engine question

Thanks for your reply. Although it wasn't the answer I was hoping for

Do you happen to know if there is an in depth manual of the command line interface? The only thing I have found were some tutorial-like samples, but no reference of possible command line parameters for example.






____________________________________

uggs sale uk  bailey button uggs  ugg bailey button 5803

Offline

#6 2011-12-15 18:06:10

nickd_nwea
Member
Registered: 2009-05-28
Posts: 24

Re: Generation Engine question

This is from an older version but it should still work...


+--------------------------------------------------------------------------------------------------+
|Talend Commandline Plugin :                                                                       |
| * arguments can be surrounded by (") or (') characters                                           |
| * the semi-colon ( ; ) character can be used to separate commands from each other                  |
| * special characters ( space \ " ' ; ) can be escaped using the character (\)                      |
+--------------------------------------------------------------------------------------------------+
|Unexpected exit while processing                                                                  |
|stopServer|help|helpFilter|showVersion|listCommand|listExecutionServer|listJob|listProject|initLoc|
|al|initRemote|logoffProject|logonProject|createProject|executeAllJob|exportAllJob|executeJob|execu|
|teJobOnServer|exportJob|getCommandStatus|importItems|exportItems|deleteItems|changeVersion|changeS|
|tatus|importDatabaseMetadata|importDelimitedMetadata                                              |
+--------------------------------------------------------------------------------------------------+
|Usage:                                                                                            |
| [stopServer -f help helpFilter showVersion listCommand -a listExecutionServerlistJob             |
|listProject initLocal initRemote <adminUrl> logoffProject logonProject -pn <technical name>|-ul   |
|<login>|-up <password>|-gt createProject -pn <technical name>|-pd <description>|-pl <language     |
|(java/perl)>|-pa <author login> executeAllJob -i <path>|-jc <context name>|-jcp <key=value1>      |
|[<key=value2> ...]|-jrdd <path>|-jt <time (in sec)>|-jactc exportAllJob -dd <path>|-jc <context   |
|name>|-jactc executeJob <jobName> -i <path>|-jv <version>|-jc <context name>|-jcp <key=value1>    |
|[<key=value2> ...]|-jrdd <path>|-jt <time (in sec)>|-jactc executeJobOnServer <jobName> -jv       |
|<version>|-jc <context name>|-jcp <key=value1> [<key=value2> ...]|-jactc|-es <name> exportJob     |
|<jobName> -dd <path>|-jv <version>|-jc <context name>|-af <filename>|-jactc getCommandStatus      |
|<commandId> importItems <source (dir|.zip)> -if <filterExpr>|-o exportItems <destination          |
|(dir|.zip)> -if <filterExpr> deleteItems -if <filterExpr> changeVersion <newVersion> -if          |
|<filterExpr> changeStatus <newStatusCode> -if <filterExpr> importDatabaseMetadata <filePath>      |
|importDelimitedMetadata <filePath>]                                                               |
+--------------------------------------------------------------------------------------------------+
|  stopServer                                                 stops server                         |
|      -f (--force)                                           don't wait for queued commands       |
|  help                                                       shows help                           |
|  helpFilter                                                 shows filter help                    |
|  showVersion                                                shows product version                |
|  listCommand                                                lists commands                       |
|      -a (--all)                                             lists all commands                   |
|  listExecutionServer                                        lists [virtual] execution servers    |
|  listJob                                                    lists jobs                           |
|  listProject                                                lists available projects             |
|  initLocal                                                  init local repository                |
|  initRemote adminUrl                                        init remote repository               |
|  logoffProject                                              logs off                             |
|  logonProject                                               logs on a project                    |
|      -pn (--project-name) technical name                    project name                         |
|      -ul (--user-login) login                               user login                           |
|      -up (--user-password) password                         user password                        |
|      -gt (--generate-templates)                             generate templates                   |
|  createProject                                              creates a project                    |
|      -pn (--project-name) technical name                    project name                         |
|      -pd (--project-description) description                project description                  |
|      -pl (--project-language) language (java/perl)          project language                     |
|      -pa (--project-author) author login                    project author                       |
|  executeAllJob                                              executes all                         |
|      -i (--interpreter) path                                perl/java interpreter path           |
|      -jc (--job-context) context name                       chooses a job context                |
|      -jcp (--job-context-param) key=value [key=value ...]   provides a job context param         |
|      -jrdd (--job-result-destination-dir) path              job execution result destination dir |
|      -jt (--job-timeout) time (in sec)                      timeout of execution                 |
|      -jactc (--job-apply-context-to-children)               apply context to children            |
|  exportAllJob                                               exports all                          |
|      -dd (--destination-directory) path                     destination directory                |
|      -jc (--job-context) context name                       chooses a job context                |
|      -jactc (--job-apply-context-to-children)               apply context to children            |
|  executeJob jobName                                         executes                             |
|      -i (--interpreter) path                                perl/java interpreter path           |
|      -jv (--job-version) version                            chooses a job version                |
|      -jc (--job-context) context name                       chooses a job context                |
|      -jcp (--job-context-param) key=value [key=value ...]   provides a job context param         |
|      -jrdd (--job-result-destination-dir) path              job execution result destination dir |
|      -jt (--job-timeout) time (in sec)                      timeout of execution                 |
|      -jactc (--job-apply-context-to-children)               apply context to children            |
|  executeJobOnServer jobName                                 executes on server                   |
|      -jv (--job-version) version                            chooses a job version                |
|      -jc (--job-context) context name                       chooses a job context                |
|      -jcp (--job-context-param) key=value [key=value ...]   provides a job context param         |
|      -jactc (--job-apply-context-to-children)               apply context to children            |
|      -es (--execution-server) name                          execution [virtual] server name      |
|  exportJob jobName                                          exports                              |
|      -dd (--destination-directory) path                     destination directory                |
|      -jv (--job-version) version                            chooses a job version                |
|      -jc (--job-context) context name                       chooses a job context                |
|      -af (--archive-filename) filename                      archive filename (without .zip)      |
|      -jactc (--job-apply-context-to-children)               apply context to children            |
|  getCommandStatus commandId                                 gets command status                  |
|  importItems source (dir|.zip)                              imports items                        |
|      -if (--item-filter) filterExpr                         item filter expression               |
|      -o (--overwrite)                                       overwrite existing items             |
|  exportItems destination (dir|.zip)                         exports items                        |
|      -if (--item-filter) filterExpr                         item filter expression               |
|  deleteItems                                                delete items                         |
|      -if (--item-filter) filterExpr                         item filter expression               |
|  changeVersion newVersion                                   changes items version                |
|      -if (--item-filter) filterExpr                         item filter expression               |
|  changeStatus newStatusCode                                 changes items status                 |
|      -if (--item-filter) filterExpr                         item filter expression               |
|  importDatabaseMetadata filePath                            imports database metadata            |
|  importDelimitedMetadata filePath                           imports delimitedmetadata            |
+--------------------------------------------------------------------------------------------------+
| Copyright (C) 2006-2008 Talend - www.talend.com                                                  |
+--------------------------------------------------------------------------------------------------+

Last edited by nickd_nwea (2011-12-15 18:07:38)

Offline

#7 2011-12-19 10:01:15

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

Re: Generation Engine question

Hi,

Thanks for this hint, I was aware of this function list. Unfortunately it doesn't provide an in depth guide on how to use these options.

It has been quite a puzzle for me to understand how to use this all.

But, thanks again!

Arno

Offline

Board footer

Powered by FluxBB