ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dani" <d...@laminarsoft.com>
Subject Copying with regexp mapper
Date Tue, 17 Apr 2001 13:34:08 GMT
The following copy command gets a regexp syntax error before it ever gets to
the mapper:

	build.xml:83: org.apache.regexp.RESyntaxException:
		Syntax error: Missing operand to closure

<target name="templocal" depends="init">
	<copy todir="${installdir}">               <!-- line 83 -->
		<fileset dir="${srcdir}/install/bin">
			<include name="*local*" />
		</fileset>
		<mapper type="regexp" from="^(*.)local-(*.)" to="\1\2" />
	</copy>
</target>

If I remove the mapper line, the error goes away.  (So, of course, does the
functionality.)  Can anyone suggest what I'm doing wrong?  (I'm using
jakarta-regexp-1.1.jar.)

advTHANKSance.

-- Dani Zweig
   dani@laminarsoft.com


Mime
View raw message