From: Albert Kurucz <albert.kurucz@gmail.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Upgrade to 9 questions
Date: Sat, 2 Oct 2010 21:43:21 -0500
Message-ID: <AANLkTikzCTFiYYF02aOwhwwaaOuF1P5buePyXfKeJMU6@mail.gmail.com> (raw)
In-Reply-To: <4CA6BC0D.8070607@opencloud.com>
References: <AANLkTimZMBWZ+Xx_GstRz+kp6oEKg-zzs7zpf=WOCu=K@mail.gmail.com>
<AANLkTi=Z-go6fXUrAUN=guUk9rihyZz0dW3YWVtLXyTG@mail.gmail.com>
<AANLkTinToR=Tv27KoJBV1zM2XJnj=bksrKijMnbwtSWV@mail.gmail.com>
<4CA69A30.5090300@opencloud.com>
<AANLkTinS2spUPq029Rf-YK86yd_OsfymXY848+Av53TD@mail.gmail.com>
<4CA6BC0D.8070607@opencloud.com>
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 <oliver@opencloud.com> 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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: albert.kurucz@gmail.com, oliver@opencloud.com
Subject: Re: Upgrade to 9 questions
In-Reply-To: <AANLkTikzCTFiYYF02aOwhwwaaOuF1P5buePyXfKeJMU6@mail.gmail.com>
References: <AANLkTimZMBWZ+Xx_GstRz+kp6oEKg-zzs7zpf=WOCu=K@mail.gmail.com> <AANLkTi=Z-go6fXUrAUN=guUk9rihyZz0dW3YWVtLXyTG@mail.gmail.com> <AANLkTinToR=Tv27KoJBV1zM2XJnj=bksrKijMnbwtSWV@mail.gmail.com> <4CA69A30.5090300@opencloud.com> <AANLkTinS2spUPq029Rf-YK86yd_OsfymXY848+Av53TD@mail.gmail.com> <4CA6BC0D.8070607@opencloud.com> <AANLkTikzCTFiYYF02aOwhwwaaOuF1P5buePyXfKeJMU6@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox