db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Korneliussen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1846) Create a script that allows users to easily update their Derby jars with the JDBC4 classes.
Date Thu, 21 Sep 2006 15:56:25 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1846?page=comments#action_12436565 ] 
Andreas Korneliussen commented on DERBY-1846:

I think the script update-with-jdbc4 as it is now in SVN has a dangling-else problem if JAVA_HOME
is set. The scripts sets my JAVA_HOME to /usr/j2se

After modifying the script from:
-if [ -z "$JAVA_HOME" ]; then
-  if [ -n "$darwin" ]; then
-    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
-  fi else if [ -d /usr/j2se -a -x /usr/j2se/bin/javac ]; then
-    JAVA_HOME=/usr/j2se


+if [ -n "$JAVA_HOME" ]; then
+  test
+  if [ -n "$darwin" ]; then 
+    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home 
+  else
+    if [ -d /usr/j2se -a -x /usr/j2se/bin/javac ]; then
+       JAVA_HOME=/usr/j2se
+    fi

I got past this problem. I am not a shell-expert so there is probably a better solution.

> Create a script that allows users to easily update their Derby jars with the JDBC4 classes.
> -------------------------------------------------------------------------------------------
>                 Key: DERBY-1846
>                 URL: http://issues.apache.org/jira/browse/DERBY-1846
>             Project: Derby
>          Issue Type: Improvement
>          Components: Demos/Scripts
>    Affects Versions:
>            Reporter: Andrew McIntyre
>         Assigned To: Andrew McIntyre
>             Fix For:
>         Attachments: derby-1846-v1.diff, derby-1846-v2.diff, derby1846-batchFix_v1.diff,
modules.properties, output_batchFix_v1.txt
> Since the resolution of the JDBC 4 licensing issue was to not ship a build that includes
Derby's JDBC 4 code, but continue to ship the Derby source files for them, a script which
automatically compiles and updates the Derby jars with the JDBC 4 classes would be useful.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message