Stefan Bodewig <[EMAIL PROTECTED]> writes:

> On Fri, 04 Nov 2005, Yves Martin <[EMAIL PROTECTED]> wrote:
>
>>  I have tried add(DataType) but it does not work (or I made a
>>  mistake) with Ant 1.6.5
>
> What does "does not work" mean?  Do you get an exception?  Which?  Or
> does Ant silently process your task but the add method is never
> called?

  My task is 'Plugin' with the method add(DataType userType), defined as
  <antlib:ch.elca.el4ant:plugin>.

  The DataType I want to embedded is 'package'... registered as
  "antlib:ch.elca.el4ant.binrelease:package"

  Here is the task usage:
  <plugin
    name="binrelease"
    file="buildsystem/tools/binrelease/binrelease.xml"
    xmlns:binrelease="antlib:ch.elca.el4ant.binrelease">
    <attribute
      name="binrelease.default.excludes"
      value="java/**,.classpath,.project,.checkstyle,.externalToolBuilders/**"/>
    <binrelease:package module="helloworldweb" version="0.6"/>
  </plugin>

  And the log in verbose mode... So the 'add' is refused

BUILD FAILED
/home/yma/leaf/leaf3/el4ant/bootstrap.xml:177: The following error occurred 
while executing this line:
/home/yma/leaf/leaf3/el4ant/project.xml:8: The following error occurred while 
executing this line:
/home/yma/leaf/leaf3/el4ant/plugins.xml:167: The <antlib:ch.elca.el4ant:plugin> 
type doesn't support the nested "antlib:ch.elca.el4ant.binrelease:package" 
element.
        at 
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at 
ch.elca.el4ant.taskdefs.LoadProjectTask.execute(LoadProjectTask.java:125)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

  I do not understand what I did wrong.
  Thank you in advance
-- 
Yves Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to