Skip to content

Commit

Permalink
initial source commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Apr 22, 2013
1 parent a803898 commit fa8a1c0
Show file tree
Hide file tree
Showing 563 changed files with 56,779 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/cpAppend.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set CLASSPATH=%CLASSPATH%;%1

12 changes: 12 additions & 0 deletions bin/jeql.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
set OLD_DIR=%CD%
set JEQL_HOME=%~dp0..%
set JAVA_OPTS=-Xms256M -Xmx1024M

set CLASSPATH=
set LIB=%JEQL_HOME%\lib

for %%i in ("%LIB%\*.jar") do call cpAppend %%i

java -cp "%CLASSPATH%" %JAVA_OPTS% jeql.JeqlCmd %*

7 changes: 7 additions & 0 deletions bin/jeql.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pwd

CDIR=`dirname "$0"`

## run the basic script now
. "$CDIR/jeql.sh"

30 changes: 30 additions & 0 deletions bin/jeql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh

if test "x$LIB_DIR" = "x"; then
LIB_DIR=`dirname $0`/../lib/
fi

# to change L&F add eg -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel
JAVA_LOOKANDFEEL="-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel"
#JAVA_LOOKANDFEEL=""

JAVA_OPTS="-Xms256M -Xmx1024M"

if test "x$LIB_DIR" = "x"; then
LIB_DIR=`dirname $0`/../lib/
fi

#---------------------------------#
# dynamically build the classpath #
#---------------------------------#

CP=
for i in `ls ${LIB_DIR}/*.jar`
do
CP=${CP}:${i}
done

#---------------------------#
# run the program #
#---------------------------#
java -cp ".:${CP}" $JAVA_OPTS $JAVA_LOOKANDFEEL jeql.JeqlCmd $1 $2 $3 $4 $5 $6 $7 $8 $9
12 changes: 12 additions & 0 deletions bin/jeqlw.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
set OLD_DIR=%CD%
set JEQL_HOME=%~dp0..%
set JAVA_OPTS=-Xms256M -Xmx1024M

set CLASSPATH=
set LIB=%JEQL_HOME%\lib

for %%i in ("%LIB%\*.jar") do call cpAppend %%i

java -cp "%CLASSPATH%" %JAVA_OPTS% jeql.workbench.Workbench %*

7 changes: 7 additions & 0 deletions bin/jeqlw.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pwd

CDIR=`dirname "$0"`

## run the basic script
. "$CDIR/jeqlw.sh"

26 changes: 26 additions & 0 deletions bin/jeqlw.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

#to change L&F if desired. Blank is default
JAVA_LOOKANDFEEL="-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel"
#JAVA_LOOKANDFEEL=""


JAVA_OPTS="-Xms256M -Xmx1024M"

if test "x$LIB_DIR" = "x"; then
LIB_DIR=`dirname $0`/../lib/
fi

#---------------------------------#
# dynamically build the classpath #
#---------------------------------#
CP=
for i in `ls ${LIB_DIR}/*.jar`
do
CP=${CP}:${i}
done

#---------------------------#
# run the program #
#---------------------------#
java -cp ".:${CP}" $JAVA_OPTS $JAVA_LOOKANDFEEL jeql.workbench.Workbench
1 change: 1 addition & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release.version=0.12
176 changes: 176 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<?xml version="1.0"?>
<project name="JEQL Buildfile" default="all" basedir=".">
<description>
Ant build script for JEQL
</description>

<!-- ================================================================== -->
<!-- Properties -->
<!-- ================================================================== -->

<target name="props">
<property file="${basedir}/build.properties"/>
<property name="base.src" value="${basedir}/modules/jeql/src/main/java"/>
<property name="base.lib" value="${basedir}/java/lib"/>
<property name="base.lib-nodist" value="${basedir}/java/lib-nodist"/>
<property name="base.doc" value="${basedir}/doc"/>
<property name="base.bin" value="${basedir}/bin"/>
<property name="base.dist" value="${basedir}/dist"/>
<property name="base.script" value="${basedir}/script"/>

<property name="jeqlw.src" value="${basedir}/modules/jeqlw/src/main/java"/>

<property name="build" value="${basedir}/build"/>
<property name="build.classes" value="${build}/classes/jeql"/>
<property name="jeqlw.classes" value="${build}/classes/jeqlw"/>

<property name="test" value="test"/>

<property name="dist" value="${build}/dist"/>
<property name="dist.src" value="${dist}/src"/>
<property name="dist.lib" value="${dist}/lib"/>
<property name="dist.doc" value="${dist}/doc"/>
<property name="dist.javadoc" value="${dist}/doc/javadoc"/>
<!--property name="dist.jts-jar" value="${dist.lib}\jts-${jts.version}.jar" /-->

<property name="zipfile" value="jeql-${release.version}.zip"/>
<property name="doc-dir" value="doc"/>

</target>

<!-- ================================================================== -->
<!-- Targets -->
<!-- ================================================================== -->

