Skip to content

Commit

Permalink
Update for TOS Big Data 6.4.1 for Amadeus IT Group
Browse files Browse the repository at this point in the history
  • Loading branch information
AMAIISDOM\nrousseau committed Aug 2, 2017
1 parent 3f66bd2 commit f3c5e40
Show file tree
Hide file tree
Showing 200 changed files with 2,325 additions and 7,734 deletions.
83 changes: 7 additions & 76 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,94 +1,24 @@
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.0.
Command line code generation (job build/export) plugin for Talend, updated for >= v6.4.1

Compiling & Configuring
-----------------------

Build:

```bash
#to build the latest version available
> make

#ls in the out directory
>ls jar/talend-codegen_5.6.0.jar

#build an older version
>make build_jar_5.4.1
>ls jar/talend-codegen_X.X.X.jar

#build directly with ant:
> cat Makefile
build_jar_5.6.0:
ant build -Dtalend_version=5.6.0 -Dtalend_revision=20141024_1545
clean_5.6.0:
ant clean -Dtalend_version=5.6.0 -Dtalend_revision=20141024_1545

#select your version
> ant build -Dtalend_version=5.5.1 -Dtalend_revision=r118616
>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 with talend-codegen helper
--------------------------------

This project is shipped with an helper script available in **./bin/talend-codegen**.

This script must be modify to reflect your Talend installation (TALEND_DIR and TALEND_BIN at the beginning of the script)

Generation:
```bash
# create out directory
$ mkdir -p './out'

# With all '-need' options enabled
$ talend-codegen -p './MyProjectDir/' -o './out/' -j './MyJobName' -a

# With custom options
$ talend-codegen -p './MyProjectDir/' -o './out/' -j 'MyJobName' -O '-needLauncher=true -needContext=true'
```

help:
```
# help
$ talend-codegen -h
usage: talend-codegen -p <project dir> -o <out dir> -j <job name> \
[-a] [-O <custom options>] [-T <talend dir>] [-c <comp dir>]
Build Talend project from command line
examples:
* talend-codegen -p ./MyProjectDir/ -o out/ -j MyJobName -a
* talend-codegen -p ./MyProjectDir/ -o out/ -j MyJobName -O '-needLauncher=true -needDependencies=true'
arguments:
-p <project dir>: directory containing the talend project
-j <job id>: job to export
-o <out dir>: output directory
optional arguments:
-a: enable all -need* options
-O <custom options>: custom options (cannot be used with -a)
-T <talend dir>: talend install directory (default: /home/pcarpent/TOS_DI-r95165-V5.2.1)
-c <comp dir>: location of any custom components used in the job
codegen options (for -O):
* -version - version of job to be exported
* -needLauncher - include launcher script (true/false)
* -needSystemRoutine - include system outines (true/false)
* -needUserRoutine - and so on..
* -needTalendLibraries
* -needJobItem
* -needSourceCode
* -needDependencies
* -needJobScript
* -needContext
* -applyToChildren
* -buildType - (osgi/job)
```

Usage invoking TOS directly
---------------------------

Expand Down Expand Up @@ -135,5 +65,6 @@ cp $PROJECTDIR/libs/* /home/TOS_DI-r118616-V5.5.1/lib/java/
-targetDir $TARGETDIR -componentDir $COMPONENTDIR
```



```bash
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"
```
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="talend_version" value="6.2.0"/>
<property name="talend_revision" value="20160510_1709"/>
<property name="talend_version" value="6.4.1"/>
<property name="talend_revision" value="20170623_1246"/>
<path id="talend-codegen.classpath">
<fileset dir="lib/${talend_version}/">
<include name="*.jar"/>
Expand Down
Binary file removed lib/6.2.0/org.apache.log4j_1.2.13.v200903072027.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f3c5e40

Please sign in to comment.