You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stefan Bodewig <bo...@bost.de> on 2002/02/28 12:44:04 UTC

[EMAIL] checking for NestableException in the wrong package

Hi,

NestableException is in the lang module, not util.

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-commons-sandbox/email/build.xml,v
retrieving revision 1.1
diff -u -r1.1 build.xml
--- build.xml	9 Aug 2001 22:50:48 -0000	1.1
+++ build.xml	28 Feb 2002 11:42:03 -0000
@@ -56,6 +56,7 @@
   <path id="classpath">
     <pathelement location="${javamail.jar}"/>
     <pathelement location="${jaf.jar}"/>
+    <pathelement location="${commons-lang.jar}"/>
     <pathelement location="${commons-util.jar}"/>
   </path>
 
@@ -85,7 +86,13 @@
     <filter token="version" value="${component.version}"/>
 
     <available
-      classname="org.apache.commons.util.exception.NestableException" 
+      classname="org.apache.commons.lang.exception.NestableException" 
+      property="commons-lang.present"
+      classpathref="classpath"
+    />
+
+    <available
+      classname="org.apache.commons.util.GenerateUniqueId"
       property="commons-util.present"
       classpathref="classpath"
     />
@@ -118,6 +125,13 @@
     </antcall>
   </target>
 
+  <target name="check.commons-lang" unless="commons-lang.present">
+    <antcall target="property-warning">
+      <param name="name" value="commons-lang.jar"/>
+      <param name="value" value="${commons-lang.jar}"/>
+    </antcall>
+  </target>
+
   <target name="check.commons-util" unless="commons-util.present">
     <antcall target="property-warning">
       <param name="name" value="commons-util.jar"/>
@@ -125,7 +139,7 @@
     </antcall>
   </target>
 
-  <target name="prepare" depends="init,check.commons-util,
+  <target name="prepare" depends="init,check.commons-lang,check.commons-util,
                                   check.javamail,check.jaf"
     description="Prepare build directory">
     <mkdir dir="${build.home}"/>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [EMAIL] checking for NestableException in the wrong package

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 28 Feb 2002, Daniel Rall <dl...@finemaltcoding.com> wrote:
> Is Util still needed by Email at all?

Yes, GenerateUniqueId is used (that's why I've added another check).

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [EMAIL] checking for NestableException in the wrong package

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Is Util still needed by Email at all?

Stefan Bodewig <bo...@bost.de> writes:

> Hi,
>
> NestableException is in the lang module, not util.
>
> Index: build.xml
> ===================================================================
> RCS file: /home/cvspublic/jakarta-commons-sandbox/email/build.xml,v
> retrieving revision 1.1
> diff -u -r1.1 build.xml
> --- build.xml	9 Aug 2001 22:50:48 -0000	1.1
> +++ build.xml	28 Feb 2002 11:42:03 -0000
> @@ -56,6 +56,7 @@
>    <path id="classpath">
>      <pathelement location="${javamail.jar}"/>
>      <pathelement location="${jaf.jar}"/>
> +    <pathelement location="${commons-lang.jar}"/>
>      <pathelement location="${commons-util.jar}"/>
>    </path>
>  
> @@ -85,7 +86,13 @@
>      <filter token="version" value="${component.version}"/>
>  
>      <available
> -      classname="org.apache.commons.util.exception.NestableException" 
> +      classname="org.apache.commons.lang.exception.NestableException" 
> +      property="commons-lang.present"
> +      classpathref="classpath"
> +    />
> +
> +    <available
> +      classname="org.apache.commons.util.GenerateUniqueId"
>        property="commons-util.present"
>        classpathref="classpath"
>      />
> @@ -118,6 +125,13 @@
>      </antcall>
>    </target>
>  
> +  <target name="check.commons-lang" unless="commons-lang.present">
> +    <antcall target="property-warning">
> +      <param name="name" value="commons-lang.jar"/>
> +      <param name="value" value="${commons-lang.jar}"/>
> +    </antcall>
> +  </target>
> +
>    <target name="check.commons-util" unless="commons-util.present">
>      <antcall target="property-warning">
>        <param name="name" value="commons-util.jar"/>
> @@ -125,7 +139,7 @@
>      </antcall>
>    </target>
>  
> -  <target name="prepare" depends="init,check.commons-util,
> +  <target name="prepare" depends="init,check.commons-lang,check.commons-util,
>                                    check.javamail,check.jaf"
>      description="Prepare build directory">
>      <mkdir dir="${build.home}"/>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>