This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 29d437b
Showing
11 changed files
with
1,090 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.DS_Store | ||
.classpath | ||
.project | ||
.settings/ | ||
target/ | ||
*.class | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0"?> | ||
<project name="PdiSdkDemoStepPlugin" default="dist" basedir="."> | ||
<description> | ||
Build file for a PDI step plugin | ||
</description> | ||
|
||
<!-- you can use this file to set the kettle-dir property or change it directly below --> | ||
<property file="build/build.properties" /> | ||
|
||
<!-- set global properties for this build --> | ||
<property name="kettle-local-dir" location="/Users/santteegt/Desktop/Investigación/Pentaho/data-integration" /> | ||
<!-- | ||
<property name="src" location="src" /> | ||
<property name="classes" location="classes" /> | ||
--> | ||
<property name="dist" location="target" /> | ||
<property name="pluginname" value="pentaho-plugin-base" /> | ||
<property name="diststep" location="${dist}/steps/${pluginname}" /> | ||
|
||
<property name="jarfilename" value="demo-step.jar" /> | ||
|
||
<!-- used to compile code --> | ||
<!-- | ||
<path id="compile.classpath"> | ||
<fileset dir="${basedir}/lib"> | ||
<include name="**/*.jar" /> | ||
</fileset> | ||
</path> | ||
<target name="init"> | ||
<tstamp /> | ||
</target> | ||
<target name="compile" depends="init" description="compile the source "> | ||
<mkdir dir="${classes}" /> | ||
<javac target="1.6" srcdir="${src}" destdir="${classes}" debuglevel="lines,vars,source" debug="true"> | ||
<classpath refid="compile.classpath" /> | ||
</javac> | ||
</target> | ||
--> | ||
<!-- <target name="dist" depends="compile" description="generate the distribution"> --> | ||
<target name="dist" description="generate the distribution"> | ||
|
||
<mkdir dir="${diststep}" /> | ||
|
||
<!-- jar things up, also add the properties files (messages) --> | ||
<!-- | ||
<copy todir="${classes}"> | ||
<fileset dir="${src}" includes="**/*.properties" /> | ||
</copy> | ||
--> | ||
|
||
<!-- jar class up --> | ||
<!-- | ||
<jar jarfile="${diststep}/${jarfilename}" basedir="${classes}"/> | ||
--> | ||
|
||
<!-- Put the plugin.xml and icon into dist folder --> | ||
<copy todir="${diststep}"> | ||
<fileset dir="src/main/resources/plugin" includes="**/*.*" /> | ||
<fileset dir="src/main/resources/plugin" includes="**" /> | ||
<fileset dir="target" includes="**/*.jar" /> | ||
</copy> | ||
|
||
</target> | ||
|
||
<target name="install" depends="dist" description="compile and install into local PDI installation"> | ||
|
||
<echo message="Looking for local PDI installation in ${kettle-dir}"/> | ||
|
||
<!-- change these to adapt to your environment --> | ||
<!-- | ||
<property name="kettle-dir" location="your_kettle_4.x_dir_here" /> | ||
--> | ||
<available file="${kettle-local-dir}" type="dir" property="kettle-dir.present" /> | ||
|
||
<fail unless="kettle-dir.present" message="PDI installation not found. Please specify the right path to your PDI installation in build.xml for property name kettle-local-dir" /> | ||
|
||
<!-- remove previous installations --> | ||
<delete dir="${kettle-local-dir}/plugins/steps/${pluginname}" /> | ||
|
||
<!-- put fresh files in place --> | ||
<mkdir dir="${kettle-local-dir}/plugins/steps/${pluginname}" /> | ||
|
||
<copy todir="${kettle-local-dir}/plugins/steps/${pluginname}"> | ||
<fileset dir="${diststep}" includes="**/*.*" /> | ||
<fileset dir="${diststep}" includes="**" /> | ||
</copy> | ||
|
||
|
||
<echo message="Installed the plugin in PDI. To test, please restart Spoon."/> | ||
|
||
</target> | ||
<!-- | ||
<target name="clean" description="clean up"> | ||
<delete dir="${classes}" /> | ||
<delete dir="${dist}" /> | ||
</target> | ||
--> | ||
|
||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.ucuenca</groupId> | ||
<artifactId>pentaho-plugin-base</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>pentaho-plugin-base</name> | ||
<!-- <url>http://maven.apache.org</url> --> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<repositories> | ||
<repository> | ||
<id>default</id> | ||
<url>http://repo1.maven.org/maven/</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
<repository> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>central</id> | ||
<name>repo</name> | ||
<url>http://repository.pentaho.org/artifactory/repo</url> | ||
</repository> | ||
|
||
|
||
</repositories> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>1.7</version> | ||
<executions> | ||
<execution> | ||
<id>deploy-plugin</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<property name="runtime-classpath" refid="maven.runtime.classpath"/> | ||
<ant antfile="build.xml" target="install" output="${basedir}/target/ant.log" inheritRefs="true"/> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
|
||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<excludes> | ||
<exclude>plugin/*.*</exclude> | ||
</excludes> | ||
</resource> | ||
<resource> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.properties</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>3.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-core</artifactId> | ||
<version>5.1.preview.506</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-dbdialog</artifactId> | ||
<version>5.1.preview.506</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-engine</artifactId> | ||
<version>5.1.preview.506</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-ui-swt</artifactId> | ||
<version>5.1.preview.506</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
Oops, something went wrong.