Обсуждение: patch: avoid deprecation warning from recent Ant versions

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

patch: avoid deprecation warning from recent Ant versions

От
Oliver Jowett
Дата:
This patch to build.xml avoids using <available> to override an already-set
property ('ssl'), as this generates a deprecation warning in more recent Ant
versions. Tested against Ant 1.5.3.

-O

Вложения

Re: patch: avoid deprecation warning from recent Ant versions

От
Barry Lind
Дата:
Patch applied.

thanks,
--Barry


Oliver Jowett wrote:
> This patch to build.xml avoids using <available> to override an already-set
> property ('ssl'), as this generates a deprecation warning in more recent Ant
> versions. Tested against Ant 1.5.3.
>
> -O
>
>
> ------------------------------------------------------------------------
>
> Index: src/interfaces/jdbc/build.xml
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/build.xml,v
> retrieving revision 1.32
> diff -u -c -r1.32 build.xml
> *** src/interfaces/jdbc/build.xml    27 Feb 2003 05:45:43 -0000    1.32
> --- src/interfaces/jdbc/build.xml    20 Jul 2003 05:38:54 -0000
> ***************
> *** 22,28 ****
>     <property name="builddir" value="build" />
>     <property name="package" value="org/postgresql" />
>     <property name="debug" value="on" />
> -   <property name="ssl" value="false" />
>
>     <property file="build.properties"/>
>
> --- 22,27 ----
> ***************
> *** 167,179 ****
>           <equals arg1="${ssl}" arg2="true"/>
>       </condition>
>       <condition property="ssl_config" value="//">
> !         <equals arg1="${ssl}" arg2="false"/>
>       </condition>
>       <condition property="ssl_edition" value="SSL">
>           <equals arg1="${ssl}" arg2="true"/>
>       </condition>
>       <condition property="ssl_edition" value="NO SSL">
> !         <equals arg1="${ssl}" arg2="false"/>
>       </condition>
>
>       <!-- Some defaults -->
> --- 166,182 ----
>           <equals arg1="${ssl}" arg2="true"/>
>       </condition>
>       <condition property="ssl_config" value="//">
> !         <not>
> !             <equals arg1="${ssl}" arg2="true"/>
> !         </not>
>       </condition>
>       <condition property="ssl_edition" value="SSL">
>           <equals arg1="${ssl}" arg2="true"/>
>       </condition>
>       <condition property="ssl_edition" value="NO SSL">
> !         <not>
> !             <equals arg1="${ssl}" arg2="true"/>
> !         </not>
>       </condition>
>
>       <!-- Some defaults -->
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match