Hello Gilles,
They say better later than never ... 
I've finally found some time to look at your reported issue, 
and it was a problem with empty File[] array indeed.
I've committed fix in r2999, it will get into upcoming release of svnAnt.
Thanks,
Martin
> -----Original Message-----
> From: Gilles Scokart [mailto:gscokart@gmail.com]
> Sent: Wednesday, January 17, 2007 1:38 PM
> To: users@subclipse.tigris.org
> Subject: [Subclipse-users] delete of empty fileset trigger an
> arrayIndex out of bound
> 
> I have an ant task that delete some files based on a fileset :
> 
> 		<svn username="${svn.user}" password="${svn.passwd}">
> 			<delete>
> 				<fileset dir="${local.repository}/share">
> 					<date datetime="${too_old}"
when="before"
> pattern="dd/MM/yyyy
> HH:mm" checkdirs="true"/>
> 				</fileset>
> 			</delete>
> 			<commit dir="${local.repository}/share"
> message="Clean of files
> older than ${too_old}"/>
> 		</svn>
> 
> 
> When there is nothing to delete (I think it's the reason), I got an
> ArrayIndexOutOfBoundsException :
> 
 
> Looking at SVNBaseDir.getRootDir , this will happen when the File[]
> parameter is empty.
> 
> 
> PS: I didn't subscribe to the mailing list.  I just wanted to report
> you the bug.  Feel free to create the issue if you consider it is
> indeed a bug.
> 
> Thanks for this very usefull tool anyway.
> 
> Gilles Scokart
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Sun Mar  4 23:11:08 2007