ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh Vardhan" <dpvard...@hotmail.com>
Subject CVS and ANT
Date Sun, 22 Jul 2001 22:34:18 GMT
Hello,

I am using CVS with ant. When my CVS times out, ANT continues to do a build,
instead of stopping and giving an error. Does anybody know of any work
around or if this is a bug or if I am doing anything wrong? I have included
the build.xml file and the output of the ant.

TIA for any help.

Dinesh
--------------------------------------------------------------------------
Ant output:
-------------------

Buildfile: build.xml

init:

clean:
  [deltree] DEPRECATED - The deltree task is deprecated.  Use delete
instead.
  [deltree] Deleting: C:\build\servlets

prepare:
    [mkdir] Created dir: C:\build\servlets

getsource:
      [cvs] cvs [update aborted]: connect to 10.0.20.8:2401 failed:
Connection t
imed out

compile:
    [javac] Compiling 193 source files to C:\build\servlets

BUILD SUCCESSFUL

Total time: 36 seconds
--------------------------------
My build.xml file is

<project name="evs20" default="compile" basedir=".">
   <target name="init">
      <property name="sourceDir" value="outstart"/>
      <property name="outputDir" value="servlets" />
      <property name="classPath"
value="C:\j2sdkee1.2.1\lib\j2ee.jar;C:\jConnect-5_2\classes\jconn2.jar;C:\De
velopment\log4j\log4j.jar;C:\Development\jce1_2-do.jar;C:\Development\outsta
rt\ecs-1.4.1.jar;c:\jdk1.3\lib\tools.jar;" />
   </target>

   <target name="clean" depends="init">
      <deltree dir="${outputDir}" />
   </target>

   <target name="prepare" depends="clean">
      <mkdir dir="${outputDir}" />
   </target>

  <target name="getsource" depends="prepare" >
      <cvs cvsRoot=":pserver:xyzasfasdf@10.0.20.8:/usr/local/cvs"
command="update"
           package="xyz"
           dest="${sourceDir}" />
   </target>

   <target name="compile" depends="getsource">
    <javac srcdir="${sourceDir}"
              destdir="${outputDir}"
              classpath="${classpath}"
              debug="on"
              deprecation="off"
              optimize="on" >
         <include name="**/*.java"/>
         <exclude name="**/helpsystem/*.java" />
         <exclude name="**/version.txt" />
        </javac>
   </target>

</project>



Mime
View raw message