[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: Nested type as an Integer
From: Mansour Al Akeel <mansour.alakeel () gmail ! com>
Date: 2012-01-10 11:36:27
Message-ID: CAFvvX=bYi7VhwSoiYivxF68kbOQ+_8Pq=ACXr8wNsAO5jp0kkQ () mail ! gmail ! com
[Download RAW message or body]
In a custom task, I need to use a nested element to set the port number.
The nested element looks like this:
<c:myCustomTask>
<port>9090</port>
<context>myApplication</context>
</c:myCustomTask>
The problem I am getting is:
build.xml:76: class java.lang.String doesn't support nested text data
("myApplication").
at
org.apache.tools.ant.IntrospectionHelper.addText(IntrospectionHelper.java:464)
at
org.apache.tools.ant.ProjectHelper.addText(ProjectHelper.java:384)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:413)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:344)
And the same thing for the port.What type of objects I need to use to set
these values ?
Thank you.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic