Ralf Hauser | 6 Aug 2003 16:26
Picon
Picon

intermittent <<can't use both attribute "data" and element "data">> error

/build.xml:575: You can't use both attribute "data" and element "data".

strange, when I just call "ant", everything works fine, however when I call
<<ant cvsupdateDBloadfilesAndSchme reBuildDB cvsupdate main>>, I get the
above error plus:
You can't use both attribute "data" and element "data".
        at fmpp.tools.AntTask.initEngine(AntTask.java:246)
        at fmpp.tools.AntTask.execute(AntTask.java:523)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
...
the build.xml looks like
          <fmpp expert="true"
                sourceroot="${basedir}/fmpp"
                outputroot="${basedir}/fmpp"
                includes="*.txf"
                logfile="${ftl_log_file}"
                skipUnchanged="none"
                replaceextension="txf,txt"
                quiet="true"
            >
            <data expandProperties="true">
                antProperties(URI4mailLinks)
            </data>
          </fmpp>

any ideas what is happening?

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
(Continue reading)

Daniel Dekany | 6 Aug 2003 17:41
Picon
Favicon

Re: intermittent <<can't use both attribute "data" and element "data">> error

Wednesday, August 6, 2003, 4:26:23 PM, Ralf Hauser wrote:

> /build.xml:575: You can't use both attribute "data" and element "data".
>
> strange, when I just call "ant", everything works fine, however when I call
> <<ant cvsupdateDBloadfilesAndSchme reBuildDB cvsupdate main>>, I get the
> above error plus:
[snip]
> any ideas what is happening?

Yes. You have just found a bug in the FMPP Ant task. It's now fixed in
the CVS. (If it's urgent I can upload jar for personal access right now.
However, I expect an FMPP release on the weekend.)

--

-- 
Best regards,
 Daniel Dekany

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Ralf Hauser | 12 Aug 2003 06:19
Picon
Picon

how to ensure by an ant build.xml that only a certain version or higher of fmpp is used?

How do fmpp users do this?

One idea is drafted in
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22338

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Picon

Re: how to ensure by an ant build.xml that only a certain version or higher of fmpp is used?

Tuesday, August 12, 2003, 6:19:41 AM, Ralf Hauser wrote:

> How do fmpp users do this?
>
> One idea is drafted in
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22338

It is not enough to check if there is greater-or-equal version available
than the version you have used originally with the project, because
software has sometimes non-backward compatible changes. So rather
something like this should be used:

<taskdef name="foo" classname="bar.Foo" compatible="1.4"/>

where "compatible" is an *arbitrary* string, and then Ant should define
a standard interface by which the external task can be invoked to check
if it is compatible. So the external task is who parses the version
number or whatever version description it gets with attribute
"compatible", not Ant, and it is the external task who judges if he is
compatible or not, not Ant.

But... I wonder how many external task developers would take the trouble
to maintain this stuff.

--

-- 
Best regards,
 Daniel Dekany

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
(Continue reading)


Gmane