Thread: NEWBIE ant build.xml FAILED !!

NEWBIE ant build.xml FAILED !!

From
impala
Date:
Hi
I am new with postgres and still struggling with the
driver installation phase. I downloaded
postgresql-7.2.tar.gz. I also extract the ant tar file
and put the ANT_HOME/bin in the .bashrc PATH.
After running ./configure --with-java and gmake, I
ran ant in ../interfaces/jdbc where the build.xml file
is located. I encountered the following errors when
running ant.
The ant version is 1.4.1
Do I still need to edit the build.xml file manually?

Buildfile: build.xml

all:

prepare:

check_versions:

driver:    [echo] Configured build for the JDBC2 edition
driver

compile:   [javac] Compiling 40 source files to
/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/build   [javac]
/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/org/postgresql/Driver.java:234:
';' expected   [javac]                 return ${major};   [javac]                     ^   [javac]
/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/org/postgresql/Driver.java:244:
';' expected   [javac]                 return ${minor};   [javac]                     ^   [javac]
/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/org/postgresql/Driver.java:234:
cannot resolve symbol   [javac] symbol  : variable $   [javac] location: class org.postgresql.Driver   [javac]
      return ${major};   [javac]                    ^   [javac]
 
/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/org/postgresql/Driver.java:244:
cannot resolve symbol   [javac] symbol  : variable $   [javac] location: class org.postgresql.Driver   [javac]
      return ${minor};   [javac]                    ^   [javac] Note: Some input files use or override a
 
deprecated API.   [javac] Note: Recompile with -deprecation for
details.   [javac] 4 errors

BUILD FAILED

/usr/share/mypgs/postgresql-7.2/src/interfaces/jdbc/build.xml:72:
Compile failed, messages should have been provided.

Total time: 7 seconds

Can someone PLEASE help me with this problem?I don't
know where I'm going wrong. Can the problem be at ant?

Thanks
Nic

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/


Re: NEWBIE ant build.xml FAILED !!

From
Peter Eisentraut
Date:
impala writes:

> I am new with postgres and still struggling with the
> driver installation phase. I downloaded
> postgresql-7.2.tar.gz. I also extract the ant tar file
> and put the ANT_HOME/bin in the .bashrc PATH.
> After running ./configure --with-java and gmake, I
> ran ant in ../interfaces/jdbc where the build.xml file
> is located. I encountered the following errors when
> running ant.

Don't do this.  The JDBC driver will be built automatically by the
top-level gmake.

-- 
Peter Eisentraut   peter_e@gmx.net