ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs ExecTaskTest.java
Date Tue, 29 Jul 2003 08:53:00 GMT
bodewig     2003/07/29 01:53:00

  Modified:    src/testcases/org/apache/tools/ant/taskdefs
                        ExecTaskTest.java
  Log:
  JDK 1.2 compatibility
  
  Revision  Changes    Path
  1.4       +4 -4      ant/src/testcases/org/apache/tools/ant/taskdefs/ExecTaskTest.java
  
  Index: ExecTaskTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/ExecTaskTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExecTaskTest.java	28 Jul 2003 15:23:51 -0000	1.3
  +++ ExecTaskTest.java	29 Jul 2003 08:53:00 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -115,8 +115,8 @@
               }
               GregorianCalendar now = new GregorianCalendar();
               // security
  -            if (now.getTimeInMillis() - startwait.getTimeInMillis() > MAX_BUILD_TIME)
{
  -                System.out.println("aborting wait, too long " + (now.getTimeInMillis()
- startwait.getTimeInMillis()) + "milliseconds");
  +            if (now.getTime().getTime() - startwait.getTime().getTime() > MAX_BUILD_TIME)
{
  +                System.out.println("aborting wait, too long " + (now.getTime().getTime()
- startwait.getTime().getTime()) + "milliseconds");
                   break;
               }
           }
  @@ -173,7 +173,7 @@
            * @return time in millis of the build
            */
           public long getTimeElapsed() {
  -            return timeFinished.getTimeInMillis() - timeStarted.getTimeInMillis();
  +            return timeFinished.getTime().getTime() - timeStarted.getTime().getTime();
           }
           public void start() {
               worker = new Thread(this, myBuildFile.toString() + "/" + target);
  
  
  

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


Mime
View raw message