Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
<math > in ant-contrib-1.03b.jar

<math > in ant-contrib-1.03b.jar

2007-06-15       - By Dwayne Walker
Reply:     1     2     3     4     5  

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@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.