[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3516) bug report javac.xml



All the references to "javax.security.sasl" was removed from the ant
file because of:

The classes in "javax.security.sasl" are refactored to
"com.novell.security.sasl".
This removed the dependency of using namespace starting with
"javax.security.sasl" in jldap code base. After this fix, client
application can run using LDAP APIs in all the versions of Java 2
(including JDK 1.5). There will be no namespace issues in JDK 1.5. Also
this removed licensing issues of using classes starting with
"javax.security.sasl" namespace from LDAP APIs.

NOTE: Any client application using these APIs previously need to change
all the references from "javax.security.sasl" to
"com.novell.security.sasl" in their code before using the SASL APIs.

Regards,
Sudhir


>>> <foliveira@deg.cc> 01/25/05 10:18 PM >>>
Full_Name: Felipe Oliveira
Version: I don't know
OS: Linux
URL: ftp://ftp.openldap.org/incoming/ 
Submission from: (NULL) (198.70.16.205)


the ant task is not defined correctly, it doesn't include the
javax.security
package on ldap.jar. i am attaching the fixed file.
thanks,
felipe

"""
<!-- $OpenLDAP: pkg/jldap/javac.xml,v 1.14 2003/09/23 05:39:41 sunilk
Exp $ -->

<!--
=======================================================================
-->
<!-- JAVAC build file                                                  
    
-->
<!--
=======================================================================
-->
<project name="jldap" default="debug" basedir=".">
<!-- Targets                                                           
    
-->
<!--     debug   - Builds debug classes and jar files                  
    
-->
<!--               At the lowest level directory it only compiles java
files.-->
<!--     release - Builds release classes and jar files                
    
-->
<!--               At the lowest level directory it only compiles java
files.-->
<!--

******************************************************************************
 * Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS
SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT http://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE
"LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR
EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE
OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD
SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.

******************************************************************************
-->

    <!--
===================================================================
-->
    <!-- Initialization                                                
    
-->
    <!--
===================================================================
-->
    <target name="init">
        <tstamp/>
		<filter token="COMPILE_DEBUG" value="${DEBUG_VALUE}"/>
    </target>

    <target name="setupDebug" depends="init">
        <delete file="com/novell/ldap/client/Debug.java"/>
        <copy
        		file="com/novell/ldap/client/Debug.template"
        		tofile="com/novell/ldap/client/Debug.java"
        		overwrite="YES"
        		filtering="YES"
        />
    </target>

    <!--
===================================================================
-->
    <!-- build debug classes                                           
    
-->
    <!--
===================================================================
-->
    <target name="debug" depends="setupDebug">

        <echo message="DEBUG compile in com/novell"/>
        <mkdir dir="${build.debug}"/>
        <javac
                srcdir="."
               
includes="com/novell/**/*.java,javax/security/sasl/*.java,org/ietf/**/*.java"
                excludes="com/novell/services/**/*.java"
                destdir="${build.debug}"
                target="1.2"
                deprecation="off"
                debug="on"
                optimize="off">
                <classpath>
                	<pathelement
location="external/ssl/domestic/nssl1.2_dom.jar"/>
					<pathelement
location="external/jsse/lib/jcert.jar"/>
					<pathelement
location="external/jsse/lib/jnet.jar"/>
					<pathelement
location="external/jsse/lib/jsse.jar"/>
                </classpath>
        </javac>

        <echo message="Creating DEBUG ${lib.debug}/${ldap}.jar file"/>
        <mkdir dir="${lib.debug}"/>
        <jar
            jarfile="${lib.debug}/${ldap}.jar"
            basedir="${build.debug}"
        />
    </target>

    <!--
===================================================================
-->
    <!-- build release classes                                         
    
-->
    <!--
===================================================================
-->
    <target name="release" depends="setupDebug">

        <echo message="RELEASE compile in com/novell"/>
        <mkdir dir="${build}"/>
        <javac
                srcdir="."
               
includes="com/novell/**/*.java,javax/security/sasl/*.java,org/ietf/**/*.java"
                excludes="com/novell/services/**/*.java"
                destdir="${build}"
                target="1.2"
                deprecation="off"
                debug="off"
                optimize="on">
                <classpath>
                	<pathelement
location="external/ssl/domestic/nssl1.2_dom.jar"/>
					<pathelement
location="external/jsse/lib/jcert.jar"/>
					<pathelement
location="external/jsse/lib/jnet.jar"/>
					<pathelement
location="external/jsse/lib/jsse.jar"/>
                </classpath>
        </javac>

        <echo message="Creating RELEASE ${lib}/${ldap}.jar file"/>
        <mkdir dir="${lib}"/>
        <jar jarfile="${lib}/${ldap}.jar"
            basedir="${build}"
        />
    </target>

</project>
"""