<target name="copy-dist"
description="Copy the distro files">
<mkdir dir="${dist}"/>
<delete includeemptydirs="true">
<fileset dir="${dist}" includes="**/*"/>
</delete>

<mkdir dir="${dist.lib}"/>
<!--
<copy todir="${dist.src}">
<fileset dir="${base.src}"
excludes=""/>
</copy>
-->

<!-- clean & load the jars -->

<copy todir="${dist}\lib">
<fileset dir="${base.lib}" />
</copy>

<copy todir="${dist}\doc">
<fileset dir="${base.doc}" />
</copy>

<copy todir="${dist}\bin">
<fileset dir="${base.bin}" />
</copy>

<copy todir="${dist}\script">
<fileset dir="${base.script}" />
</copy>

<copy todir="${dist}">
<fileset dir="${base.dist}" />
</copy>

</target>

<target name="jar"
description="Builds main jar" depends="copy-dist">
<delete dir="${build.classes}"/>
<mkdir dir="${build.classes}"/>
<javac srcdir="${base.src}"
debug="yes"
includes="**/*.java"
excludes=""
destdir="${build.classes}">
<classpath>
<fileset dir="${base.lib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${base.lib-nodist}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<delete file="${dist.lib}/jeql-*" failonerror="false"/>
<mkdir dir="${dist.lib}"/>
<jar jarfile="${dist.lib}\jeql-${release.version}.jar"
basedir="${build.classes}"/>
</target>

<target name="jeqlw-jar"
description="Builds jeqlw jar" depends="copy-dist, jar">
<delete dir="${jeqlw.classes}"/>
<mkdir dir="${jeqlw.classes}"/>
<javac srcdir="${jeqlw.src}"
debug="yes"
includes="**/*.java"
excludes=""
destdir="${jeqlw.classes}">
<classpath>
<pathelement location="${build.classes}"/>
<fileset dir="${base.lib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${base.lib-nodist}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<copy todir="${jeqlw.classes}/jeql/workbench">
<fileset dir="${jeqlw.src}/jeql/workbench" includes="*.gif,*.png"/>
</copy>
<copy todir="${jeqlw.classes}/jeql/workbench/ui/data">
<fileset dir="${jeqlw.src}/jeql/workbench/ui/data" includes="*.gif,*.png"/>
</copy>
<copy todir="${jeqlw.classes}/jeql/workbench/images">
<fileset dir="${jeqlw.src}/jeql/workbench/images" includes="*.gif,*.png"/>
</copy>
<delete file="${dist.lib}/jeqlw-*" failonerror="false"/>
<mkdir dir="${dist.lib}"/>
<jar jarfile="${dist.lib}\jeqlw-${release.version}.jar"
basedir="${jeqlw.classes}"/>
</target>

<target name="javadoc" depends="copy-dist"
description="Generates the JavaDoc files">
<javadoc packagenames="jeql.api.*"
destdir="${dist.javadoc}">
<sourcepath location="${base.src}"/>
</javadoc>
</target>

<target name="make-dist" depends="props"
description="Zips all files into a distro archive">
<zip destfile="${build}/jeql-${release.version}.zip"
basedir="${dist}" />
</target>

<target name="zip-src" depends="props"
description="Zips src files into a backup archive">
<zip destfile="${build}/jeql-src-${release.version}.zip"
basedir="${base.src}"
includes="**/*" />
</target>

<target name="OLDzip-build" depends="props"
description="Zips src files into a backup archive">
<zip destfile="${build}/jeql-srcbuild-${release.version}.zip"
basedir="${base}" />
</target>

<target name="build" depends="copy-dist, jar, jeqlw-jar"
description="Cleans, compiles, builds jars, generates javadoc">
</target>

<target name="all" depends="props, build, make-dist, zip-src"
description="Compiles and builds the distro archive"/>

</project>
58 changes: 58 additions & 0 deletions dist/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
JEQL Extensible/Embeddable/ETL Query Language
=============================================

Installation Requirements
-------------------------

- Java 1.5 or above


Installation Instructions
-------------------------

Unzip the distribution archive into a directory.

If desired, add bin/jeql.bat to the shell search path.

It may be necessary to edit the jeql.bat file to
explicitly refer to the appropriate Java version installation directory.

The maximum memory allocation may be changed by editing
the '-Xmx...' value in the JAVA_OPTS variable in this file.


Getting Started
---------------

JEQL scripts are text files. They are run using the following command:

jeql <script-name>

To see a list of all provided functions and commands:

jeql -man

To see command-line help:

jeql -help

See the sample directory for examples of JEQL scripts.


Resources
---------

See http://tsusiatsoftware.net/jeql for JEQL documentation and examples.


License
-------

JEQL is released as free software, but is not currently open source.

It is also available under a commercial license,
which allows embedding in commercial software.

For inquiries about licensing the software,
please contact: [email protected]

Loading

0 comments on commit fa8a1c0

Please sign in to comment.