Last active
August 29, 2015 14:10
-
-
Save fernandommota/fee2488f64544aff3fe9 to your computer and use it in GitHub Desktop.
Script Shell for Kettle Cookbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET VER=1.0 | |
SET YEAR=2014 | |
REM folder with sources the repository (transformations and jobs) | |
SET path_etl=/opt/pentaho/ETL/etl_sources | |
REM folder with PDI/KETTLE | |
SET path_pdi=/opt/pentaho/data-integration_5.0.1-A | |
REM folder with sources of cookbook | |
REM for PDI version 4+ use document-all.kjb | for PDI version 5+ use document-folder.kjb | |
SET path_cookbook=/opt/pentaho/kettlecookbook/pdi/document-folder.kjb | |
REM path of output folder | |
SET path_output=/opt/pentaho/output_documentacao | |
REM path of lib saxon.jar, requirement for PDI version 5+ | |
REM read more http://saxon.sourceforge.net/ http://www.saxonica.com/documentation/about/whatis.html | |
SET path_saxon=./lib/saxon-9.1.0.8.jar | |
echo. | |
echo. | |
echo IT4biz - Start Cookbook Documentation version %VER% | |
echo. | |
echo Author: Fernando Maia da Mota(IT4biz) | |
echo. | |
echo. | |
echo. | |
echo Changelog: | |
echo. | |
echo v1.0 - First release | |
echo. | |
echo. | |
cd %path_pdi% | |
REM command for version 4+ | |
REM kitchen.bat -file:%path_cookbook% -param:"INPUT_DIR"=%path_etl% -param:"OUTPUT_DIR"=%path_output% | |
REM command for version 5+ | |
kitchen.bat -file:%path_cookbook% -param:"INPUT_DIR"=%path_etl% -param:"OUTPUT_DIR"=%path_output% -param:"SAXON"=%path_saxon% | |
echo Finished! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script run a ETL documentation with https://code.google.com/p/kettle-cookbook/