DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15399>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15399 'tempfile' task creates negative random numbers. Summary: 'tempfile' task creates negative random numbers. Product: Ant Version: 1.5.1 Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've noticed that the tempfile task can generate a directory name with an embedded '-'. The target below produces this error consistently under Java 1.3.1 , Windows 2000: <target name="init" description="setup output directories"> <tstamp prefix="start"/> <tempfile property="build.dir" prefix="myproj-${start.DSTAMP}${start.TSTAMP}-" suffix="-build"/> <mkdir dir="${build.dir}"/> </target> One solution: in org.apache.tools.ant.util.FileUtils:createTempFile(), replace the rand.nextInt() call with rand.nextInt( 99999 ) (or rand.nextInt( Integer.MAX_VALUE.) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>