From: Mark Rotteveel <mark@lawinegevaar.nl>
To: List <pgsql-jdbc@postgresql.org>
Subject: Re: Pre-processing during build
Date: Wed, 17 Jun 2015 08:32:34 +0200
Message-ID: <2e342260dbeeba275a4e7d81cc9ff572@imap.procolix.com> (raw)
In-Reply-To: <CAB=Je-F6v2EeTOx=42FBfXNKFw8PNTsC99xRMvrVtg0GG+OMZA@mail.gmail.com>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu>
<CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com>
<CAH7T-ap2yMyiCEEajffqd863Dpnjag_LVvWPnP5PuARpbbJ1UA@mail.gmail.com>
<45e4ecb7fe5cfb9bc3c61480284b810c@imap.procolix.com>
<CANEdHmjYkFBQ7eFcgAu5ZfLKXDdKLhr+18o36w3C+06Jw+gtLA@mail.gmail.com>
<CAB=Je-F6v2EeTOx=42FBfXNKFw8PNTsC99xRMvrVtg0GG+OMZA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On Tue, 16 Jun 2015 17:19:27 +0300, Vladimir Sitnikov
<sitnikov.vladimir@gmail.com> wrote:
> Mark> My experience is that Ant gives you a lot more flexibility
>
> What that flexibility is good for?
I am not here to start a "my favorite build system"-war, I am just saying
that for a project like a JDBC driver, which needs to target different
versions of Java, the flexibility of Ant may be necessary, or getting it
working and working correctly on Maven may be more complex, especially as
Ant is already in place and working.
> The drawbacks of Ant are:
> 1) No "easy way to configure IDE". This includes "download javadoc and
> source", adding dependencies to the classpath, etc, etc.
Good point.
> 2) No easy way to run tests. With maven you just hit `mvn install` or
> `mvn test` and it just works. With Ant you have to read instructions.
That is a matter of using targetnames that follow a convention, correct
dependencies and a sane default target (in which case just running ant
could be sufficient to build and test).
> 3) No easy way to test different versions. With maven, I can depend on
> "snapshot" versions in my client application, and I easily can
> debug&step-into.
> Unfortunately, due to #1, debugging dependencies is not that easy.
Good point, you can achieve that with Ant+Ivy, though that will complicate
IDE integration further.
> 4) No easy integration with other systems. For instance, if using
> maven you can just add findbugs, sonar, etc, etc.
> If you want to try recent Facebook's infer, you just hit `infer mvn
> install`
SonarQube, findbugs and Infer support ant. It might require more explicit
config than in Maven, but that should be setup once and forget, for infer:
infer -- ant <your build target>
> Well, gradle might be even better approach, however I have not used it
> yet, so I have nothing to say here.
I use Gradle as well, but I don't know it too well yet. It is a bit of a
maven/ant hybrid, and I am not yet sure if I'd prefer it over Ant (or
Maven).
Mark
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: mark@lawinegevaar.nl
Subject: Re: Pre-processing during build
In-Reply-To: <2e342260dbeeba275a4e7d81cc9ff572@imap.procolix.com>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com> <CAH7T-ap2yMyiCEEajffqd863Dpnjag_LVvWPnP5PuARpbbJ1UA@mail.gmail.com> <45e4ecb7fe5cfb9bc3c61480284b810c@imap.procolix.com> <CANEdHmjYkFBQ7eFcgAu5ZfLKXDdKLhr+18o36w3C+06Jw+gtLA@mail.gmail.com> <CAB=Je-F6v2EeTOx=42FBfXNKFw8PNTsC99xRMvrVtg0GG+OMZA@mail.gmail.com> <2e342260dbeeba275a4e7d81cc9ff572@imap.procolix.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