Changing the "example" target to depend on "compile.tests" fixes this
<target name="example" depends="compile.example,compile.tests" Niall On 8/17/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
Can you file an issue ticket for this please: http://jakarta.apache.org/commons/validator/issue-tracking.html Niall On 8/17/06, Matthias Fischer <[EMAIL PROTECTED]> wrote: > When I try building the example (which uses validator standalone), I get > the error listed below. Can anybody help? > > Kind regards > Matthias > > > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src>ant > example > Buildfile: build.xml > > init: > [echo] -------- validator 1.3.0 -------- > > check-availability: > [echo] doing check-availability... > > check-dojo-lib: > [echo] doing check-dojo-lib... > > download-dependencies: > [echo] doing download-dependencies... > > download-beanutils: > [echo] Downloading beanutils... > [get] Getting: > http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0.jar > [get] To: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\lib\commons-beanutils.jar > [get] Not modified - so not downloaded > > download-digester: > [echo] Downloading digester... > [get] Getting: > http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.6.jar > [get] To: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\lib\commons-digester.jar > [get] Not modified - so not downloaded > > download-logging: > [echo] Downloading logging... > [get] Getting: > http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar > [get] To: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\lib\commons-logging.jar > [get] Not modified - so not downloaded > > download-oro: > [echo] Downloading oro... > [get] Getting: http://www.ibiblio.org/maven/oro/jars/oro-2.0.8.jar > [get] To: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\lib\oro.jar > [get] Not modified - so not downloaded > > download-junit: > [echo] Downloading junit... > [get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar > [get] To: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\lib\junit.jar > [get] Not modified - so not downloaded > > download-dojo-compress: > > prepare: > > static: > > compile: > > prepare.example: > [mkdir] Created dir: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\target\example > > compile.example: > [javac] Compiling 2 source files to > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\target\example > [javac] Note: > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\src\example\org\apache\commons\validator\example\ValidateExample.java > uses or overrides a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [copy] Copying 2 files to > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\target\example > > example: > [main] Exception in thread "main" > org.apache.commons.validator.ValidatorException: > org.apache.commons.validator.TestValidator > [main] at > org.apache.commons.validator.ValidatorAction.loadValidationClass(ValidatorAction.java:623) > [main] at > org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:531) > [main] at > org.apache.commons.validator.Field.validateForRule(Field.java:766) > [main] at > org.apache.commons.validator.Field.validate(Field.java:846) > [main] at org.apache.commons.validator.Form.validate(Form.java:290) > [main] at > org.apache.commons.validator.Validator.validate(Validator.java:354) > [main] at > org.apache.commons.validator.example.ValidateExample.main(ValidateExample.java:106) > > BUILD FAILED > D:\Downloads\commons-validator-1.3.0-src\commons-validator-1.3.0-src\build.xml:464: > Java returned: 1 > > -- > Schützen Sie das was Ihnen wichtig ist ! > http://iam-solution.de > Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen! > > ----------------------------------------------------------------- > Matthias Fischer Fon: +49-7541-6047-148 > Dipl. Informatiker (FH) Fax: +49-7541-6047-111 > doubleSlash Net-Business GmbH [EMAIL PROTECTED] > Müllerstr. 12 B http://doubleSlash.de > 88045 Friedrichshafen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
