Skip to content

Command line code generation (job export) plugin for talend

Notifications You must be signed in to change notification settings

warhawk3407/talend-codegen

 
 

Repository files navigation

talend-codegen

Updated : Nikita Rousseau 02/08/2017 for Talend Open Studio - Big Data 6.4.1

Command line code generation (job build/export) plugin for Talend, updated for >= v6.4.1

Compiling & Configuring

Build:

#ls in the out directory
>ls jar/talend-codegen_X.X.X.jar

#build directly with ant:
>ant build -Dtalend_version=6.4.1 -Dtalend_revision=20170623_1246

And copy jar/talend-codegen<version>.jar to the plugins directory of Talend.

Usage invoking TOS directly

Invoke talend with the following mandatory command line arguments:

  • -projectDir - the project directory where the project can be found
  • -jobName - name of the job to be exported
  • -targetDir - the directory where the exported job will be placed

Eclipse application arguments

  • -application au.org.emii.talend.codegen.Generator - run the code generation plugin
  • -nosplash stops the display of the gui splash window
  • --launcher.suppressErrors stops errors being displayed in message boxes - output to stderr instead
  • -data specifies the talend workspace used for building the project - created automatically if it doesn't exist (recommended to ensure a clean build)
  • --clean_component_cache tells TOS to reload external components and rebuild the cache

Some optional command line arguments you can have:

  • -version - version of job to be exported
  • -componentDir - location of any custom components used in the job
  • -needLauncher - include launcher script (true/false)
  • -needSystemRoutine - include system outines (true/false)
  • -needUserRoutine - and so on..
  • -needTalendLibraries
  • -needJobItem
  • -needSourceCode
  • -needDependencies
  • -needJobScript
  • -needContext
  • -applyToChildren

Example:

export JOBNAME=MyJob
export WORKSPACE=/home/projectname/workspace
export PROJECTDIR=/home/projectname/workspace/MYPROJECT
export TARGETDIR=/home/projectname/workspace/.talend-build
export COMPONENTDIR=/home/projectname/custom_components

cp $PROJECTDIR/libs/* /home/TOS_DI-r118616-V5.5.1/lib/java/

/home/TOS_DI-20141024_1545-V5.6.0/TOS_DI-linux-gtk-x86_64 \
    -nosplash --launcher.suppressErrors -data $WORKSPACE \
    -application au.org.emii.talend.codegen.Generator \
    -jobName $JOBNAME -projectDir $PROJECTDIR \
    -targetDir $TARGETDIR -componentDir $COMPONENTDIR
TOS_BD-win-x86_64 -nosplash --launcher.suppressErrors -data "C:\Users\ncel51046\Documents\workspace" -application au.org.emii.talend.codegen.Generator -jobName "neo_update_user" -projectDir "C:\Users\ncel51046\Documents\workspace\NEODEUS" -targetDir "C:\Users\ncel51046\Documents\builds"

About

Command line code generation (job export) plugin for talend

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%