Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 78E0D1337B9D for ; Sat, 2 Oct 2010 23:43:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 58450-01 for ; Sun, 3 Oct 2010 02:43:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id 052801337B5A for ; Sat, 2 Oct 2010 23:43:21 -0300 (ADT) Received: by wwb17 with SMTP id 17so5090949wwb.19 for ; Sat, 02 Oct 2010 19:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=hEGwVyBqSI57V11WbpSUCVJYzMx4jpc9b42x8kMLGBw=; b=auAVZ2KwJJ4qyWDIg3IlI2sM6X3ihKSI74mR1acRJgx23BZSlLxZfgV1BAepcjOIqQ RazH7gJUk2qnlq0++ZV3xoDTxNkFT6/UyLbWXq0M1QimcV0MrAE+jnSTsTiVM42eRDud CuXLxXePoV6v5u5DowNWYhjjIamHCtiJitGoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xG2JSCqB220IhkyKFARrPovLcy4rtfL4Jv9nfcug9GasM0oTpjQdsIDt5raKeNxthB 75eZwu42NYIzvzfsqldfFGOGRu8DBNoxafL2wqbjjngvOU3EzaV5b5hvNS/RGyeSekbk TFveda7rvBsc6Ug8njd9/LFPz09Tg3VBvyvyo= MIME-Version: 1.0 Received: by 10.216.25.16 with SMTP id y16mr3801401wey.25.1286073801809; Sat, 02 Oct 2010 19:43:21 -0700 (PDT) Received: by 10.216.169.66 with HTTP; Sat, 2 Oct 2010 19:43:21 -0700 (PDT) In-Reply-To: <4CA6BC0D.8070607@opencloud.com> References: <4CA69A30.5090300@opencloud.com> <4CA6BC0D.8070607@opencloud.com> Date: Sat, 2 Oct 2010 21:43:21 -0500 Message-ID: Subject: Re: Upgrade to 9 questions From: Albert Kurucz To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=0016e6d63f441ca1120491ad648a X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/30 X-Sequence-Number: 20998 --0016e6d63f441ca1120491ad648a Content-Type: text/plain; charset=UTF-8 Oliver, Thanks for the info, so "ant driver" will create Java sources from the "templated files". How does it know which JDBC version and which JDK version I have the desire to build for? Is it in some config files or additional command line parameters for the "ant driver" command or some environment variables? Releasing multiple separate sources for different versions of a product does not confusing me at all. Having one source code for each target version might be more confusing. Both ways have its own difficulties and their own benefits, and I am not trying to switch you. Albert On Fri, Oct 1, 2010 at 11:58 PM, Oliver Jowett wrote: > Albert Kurucz wrote: > > Oliver, > > > > What command do I need to give to Ant to make the necessary > substitutions? > > The slightly misleadingly named target "driver" will configure the build > environment and do all the substitutions, but not actually compile the > result. So: "ant driver" > > > Why source files are not release after preprocessing? > > Because the substitutions that are needed are different depending on > your build environment e.g. which JDBC version and JDK you are building > for. The ant buildfile handles both detecting your build environment and > performing suitable substitutions. Releasing multiple source > distributions, each of which only works for one environment, where the > only difference is in the 3-4 templated files - that'd be confusing and > unnecessary when the build process already handles it, don't you think? > > > Java source files please for the non Ant users! > > I don't think we really support building the driver except via ant, it > is something of a de-facto standard for building Java these days. (Ok, > now the Maven people are going to yell at me ;-)) > > Consider it a prerequisite for building the driver, just like having a > functional JDK installed is a prerequisite. > > -O > --0016e6d63f441ca1120491ad648a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oliver,

Thanks for the info, so "ant driver" will create J= ava sources from the "templated files".
How does it know which= JDBC version and which JDK version I have the desire to build for?
Is i= t in some config files or additional command line parameters for the "= ant driver" command or some environment variables?

Releasing multiple separate sources for different versions of a product= does not confusing me at all.
Having one source code for each target ve= rsion might be more confusing.
Both ways have its own difficulties and t= heir own benefits, and I am not trying to switch you.

Albert


On Fri, Oct 1, 2010 at 11:= 58 PM, Oliver Jowett <oliver@opencloud.com> wrote:
Albert Kurucz wrote:
> Oliver,
>
> What command do I need to give to Ant to make the necessary substituti= ons?

The slightly misleadingly named target "driver" will config= ure the build
environment and do all the substitutions, but not actually compile the
result. So: "ant driver"

> Why source files are not release after preprocessing?

Because the substitutions that are needed are different depending on<= br> your build environment e.g. which JDBC version and JDK you are building
for. The ant buildfile handles both detecting your build environment and performing suitable substitutions. Releasing multiple source
distributions, each of which only works for one environment, where the
only difference is in the 3-4 templated files - that'd be confusing and=
unnecessary when the build process already handles it, don't you think?=

> Java source files please for the non Ant users!

I don't think we really support building the driver except via an= t, it
is something of a de-facto standard for building Java these days. (Ok,
now the Maven people are going to yell at me ;-))

Consider it a prerequisite for building the driver, just like having a
functional JDK installed is a prerequisite.

-O

--0016e6d63f441ca1120491ad648a--