Mainly to store testing code.
To setup Pentaho Kettle at Eclipse.
Dependency setup/Code Change
- Add
<dependency org="mysql" name="mysql-connector-java" rev="5.1.30"/>
at UI ivy.xml. - Add assembly/package-res/ui in ui/src folder. (prefer softlink)
- Replace jar
%UserProfile%/.ivy2/cache/org.eclipse.swt/swt-linux-x86_64/jars
with OS swt.jar (rename) - Change
org.pentaho.di.ui.spoon.MainSpoonPerspective.getPerspectiveIcon()
toreturn Thread.currentThread().getContextClassLoader().getResourceAsStream("ui/images/transformation.png");
- Change
<dependency org="org.eclipse.swt" name="swt-linux-x86_64" rev="3.7" transitive="false" />
in UI project to<dependency org="org.eclipse.swt" name="swt-win32" rev="3.3.0.3346" transitive="false" />
.
A. Eclipse + IvyDE (at individual Pentaho project)
- Install IvyDE from https://www.apache.org/dist/ant/ivyde/updatesite (ref: https://ant.apache.org/ivy/ivyde/download.cgi)
- At Window -> Preference -> Ivy -> Settings, check reload the setting on demand, add Ivy setting path
ivysettings.xml
, Property filesbuild.properties
. - At Window -> Preference -> Ivy -> Classpath container, check Resolve dependencies in workspace.
- Add new Java project at project you want to work on, point the path to pentaho project.
- Add Ivy managed dependencies library in new project wizard.
B. Pure Eclipse setting (at root level for all Pentaho projects)
- run
ant resolve create-dot-classpath
- Import Existing Eclipse project at root level.
- Everything when a new dependency is added, run
ant resolve create-dot-classpath
and refresth Eclipse project.