ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: Automating cvs modules checkout with build.psf using Ant Script
Date Sat, 23 Feb 2013 07:59:53 GMT
> I am able to checkout the projects directly in ant script using cvs
> commands but i need an sample for the following requirement. Please
> help.
> 
> Need to run build.xml ant script with project name as argument. Ihe
> script should take the build.psf and needs to checkout the required
> projects to the local workspace.

Take your working build script and replace your cvs project name by
${cvs.project.name}. Then start your Ant buildfile with
-Dcvs.project.name=anExistingCvsProject 

As this is a required parameter you could also check its presence:
  <project>
    <fail message="Please specify cvs.project.name"
unless="cvs.project.name"/>
    ...


Jan


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


Mime
View raw message