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=4898>. 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=4898 ClearCase set config spec task for ant Summary: ClearCase set config spec task for ant Product: Ant Version: 1.5 alpha (nightly) Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I used the exec task in ant and a perl script to make a setcs task. This task will grab a new config spec from a view profile and copy it to the view storage dir of a view. It will also append the load rules form the old config spec to the new config spec. This is done to ensure that no user input will be asked when running "cleartool setcs -current" to pick up the new config spec. Perhaps you can grab the setcs.pl from the ant-user mail listings. Below I've pasted the ant task from my build.xml. snippet from build.xml: ----------------------- <!-- This changes the config spec of the build view --> <target name="setcs" description="Changes config spec of build view"> <property file="c:\ant_Build\build.properties"/> <exec dir="${buildpath}" executable="perl"> <arg line="setcs.pl"/> <arg line="${view.storage}"/> <arg line="${newbranch}"/> </exec> <exec dir="${viewpath}" executable="cleartool"> <arg line="setcs"/> <arg line="-current"/> </exec> </target> Variables from build.properties: buildpath=c\:\\ant_Build #This is where all the ant files are stored viewpath=c\:\\build_view #Path of the view being built view.storage=c\:\\build_view.vws #Storage dir of the view. Usually ends with ".vws" newbranch=main #Name of new branch/view profile to get new config spec from. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
