You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ni...@apache.org on 2006/08/18 16:02:47 UTC

svn commit: r432586 - in /jakarta/commons/proper/validator/trunk: build.xml src/share/org/apache/commons/validator/ValidatorAction.java xdocs/changes.xml

Author: niallp
Date: Fri Aug 18 07:02:45 2006
New Revision: 432586

URL: http://svn.apache.org/viewvc?rev=432586&view=rev
Log:
Fix for VALIDATOR-198 - example does not compile using ant build script. Also modify ValidatorAction to provide more obvious message for "class not found" - thanks to Matthias Fischer

Modified:
    jakarta/commons/proper/validator/trunk/build.xml
    jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorAction.java
    jakarta/commons/proper/validator/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/validator/trunk/build.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/validator/trunk/build.xml?rev=432586&r1=432585&r2=432586&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/build.xml (original)
+++ jakarta/commons/proper/validator/trunk/build.xml Fri Aug 18 07:02:45 2006
@@ -457,7 +457,7 @@
   </target>
 
 
-   <target name="example" depends="compile.example"
+   <target name="example" depends="compile.example,compile.tests"
     description="Run example application">
       <java fork="yes"
        classname="org.apache.commons.validator.example.ValidateExample" 

Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorAction.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorAction.java?rev=432586&r1=432585&r2=432586&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorAction.java (original)
+++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorAction.java Fri Aug 18 07:02:45 2006
@@ -624,7 +624,7 @@
         try {
             this.validationClass = loader.loadClass(this.classname);
         } catch (ClassNotFoundException e) {
-            throw new ValidatorException(e.getMessage());
+            throw new ValidatorException(e.toString());
         }
     }
     

Modified: jakarta/commons/proper/validator/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/validator/trunk/xdocs/changes.xml?rev=432586&r1=432585&r2=432586&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/validator/trunk/xdocs/changes.xml Fri Aug 18 07:02:45 2006
@@ -39,6 +39,9 @@
   <body>
 
     <release version="1.3.1" date="Pending">
+      <action dev="niallp" type="fix" issue="VALIDATOR-198" due-to="Matthias Fischer">
+        Example does not compile using ant build script.
+      </action>
       <action dev="niallp" type="fix" issue="VALIDATOR-189" due-to="Thomas Bailey">
         Validating indexed properties fails when <code>null</code>.
       </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org