Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 32751 invoked from network); 25 Jul 2006 15:07:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 15:07:36 -0000 Received: (qmail 78621 invoked by uid 500); 25 Jul 2006 15:07:36 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 78557 invoked by uid 500); 25 Jul 2006 15:07:36 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 78546 invoked by uid 99); 25 Jul 2006 15:07:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 08:07:36 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 08:07:35 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 8F7A01A981A; Tue, 25 Jul 2006 08:07:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r425411 - in /db/derby/docs/trunk/src/tools: rtoolsijproprefdatasource.dita ttoolsij98878.dita Date: Tue, 25 Jul 2006 15:07:14 -0000 To: derby-commits@db.apache.org From: rhillegas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060725150715.8F7A01A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: rhillegas Date: Tue Jul 25 08:07:12 2006 New Revision: 425411 URL: http://svn.apache.org/viewvc?rev=425411&view=rev Log: DERBY-1271: Committed derlby-1271_toolsGuide_v01.diff, the JDBC4-related changes to the Tools Guide. Modified: db/derby/docs/trunk/src/tools/rtoolsijproprefdatasource.dita db/derby/docs/trunk/src/tools/ttoolsij98878.dita Modified: db/derby/docs/trunk/src/tools/rtoolsijproprefdatasource.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/tools/rtoolsijproprefdatasource.dita?rev=425411&r1=425410&r2=425411&view=diff ============================================================================== --- db/derby/docs/trunk/src/tools/rtoolsijproprefdatasource.dita (original) +++ db/derby/docs/trunk/src/tools/rtoolsijproprefdatasource.dita Tue Jul 25 08:07:12 2006 @@ -30,7 +30,14 @@ you need to set the ij.dataSource.databaseName and ij.dataSource.createDatabase properties as well.ij.dataSource=dataSourcename ij.dataSource.databaseName=databasename [ij.dataSource.createDatabase=create] -Examplejava -Dij.dataSource=org.apache.derby.jdbc.EmbeddedDataSource +Example + +# +# If your application runs on JDK 1.6 or higher, then you should +# specify the JDBC4 variant of this DataSource: +# org.apache.derby.jdbc.EmbeddedDataSource40. +# +java -Dij.dataSource=org.apache.derby.jdbc.EmbeddedDataSource -Dij.dataSource.databaseName=sample -Dij.dataSource.createDatabase=create
For more information about DataSources, refer to the JDBC documentation and "Using as a Modified: db/derby/docs/trunk/src/tools/ttoolsij98878.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/tools/ttoolsij98878.dita?rev=425411&r1=425410&r2=425411&view=diff ============================================================================== --- db/derby/docs/trunk/src/tools/ttoolsij98878.dita (original) +++ db/derby/docs/trunk/src/tools/ttoolsij98878.dita Tue Jul 25 08:07:12 2006 @@ -22,12 +22,10 @@

You can run scripts in ij in any of the following ways:

Name an input file as a command-line argument. For -example:java -Djdbc.drivers=org.apache.derby.jdbc.EmbeddedDriver - org.apache.derby.tools.ij <myscript.sql> +example:java org.apache.derby.tools.ij <myscript.sql> Redirect standard input to come from a file. For -example:java -Djdbc.drivers=org.apache.derby.jdbc.EmbeddedDriver - org.apache.derby.tools.ij < <myscript.sql> +example:java org.apache.derby.tools.ij < <myscript.sql> Use the Run command from the ij command line. For example:ij> run 'myscript.sql'; @@ -38,8 +36,7 @@ ij echoes input from a file. If you redirect standard input to come from a file, ij does not echo commands.

You can save output in any of the following ways:

    -
  • By redirecting output to a file:java -Djdbc.drivers=org.apache.derby.jdbc.EmbeddedDriver - org.apache.derby.tools.ij <myscript.sql> > <myoutput.txt> +
  • By redirecting output to a file:java org.apache.derby.tools.ij <myscript.sql> > <myoutput.txt>
  • By setting the ij.outfile property:java -Dij.outfile=<myoutput.txt> org.apache.derby.tools.ij <myscript.sql>