Skip to content

Commit

Permalink
PDI-841 : Split off kettle-core and kettle-db source code for better …
Browse files Browse the repository at this point in the history
…re-use oppertunities

git-svn-id: svn://source.pentaho.org/svnkettleroot/Kettle/trunk@6759 5fb7f6ec-07c1-534a-b4ca-9155e429e800
  • Loading branch information
mcasters committed Feb 29, 2008
1 parent 44d4648 commit 400e99d
Show file tree
Hide file tree
Showing 256 changed files with 809 additions and 1,987 deletions.
5 changes: 3 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-ui"/>
<classpathentry kind="src" output="classes-ui" path="src-ui"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" output="classes-core" path="src-core"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="libext/js.jar"/>
<classpathentry kind="lib" path="libext/jxl.jar"/>
<classpathentry kind="lib" path="libext/mail.jar"/>
<classpathentry kind="lib" path="libext/log4j-1.2.8.jar"/>
<classpathentry kind="lib" path="libext/javadbf.jar"/>
<classpathentry kind="lib" path="libext/javadbf.jar" sourcepath="/javadbf/javadbf"/>
<classpathentry kind="lib" path="libext/jsch-0.1.24.jar"/>
<classpathentry kind="lib" path="libswt/jface.jar"/>
<classpathentry kind="lib" path="libswt/runtime.jar"/>
Expand Down
5 changes: 3 additions & 2 deletions Translator.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ set CLASSPATH=.
REM ******************
REM KETTLE Library
REM ******************
set CLASSPATH=%CLASSPATH%;lib\kettle-engine-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-ui-swt-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-core.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-engine.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-ui-swt.jar

REM *****************
REM SWT Libraries
Expand Down
3 changes: 2 additions & 1 deletion bin/Carte.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ REM ******************
REM KETTLE Library
REM ******************

set CLASSPATH=%CLASSPATH%;lib\kettle-engine-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-core.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-engine.jar

REM **********************
REM External Libraries
Expand Down
3 changes: 2 additions & 1 deletion bin/Kitchen.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ REM ******************
REM KETTLE Library
REM ******************

set CLASSPATH=%CLASSPATH%;lib\kettle-engine-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-core.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-engine.jar

REM **********************
REM External Libraries
Expand Down
3 changes: 2 additions & 1 deletion bin/Pan.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ REM ******************
REM KETTLE Library
REM ******************

set CLASSPATH=%CLASSPATH%;lib\kettle-engine-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-core.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-engine.jar

REM **********************
REM External Libraries
Expand Down
6 changes: 4 additions & 2 deletions bin/Spoon.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ set CLASSPATH=.
REM ******************
REM KETTLE Library
REM ******************
set CLASSPATH=%CLASSPATH%;lib\kettle-engine-3.0.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-ui-swt-3.0.jar

set CLASSPATH=%CLASSPATH%;lib\kettle-core.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-engine.jar
set CLASSPATH=%CLASSPATH%;lib\kettle-ui-swt.jar

REM **********************
REM External Libraries
Expand Down
3 changes: 2 additions & 1 deletion bin/carte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BASEDIR=$(dirname $0)
cd $BASEDIR

CLASSPATH=$BASEDIR
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-3.0.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar

# **************************************************
# ** JDBC & other libraries used by Kettle: **
Expand Down
3 changes: 2 additions & 1 deletion bin/generateClusterSchema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BASEDIR=$(dirname $0)
cd $BASEDIR

CLASSPATH=$BASEDIR
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-3.0.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar

# **************************************************
# ** JDBC & other libraries used by Kettle: **
Expand Down
3 changes: 2 additions & 1 deletion bin/kitchen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BASEDIR=$(dirname $0)
cd $BASEDIR

CLASSPATH=$BASEDIR
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-3.0.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar

# **************************************************
# ** JDBC & other libraries used by Kettle: **
Expand Down
3 changes: 2 additions & 1 deletion bin/pan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BASEDIR=$(dirname $0)
cd $BASEDIR

CLASSPATH=$BASEDIR
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-3.0.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar

# **************************************************
# ** JDBC & other libraries used by Kettle: **
Expand Down
7 changes: 5 additions & 2 deletions bin/spoon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ BASEDIR=$(dirname $0)
cd $BASEDIR

