Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z56tv-0000rH-PD for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 06:32:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z56tu-00025T-F1 for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 06:32:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z56tt-00025M-Fy for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 06:32:41 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z56tq-0000Pz-CV for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 06:32:40 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id 1584843C8D for ; Wed, 17 Jun 2015 08:32:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at smtp.procolix.com Received: from smtp.procolix.com ([127.0.0.1]) by localhost (host436.procolix.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vGVFa4PX7RM8 for ; Wed, 17 Jun 2015 08:32:34 +0200 (CEST) Received: from webmail.procolix.com (webmail.procolix.com [95.215.185.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mark@lawinegevaar.nl) by smtp.procolix.com (Postfix) with ESMTPSA id DB2D043A8F for ; Wed, 17 Jun 2015 08:32:34 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 17 Jun 2015 08:32:34 +0200 From: Mark Rotteveel To: List Subject: Re: Pre-processing during build In-Reply-To: References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <45e4ecb7fe5cfb9bc3c61480284b810c@imap.procolix.com> Message-ID: <2e342260dbeeba275a4e7d81cc9ff572@imap.procolix.com> X-Sender: mark@lawinegevaar.nl User-Agent: RoundCube Webmail/0.2 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On Tue, 16 Jun 2015 17:19:27 +0300, Vladimir Sitnikov 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 > 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