Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 57393 invoked from network); 13 Apr 2004 12:42:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Apr 2004 12:42:42 -0000 Received: (qmail 78213 invoked by uid 500); 13 Apr 2004 12:42:38 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 78036 invoked by uid 500); 13 Apr 2004 12:42:37 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 78025 invoked from network); 13 Apr 2004 12:42:37 -0000 Received: from unknown (HELO delorean.solidusdesign.com) (65.42.175.122) by daedalus.apache.org with SMTP; 13 Apr 2004 12:42:37 -0000 Received: (qmail 3992 invoked by uid 2009); 13 Apr 2004 12:41:41 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 13 Apr 2004 12:41:41 -0000 Date: Tue, 13 Apr 2004 08:41:41 -0400 (EDT) From: Dave Brondsema X-X-Sender: user0009@delorean.solidusdesign.com To: forrest-dev@xml.apache.org Subject: ant tasks to do cvs add and cvs commit? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on delorean.solidusdesign.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no version=2.60 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm working on the deploy.cvs workstage for forrestbot. This basically checks out a site from CVS, copies the new pages into that directory, adds any new files, and commits it all to CVS. The old forrestbot does this with shell scripting in forrestbot/scripts/publish_livesite The difficulty I'm having is adding new pages to CVS. I can use the ant cvs task to do the 'add', but I don't know how to get the list of new files. Also, we have to determine if the file should be added as text or binary. Right now I can think of 2 options: 1) get the results from a 'cvs update' and parse them looking for new files. then do an add for each one. problem: ant is not good for parsing strings 2) get a recursive list of all the files (except from the 'CVS' directories) and add all of them. cvs will ignore ones that are already in the repository. how can I loop through a list of all the files? And then there still is the issue of text/binary. Any ideas or suggestions? Thanks -- Dave Brondsema : dave@brondsema.net http://www.brondsema.net : personal http://www.splike.com : programming http://csx.calvin.edu : student org