ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dwayne Walker" <wb5...@gmail.com>
Subject <math> in ant-contrib-1.03b.jar
Date Fri, 15 Jun 2007 17:21:29 GMT
ok I have just started using ant-contrib. I have got the <for> working
but I am now trying to get the <math> working

this is the coad in my ant script

	<math result="mvregTotal">
			<op type="add">
				<num value="${mvregCompleted}"/>
				<num value="${mvregInprogress}"/>
				<num value="${mvregPrepaymentVoid}"/>
			</op>
		</math>
		<echo> ${mvregCompleted} + ${mvregInprogress} +
${mvregPrepaymentVoid} = ${mvregTotal}</echo>



I am very confused...


this is the exception I get

BUILD FAILED
C:\eclipse_workspace\dailyTransactionCount\dailyTransactionCount.xml:58:
no dynamic attributes for this element
	at net.sf.antcontrib.math.Operation.setDynamicAttribute(Operation.java:45)
	at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:387)
	at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:392)
	at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
	at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:565)
	at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:343)
	at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:198)
	at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
	at org.apache.tools.ant.Task.perform(Task.java:347)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

-- 
__________________________________
No matter how responsible he may seem,
Never give your Gun to a Monkey.

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


Mime
View raw message