Permalink
Browse files

adding hidden files, resolving todo.md into issues

  • Loading branch information...
1 parent 7984807 commit 5d3781d254d9206c1a24d77e88a09e8ba0a8c8c3 @fjenett committed Dec 16, 2012
Showing with 145 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +107 −0 hidden/build.sh
  3. +38 −0 hidden/todo.md
View
@@ -18,7 +18,6 @@ build/
*.pbxuser
# old stuff i can't seem to be able to delete
-hidden/
releases/
website/
View
@@ -0,0 +1,107 @@
+#! /bin/sh
+
+# fjenett 20080601
+#
+# mail@florianjenett.de
+# http://www.florianjenett.de
+#
+
+connectors="http://www.zentus.com/sqlitejdbc/ \n"
+connectors=$connectors"http://www.mysql.com/products/connector/j/ \n"
+connectors=$connectors"http://jdbc.postgresql.org/download.html \n"
+
+projectName="sql"
+
+CLASSPATH="/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar:/System/Library/Java/Extensions/QTJava.zip"
+
+classp="/Users/fjenett/Repos/processing/build/macosx/work/lib/core.jar:./mysql-connector-java-3.1.14-bin.jar:./build:./src:$CLASSPATH"
+
+jikesp="/Users/fjenett/Repos/processing/build/macosx/dist/jikes"
+javacp=`which javac`
+compilerp=$javacp
+build="./build"
+dist="./dist"
+
+echo ""
+date
+
+#
+# remove old jar and previous build
+#
+echo "Cleaning ..."
+
+test -f $projectName.jar && rm $projectName.jar
+test -d $build && rm -R $build
+test -d $dist && rm -R $dist
+mkdir $build
+
+
+files=`find ./ -iname *.java -print`
+
+#
+# compile it
+#
+#javac -d build/ -classpath "/Applications/Processing 0123/lib/core.jar" src/*.java
+
+echo "Compiling sources ..."
+
+#$compilerp -target 1.1 +D -classpath $classp -d $build $files
+$compilerp -classpath $classp -d $build $files
+
+#
+# create new jar
+#
+echo "Zipping jar ..."
+
+cd $build
+zip -rq "../$projectName.zip" ./*
+mv "../$projectName.zip" "../$projectName.jar"
+cd ..
+
+if [ $1 == "-dist" ]
+then
+ echo "Packaging distribution ..."
+
+ test -f $projectName.zip && rm $projectName.zip
+ test -d $dist && rm -R $dist
+
+ mkdir -p $dist/$projectName/library/
+
+ cp $projectName.jar $dist/$projectName/library/$projectName.jar
+ cp README.txt $dist/$projectName/README.txt
+ cp -r src $dist/$projectName/src
+
+ touch $dist/$projectName/library/PUT_CONNECTOR_JARS_HERE
+
+ echo $connectors > $dist/$projectName/library/PUT_CONNECTOR_JARS_HERE
+
+ cd $dist
+ zip -rq $projectName.zip $projectName
+ ts=`date +"%Y%m%d"`
+ mv $projectName.zip "../$projectName.$ts.zip"
+ cd ..
+fi
+
+
+#
+# copy over to processing/libraries
+#
+
+echo "Copying to Processing libraries ..."
+
+rm -R /Users/fjenett/Documents/Processing/libraries/$projectName
+mkdir -p /Users/fjenett/Documents/Processing/libraries/$projectName/library/
+cp $projectName.jar /Users/fjenett/Documents/Processing/libraries/$projectName/library/$projectName.jar
+cp mysql-connector-java-3.1.14-bin.jar /Users/fjenett/Documents/Processing/libraries/$projectName/library/mysql-connector-java-3.1.14-bin.jar
+
+
+if [ $2 == "-clean" ]
+then
+ echo "Cleaning ..."
+
+ test -d $build && rm -R $build
+ test -d $dist && rm -R $dist
+fi
+
+echo "Done."
+echo ""
View
@@ -0,0 +1,38 @@
+
+**UTF-8 notes here:**
+
+http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-charsets.html
+
+---
+
+**Formatting queries:**
+
+db.query( String )
+db.query( String, Object ... args ) {
+ db.query( String.format( String, args ) )
+}
+
+or just use a [http://docs.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html PreparedStatement] which seems to bring in
+
+select("table_name").all()
+select("table_name").where("name",Object).groupBy("foo")
+
+---
+
+**ORM**
+
+http://www.hibernate.org/
+
+http://sourceforge.net/projects/crossdb/
+
+---
+
+**Convenience**
+
+Create a class inspector that will generate SQL that is needed to store class in a DB
+
+---
+
+SQLite
+
+- create db file (file missing ...)

0 comments on commit 5d3781d

Please sign in to comment.