Обсуждение: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

Поиск
Список
Период
Сортировка

pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Peter Eisentraut - PostgreSQL
Дата:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    petere@hub.org    01/07/06 19:07:20

Modified files:
    contrib        : Makefile
    contrib/retep  : build.xml
    src/interfaces/jdbc: Makefile build.xml
Added files:
    contrib/retep  : Makefile
Removed files:
    .              : build.xml

Log message:
    Resolve a number of oddities in the Java build.  First, remove the weird
    redirections between the build files, which didn't work completely.  Now
    you just go to the directory of your choice and run make.  Clean up the
    build files to have a logical order, fix the unnecessary rebuilds, prevent
    the deleting targets from removing files they're not responsible for.  Ant
    1.3 does not have a bug.  It deletes directories just fine if you follow
    the documentation.


Re: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Bruce Momjian
Дата:
> CVSROOT:    /home/projects/pgsql/cvsroot
> Module name:    pgsql
> Changes by:    petere@hub.org    01/07/06 19:07:20
>
> Modified files:
>     contrib        : Makefile
>     contrib/retep  : build.xml
>     src/interfaces/jdbc: Makefile build.xml
> Added files:
>     contrib/retep  : Makefile
> Removed files:
>     .              : build.xml
>
> Log message:
>     Resolve a number of oddities in the Java build.  First, remove the weird
>     redirections between the build files, which didn't work completely.  Now
>     you just go to the directory of your choice and run make.  Clean up the
>     build files to have a logical order, fix the unnecessary rebuilds, prevent
>     the deleting targets from removing files they're not responsible for.  Ant
>     1.3 does not have a bug.  It deletes directories just fine if you follow
>     the documentation.

Thanks.  I could never get ant 1.3 to work and suspected it was a bug
after another user had a similar problem with his build.xml project and
wanted to know how I was deleting the directories. What was the trick.
I read the docs and didn't get it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Peter Eisentraut
Дата:
Bruce Momjian writes:

> Thanks.  I could never get ant 1.3 to work and suspected it was a bug
> after another user had a similar problem with his build.xml project and
> wanted to know how I was deleting the directories. What was the trick.
> I read the docs and didn't get it.

Use <delete dir="xxx"> to delete a directory.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Re: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Bruce Momjian
Дата:
> Bruce Momjian writes:
>
> > Thanks.  I could never get ant 1.3 to work and suspected it was a bug
> > after another user had a similar problem with his build.xml project and
> > wanted to know how I was deleting the directories. What was the trick.
> > I read the docs and didn't get it.
>
> Use <delete dir="xxx"> to delete a directory.

I just a cvs update and did a 'make' and 'make clean' from the jdbc
directory and the directories themselves are still there:

    #$ gmake clean
    /usr/local/bin/ant -buildfile ./build.xml clean
    Buildfile: ./build.xml

    clean:
       [delete] Deleting directory /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/build
       [delete] Deleting directory /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/jars
       [delete] Deleting: /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java

    BUILD SUCCESSFUL

    Total time: 1 second
    #$ lf
    CHANGELOG       Implementation  build/          example/        org/
    CVS/            Makefile        build.xml       jars/           tags@
    ID@             README          crtags@         jdbc.jpx        utils/

On your system, do /build and /jars still appear?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Peter Eisentraut
Дата:
Bruce Momjian writes:

> I just a cvs update and did a 'make' and 'make clean' from the jdbc
> directory and the directories themselves are still there:

If you can reproduce this then you might want to file a bug report with
the Ant developers.  I'm using Ant 1.3 and Sun's JDK 1.3 and it works
according to the plan.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Re: pgsql/ ontrib/Makefile ontrib/retep/build.xml ...

От
Bruce Momjian
Дата:
> Bruce Momjian writes:
>
> > I just a cvs update and did a 'make' and 'make clean' from the jdbc
> > directory and the directories themselves are still there:
>
> If you can reproduce this then you might want to file a bug report with
> the Ant developers.  I'm using Ant 1.3 and Sun's JDK 1.3 and it works
> according to the plan.

I have jdk 1.2 and ant 1.3, and as you can see, all the directories
still exist after a make clean:

    #$ gmake clean
    /usr/local/bin/ant -buildfile ./build.xml clean
    Buildfile: ./build.xml

    clean:
       [delete] Deleting directory
    /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/build
       [delete] Deleting directory
    /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/jars
       [delete] Could not find file
    /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java
    to delete.

    BUILD SUCCESSFUL

    Total time: 1 second
    #$ ls -lR build jars
    build:
    total 2
    drwxr-xr-x  2 postgres  wheel  1024 Jul  7 10:58 example
    drwxr-xr-x  3 postgres  wheel   512 Jul  7 10:58 org


    build/example:

    build/org:
    total 1
    drwxr-xr-x  8 postgres  wheel  512 Jul  7 10:58 postgresql

    build/org/postgresql:
    total 6
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 core
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 fastpath
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 geometric
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 jdbc2
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 largeobject
    drwxr-xr-x  2 postgres  wheel  512 Jul  7 10:58 util

    build/org/postgresql/core:

    build/org/postgresql/fastpath:

    build/org/postgresql/geometric:

    build/org/postgresql/jdbc2:

    build/org/postgresql/largeobject:

    build/org/postgresql/util:

    jars:

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026