Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Pazzaglia committed Oct 28, 2013
0 parents commit cb4d276
Show file tree
Hide file tree
Showing 76 changed files with 17,144 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>BTable</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
356 changes: 356 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BTable
======

A drill-anywhere component for the Pentaho Community Dashboard Designer (CDE).

Video tutorial and more on [www.biztech.it/btable](http://www.biztech.it/btable).

BTable is released under the [Mozilla Public Licence (MPLv2)](http://www.mozilla.org/MPL/2.0/).

This plugin has been made using [Sparkl](https://github.com/webdetails/sparkl).
179 changes: 179 additions & 0 deletions build-res/subfloor-pkg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
<!--===========================================================================
Copyright (c) 2009, Pentaho Engineering Team
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Pentaho Corporation nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Pentaho Engineering Team ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
============================================================================-->
<!--===========================================================================
== SUBFLOOR-PKG ==
$Rev: 100 $
$Date: 2013/10/17 15:58:33 $
Project Home: http://code.google.com/p/subfloor/
Provides default targets for creating application archives such as zip and tar.gzip
files.
============================================================================-->

<project name="subfloor-pkg" basedir="." default="default" xmlns:ivy="antlib:org.apache.ivy.ant">

<!-- Define the default location of the common build file -->
<property name="subfloor.file"
value="./subfloor.xml"
description="This is the location of the standardized subfloor.xml file" />

<!-- Import the common_build.xml file which contains all the default tasks -->
<import file="${subfloor.file}" />

<property name="stage.dir" value="${bin.dir}/stage" description="Package staging" />
<property name="package.root.dir"
value="${ivy.artifact.id}"
description="Root directory of final zip or tar package" />
<property name="approot.stage.dir"
value="${stage.dir}/${package.root.dir}"
description="Stage application root dir" />
<property name="package.id" value="${ivy.artifact.id}" />
<property name="package.basename" value="${package.id}-${project.revision}" />
<property name="package.resdir" value="${basedir}/package-res" />
<property name="package.artifact.ivyfile"
value="package-ivy.xml"
description="The ivy file defining dependencies of the package" />
<property name="package.artifact.pomfile"
value="package-pom.xml"
description="The Maven pom file defining dependencies of the package" />

<target name="dist" depends="jar,package" description="Builds and packages the application" />

<target name="clean-dist">
<delete dir="${dist.dir}" />
<delete dir="${stage.dir}" />
</target>

<!-- override of jar target.. this definitely should be moved into common build -->
<target name="jar"
depends="compile,set-build.id,create-version-file"
description="Jars up the bin directory after a compile">
<jar destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar">
<manifest>
<attribute name="Implementation-Title" value="${impl.title}" />
<attribute name="Implementation-Version" value="${project.revision}.${build.id}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
</manifest>
<fileset dir="${classes.dir}" />
</jar>
</target>

<target name="create-version-file">
<propertyfile file="${classes.dir}/version.properties" comment="${impl.title} build information">
<entry key="version" value="${project.revision}.${build.id}" />
<entry key="builddate" type="date" value="now" />
</propertyfile>
</target>

<target name="assemble.init">
<mkdir dir="${approot.stage.dir}" />
</target>

<target name="assemble" depends="assemble.init,assemble.copy-libs">
<copy todir="${approot.stage.dir}" overwrite="true">
<fileset dir="${package.resdir}" />
</copy>
<chmod perm="a+x" dir="${stage.dir}" includes="**/*.sh" />
</target>

<target name="assemble.copy-libs">
<copy todir="${approot.stage.dir}/lib">
<fileset dir="${lib.dir}" />
<fileset file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" />
</copy>
</target>

<target name="package"
depends="assemble,package-zip,package-targz"
description="Creates packaged distributable artifacts" />

<target name="package-zip">
<zip destfile="${dist.dir}/${package.basename}.zip">
<zipfileset dir="${stage.dir}" />
</zip>
</target>

<target name="package-targz">
<tar destfile="${dist.dir}/${package.basename}.tar.gz" longfile="gnu" compression="gzip">
<tarfileset dir="${stage.dir}" mode="755">
<include name="**/*.sh" />
</tarfileset>
<tarfileset dir="${stage.dir}">
<exclude name="**/*.sh" />
</tarfileset>
</tar>
</target>

<!--=======================================================================
create-pom (override)
Creates the POM files for publishing the jar and gwt zip package to the Maven repository
====================================================================-->
<target name="create-pom"
depends="install-ivy,subfloor.create-pom,create-package-pom"
description="Creates a POM file based on the ivy dependencies" />

<!--=======================================================================
create-package-pom
Creates a POM file for the package
====================================================================-->
<target name="create-package-pom"
depends="install-ivy"
description="Creates a POM file based on the ivy dependencies for a separate package">
<ivy:makepom ivyfile="${package.artifact.ivyfile}" pomfile="${package.artifact.pomfile}" />
<replace file="${package.artifact.pomfile}" token="jar" value="zip" />
</target>

<!--=======================================================================
publish-nojar (override)
Publishes the jar and zip package to the Maven repository
====================================================================-->
<target name="publish-nojar" depends="install-antcontrib,create-pom,ivy.deliver,subfloor.publish-nojar">

<antcall target="maven-publish-artifact">
<param name="publish.pomFile" value="${package.artifact.pomfile}" />
<param name="publish.file" value="${dist.dir}/${package.basename}.zip" />
</antcall>
</target>

<!--=======================================================================
publish-local-nojar (override)
Publishes jar and zip package locally
====================================================================-->
<target name="publish-local-nojar" depends="install-ivy,subfloor.publish-local-nojar">
<ivy:resolve file="${package.artifact.ivyfile}" />
<ivy:publish resolver="local" pubrevision="${project.revision}" overwrite="true" forcedeliver="true">
<artifacts pattern="${dist.dir}/[artifact]-[revision].[ext]" />
</ivy:publish>
</target>

</project>
Loading

0 comments on commit cb4d276

Please sign in to comment.