CLASSPATH=$BASEDIR
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-3.0.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-ui-swt-3.0.jar

CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-ui-swt.jar

CLASSPATH=$CLASSPATH:$BASEDIR/libswt/jface.jar
CLASSPATH=$CLASSPATH:$BASEDIR/libswt/runtime.jar
CLASSPATH=$CLASSPATH:$BASEDIR/libswt/common.jar
Expand Down
2 changes: 2 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ version=3.1.0-M1
#Global Properties
src=src
src-ui=src-ui
src-core=src-core
test=test
classes=classes
classes-ui=classes-ui
classes-core=classes-core
testClasses=testClasses
bin=bin
build=build
Expand Down
97 changes: 71 additions & 26 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<mkdir dir="${classes}/META-INF"/>
<mkdir dir="${classes-ui}"/>
<mkdir dir="${classes-ui}/ui"/>
<mkdir dir="${classes-core}"/>
<mkdir dir="${testClasses}"/>
<mkdir dir="${lib}"/>
<mkdir dir="${distrib}"/>
Expand All @@ -44,8 +45,27 @@
Compile the code
==========================
-->

<target name="compile-core" depends="init" description="compile the core source code " >
<echo>Compiling Kettle CORE...</echo>
<javac
destdir="${classes-core}"
target="5"
source="5"
deprecation="true"
debug="${debug}"
optimize="${optimize}"
>
<src path="${src-core}"/>

<classpath id="cp-kettle-core">
<fileset dir="${libext}" includes="*.jar *.zip"/>
<fileset dir="${libext}/" includes="**/*.jar *.zip"/>
</classpath>
</javac>
</target>

<target name="compile" depends="init" description="compile the source " >
<target name="compile" depends="compile-core" description="compile the source " >
<echo>Compiling Kettle...</echo>
<javac
destdir="${classes}"
Expand All @@ -58,9 +78,9 @@
<src path="${src}"/>

<classpath id="cp-kettle">
<fileset dir="${lib}" includes="kettle-core.jar"/>
<fileset dir="${libext}" includes="*.jar *.zip"/>
<fileset dir="${libext}/" includes="**/*.jar *.zip"/>
<fileset dir="${libswt}" includes="common.jar"/>
</classpath>
</javac>
</target>
Expand All @@ -81,7 +101,8 @@
<src path="${src-ui}"/>

<classpath id="cp-kettle-ui">
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-core.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="${libext}" includes="*.jar *.zip"/>
<fileset dir="${libext}/" includes="**/*.jar *.zip"/>
<fileset dir="${libswt}" includes="*.jar *.zip"/>
Expand Down Expand Up @@ -127,7 +148,7 @@
>

<classpath id="cp-kettle-test">
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="${testlibext}" includes="*.jar"/>
<fileset dir="${libext}/commons" includes="*.jar"/>
<fileset dir="${libext}" includes="log4j-1.2.8.jar"/>
Expand All @@ -141,6 +162,13 @@
Copy additional files
==========================
-->

<target name="copy-core" depends="compile-core" description="copy images etc from the core source to classes directory" >
<echo>Copying core images etc to classes directory...</echo>
<copy todir="${classes-core}">
<fileset dir="${src-core}" includes="**/*.xml **/*properties"/>
</copy>
</target>

<target name="copy" depends="compile" description="copy images etc to classes directory" >
<echo>Copying images etc to classes directory...</echo>
Expand Down Expand Up @@ -204,29 +232,44 @@
Kettle library
==========================
-->

<target name="kettle-core" depends="compile-core, copy-core" description="generate the kettle core library kettle-core.jar">
<echo>Generating the Kettle core library kettle-core.jar ...</echo>
<jar jarfile="${lib}/kettle-core.jar"
basedir="${classes-core}"
includes="**/* ${version.file.path}"
excludes="**/Thumbs.db **/*.jar **/*.swp"
>
<manifest>
<attribute name="Implementation-Title" value="${impl.title.engine}" />
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
</manifest>
</jar>
</target>

