If you´re working on >JDK1.4, you simply use the methods of String for
checking.
Jan
> -Ursprüngliche Nachricht-
> Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 27. Oktober 2004 13:55
> An: Ant Users List
> Betreff: RE: property validation
>
i'm trying to find info on regexps on how to accomplish this. any pointers to the
place in the docs?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 7:40 AM
> To: [EMAIL PROTECTED]
> Subject: AW: property
Mark Lybarger wrote:
this is interesting indeed.
i'm only vaguely familar with schemas and their use. i have a build.xml which does my
build. does my custom schema go into build.xs? how do i reference that from
build.xml?
here's a simple build.xml that needs to validate a property MAJOR is num
1) try using regexps for validation
2) access is via ${MAJOR} - you´ve forgotten the curly braces
Jan
> -Ursprüngliche Nachricht-
> Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 27. Oktober 2004 13:39
> An: Ant Users List
> Betreff: RE: prop
is numeric:
found property $MAJOR
> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 7:19 PM
> To: Ant Users List
> Subject: Re: property validation
>
>
> Mark Lybarger wrote:
>
> > i'd l
Mark Lybarger wrote:
i'd like to validate some properties in my build file. we have version numbers
specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric
(preferably 2 digits or under). does anyone know how i can possibly use ant's script
(javascript) or something else to
i'd like to validate some properties in my build file. we have version numbers
specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric
(preferably 2 digits or under). does anyone know how i can possibly use ant's script
(javascript) or something else to validate this?
than