ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rolaren...@earthlink.net
Subject How to get ANT + CVS to work in Eclipse?
Date Wed, 15 Dec 2004 17:59:28 GMT

(First time trying to "post" -- hope this works) 

I am using Eclipse 2.1.3 (or 3.0.1) and would like to write an ANT-script, to be run from
within Eclipse, that would check out some list of projects, but when I try to run the cvs-task,
it crashes because I have not logged in; when I try to log in, it hangs because there is no
log-in console (or something).  So how do I do it? I append my attempt at a script, with the
non-functional stuff commented out ... 

thanks,
Paul 

<project name="checkout" default="run">

   <target name="checkOutAll">
      <echo message="NO CHECK OUT!!"></echo>
<!-- - ->
      <cvs command="login"
         cvsroot=":pserver:pkeyser@awbcvs.foo.bar.com:14306/cvs/cvsroots/awbsystem">
      </cvs>
<!- - - -> 
      <cvs command="checkout" package="com.bar.foo" 
         cvsroot=":pserver:pkeyser@awbcvs.foo.bar.com:14306/cvs/cvsroots/awbsystem">
      </cvs>
<!- - --> 
   </target>

   <target name="bumpVersionAll" description="Increment the plugin.xml version-#">
      <echo file="plugin.xml" message="plugin 0.3.81"></echo>
      <echo message="basedir = ${basedir}/.."></echo>
      <replace token="0.3.81" value="0.3.82" dir="${basedir}/..">
         <include name="**/plugin.xml"/>
      </replace>
   </target>

   <target name="refreshAll" depends="bumpVersionAll" description="Refresh each project">
      <!-- ANT provides no way to list all resources --> 
      <eclipse.refreshLocal resource="com.bar.foo" depth="infinite"/>
      <eclipse.refreshLocal resource="com.bar.foo.help" depth="infinite"/>
      <eclipse.refreshLocal resource="com.bar.foo.metamodel.AWB" depth="infinite"/>
   </target>

   <target name="run" depends="checkOutAll, refreshAll">
   </target>

</project>




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


Mime
View raw message