pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: PostgreSQL mailing lists <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC build broken by commit 9f9019b
Date: Wed, 20 Aug 2014 12:20:55 +0800
Message-ID: <53F42227.8050409@2ndquadrant.com> (raw)
In-Reply-To: <53F4194F.4030609@2ndquadrant.com>
References: <CAB7nPqRox8wiWQ-FtCa1V0RmAGiwiVQfve1CBbo4z1P4w1vUqw@mail.gmail.com>
	<53F4194F.4030609@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On 08/20/2014 11:43 AM, Craig Ringer wrote:
> Taking a look now. Odd - did I fail to push a final fixup before the merge?

Confirmed - yet I'm confused, as I'm pretty sure I remember Travis
passing with this, and just not updating the github issue. It was a
while ago.

Upon examining my local history, it looks like a case of "Oh, I should
also make this one minor fix that can't break anything just before I push".

Right.

I've pushed a fix.







BTW, I had to apply the attached diff to get the driver to build with my
ant 1.9.2, packaged in Fedora 20 .

The usual approach of popping maven-ant-tasks.jar in lib/ and running:

  ant -lib lib

or

  ant -lib lib/maven-ant-tasks.jar

was not effective, and still failed with:

$ ant -lib lib clean
Buildfile: /home/craig/projects/pgjdbc/build.xml

BUILD FAILED
/home/craig/projects/pgjdbc/build.xml:110: Problem: failed to create
task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/craig/.ant/lib
        -a directory added on the command line with the -lib argument


... even though:


ant -lib lib clean -diagnostics

showed that maven-ant-tasks.jar was on the classpath, and unpacking the
jar showed that it contained the required antlib.xml that ant -v was
looking for:

[antlib:org.apache.maven.artifact.ant] Could not load definitions from
resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.


Weird. I don't think I had this issue last time around.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Attachments:

build.xml.diff (text/x-patch, 625B) download diff --git a/build.xml b/build.xml index 9ce437d..1c4f1d2 100644 --- a/build.xml +++ b/build.xml @@ -17,6 +17,11 @@ <project name="postgresqlJDBC" default="all" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> + <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" /> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" + uri="antlib:org.apache.maven.artifact.ant" + classpathref="maven-ant-tasks.classpath" /> + <!-- set global properties for this build --> <property name="srcdir" value="." /> <property name="jardir" value="jars" />

view thread (8+ messages)  latest in thread

Message-ID: <53F42227.8050409@2ndquadrant.com>
Permalink:  ../53F42227.8050409@2ndquadrant.com/
Also on:    postgresql.org/message-id/53F42227.8050409@2ndquadrant.com

 ·  · 

reply

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: craig@2ndquadrant.com, michael.paquier@gmail.com
  Subject: Re: JDBC build broken by commit 9f9019b
  In-Reply-To: <53F42227.8050409@2ndquadrant.com>
  References: <CAB7nPqRox8wiWQ-FtCa1V0RmAGiwiVQfve1CBbo4z1P4w1vUqw@mail.gmail.com> <53F4194F.4030609@2ndquadrant.com> <53F42227.8050409@2ndquadrant.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