<target name="kettle" depends="compile, revision, copy" description="generate the kettle library kettle-engine-3.0.jar">
<echo>Generating the Kettle library kettle-engine-3.0.jar ...</echo>
<jar jarfile="${lib}/kettle-engine-3.0.jar"
<target name="kettle" depends="compile, revision, copy" description="generate the kettle library kettle-engine.jar">
<echo>Generating the Kettle library kettle-engine.jar ...</echo>
<jar jarfile="${lib}/kettle-engine.jar"
basedir="${classes}"
includes="**/* ${version.file.path}"
excludes="**/Thumbs.db **/*.jar **/derbyOld/* **/derbyNew/* org/pentaho/di/run/**/*.ktr org/pentaho/di/run/**/*.txt org/pentaho/di/run/**/*.xls org/pentaho/di/run/**/*.swp org/pentaho/di/ui/**/*"
>
<manifest>
<attribute name="Implementation-Title" value="${impl.title.engine}" />
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
</manifest>
<manifest>
<attribute name="Implementation-Title" value="${impl.title.engine}" />
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
</manifest>
</jar>


</target>

<target name="kettle-ui" depends="compile-ui" description="generate the kettle library kettle-ui-swt-3.0.jar">
<echo>Generating the Kettle library kettle-ui-swt-3.0.jar ...</echo>
<jar jarfile="${lib}/kettle-ui-swt-3.0.jar"
<target name="kettle-ui" depends="compile-ui" description="generate the kettle library kettle-ui-swt.jar">
<echo>Generating the Kettle library kettle-ui-swt.jar ...</echo>
<jar jarfile="${lib}/kettle-ui-swt.jar"
basedir="${classes-ui}"
includes="**/* ${version.file.path}"
excludes="**/Thumbs.db **/kettle.jar">
Expand All @@ -246,7 +289,7 @@
Distribution jar package
==========================
-->
<target name="distrib" depends="kettle, kettle-ui" description="copy jar file to distribution directory" >
<target name="distrib" depends="kettle-core, kettle, kettle-ui" description="copy jar file to distribution directory" >
<echo>Construct the distribution package...</echo>

<!-- root directory -->
Expand All @@ -257,8 +300,9 @@

<!-- base lib -->
<mkdir dir="${distrib}/lib"/>
<copy todir="${distrib}/lib" file="${lib}/kettle-engine-3.0.jar"/>
<copy todir="${distrib}/lib" file="${lib}/kettle-ui-swt-3.0.jar"/>
<copy todir="${distrib}/lib" file="${lib}/kettle-core.jar"/>
<copy todir="${distrib}/lib" file="${lib}/kettle-engine.jar"/>
<copy todir="${distrib}/lib" file="${lib}/kettle-ui-swt.jar"/>

<!-- external libs (jdbc etc) -->
<mkdir dir="${distrib}/libext"/>
Expand Down Expand Up @@ -517,7 +561,7 @@

<junit printsummary="no" fork="yes" forkmode="perTest" jvm="java" maxmemory="512M" showoutput="yes">
<classpath>
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="test/libext/" includes="kettle.jar"/>
<pathelement path="${testClasses}"/>

Expand Down Expand Up @@ -548,7 +592,7 @@

<junit printsummary="no" fork="yes" forkmode="perTest" jvm="java" maxmemory="512M" showoutput="yes">
<classpath>
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="test/libext/" includes="kettle.jar"/>
<pathelement path="${testClasses}"/>

Expand All @@ -575,7 +619,7 @@

<junit printsummary="no" fork="yes" forkmode="perTest" jvm="java" maxmemory="512M" showoutput="yes">
<classpath>
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="test/libext/" includes="kettle.jar"/>
<pathelement path="${testClasses}"/>

Expand Down Expand Up @@ -610,7 +654,7 @@

<junit printsummary="no" fork="yes" forkmode="perTest" jvm="java" maxmemory="512M" showoutput="yes">
<classpath>
<fileset dir="${lib}" includes="kettle-engine-3.0.jar"/>
<fileset dir="${lib}" includes="kettle-engine.jar"/>
<fileset dir="test/libext/" includes="kettle.jar"/>
<!-- fileset dir="test/libext/" includes="junit.jar"/ -->
<pathelement path="${testClasses}"/>
Expand Down Expand Up @@ -680,6 +724,7 @@
<target name="cleandirs" description="clean up generated files">
<delete dir="${classes}"/>
<delete dir="${classes-ui}"/>
<delete dir="${classes-core}"/>
<delete dir="${lib}"/>
<delete dir="${distrib}"/>
<delete dir="${api}"/>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 400e99d

Please sign in to comment.