You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Marcel Böttcher <mb...@goldbek.de> on 2015/10/22 15:43:06 UTC

Build error: The type doesn't support the "flattenattributes" attribute.

Hey their,

I clone the trunk of the github repo and tried to build it on Ubuntu 14 via
build.sh jars. I got following error:

BUILD FAILED
/opt/batik/git/batik/build.xml:1864: The <jar> type doesn't support the
"flattenattributes" attribute.

I use open jdk 1.7 and ant 1.9.4

Any idea what's going wrong?

Kind regards
Marcel

Re: Build error: The type doesn't support the "flattenattributes" attribute.

Posted by Marcel Böttcher <mb...@goldbek.de>.
Hey Thomas, hey Luis,

thanks, you where right, the class path (var CP) is set to an old ant
version. Fixed it by using my own installed one.

Thx
Marcel

On 22 October 2015 at 16:21, Thomas Behr <th...@yworks.com> wrote:

> Hi Marcel,
>
> my guess would be that the build script actually uses some very old ANT
> version instead of version 1.9.4. AFAIK, build.sh is very outdated and has
> stuff like "use ANT 1.6.5" in there. (The attribute "flattenattributes" has
> been introduced in ANT 1.8.0.)
>
> My advice is to either build BATIK without the script (simply run the
> all-jar target from the ANT build.xml file) or (if direct building is no
> option for you) to open build.sh in a text editor and add the command line
> option "-v" (without the quotes) to the ANT invocation. This option means
> "verbose" and will result in lots and lots of additional output - including
> the actual ANT version that is used. If the script indeed uses an outdated
> ANT version, you probably need to fix the script's CP variable.
>
> Hope this helps.
>
> Thomas
>
>
>
> On 10/22/2015 03:43 PM, Marcel Böttcher wrote:
>
>> Hey their,
>>
>> I clone the trunk of the github repo and tried to build it on Ubuntu 14
>> via build.sh jars. I got following error:
>>
>> BUILD FAILED
>> /opt/batik/git/batik/build.xml:1864: The <jar> type doesn't support the
>> "flattenattributes" attribute.
>>
>> I use open jdk 1.7 and ant 1.9.4
>>
>> Any idea what's going wrong?
>>
>> Kind regards
>> Marcel
>>
>
> --
> Thomas Behr
> phone: +49 7071 9709050
> fax: +49 7071 9709051
>
> yWorks GmbH
> Vor dem Kreuzberg 28
> 72070 Tuebingen
> Germany
> http://www.yworks.com
> Managing Directors: Sebastian Müller, Michael Pfahler
> Commercial Registry: Stuttgart, Germany, HRB 382340
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>


-- 
Viele Grüße
Marcel Böttcher

Goldbek Cards GmbH
Dorotheenstrasse 176a, 22299 Hamburg
phone                        +49 (0)40 605 905 379
telefax                       +49 (0)40 605 905 377
mobile                       +49 (0)162 36 20 374
internet                      www.goldbek.de

Geschäftsführer: Constantin von Braun

Amtsgericht Hamburg, HRB 133174

Email disclaimer notice:
This communication may contain confidential information. If you are not the
intended recipient it may be unlawful for you to read, copy, distribute,
disclose or otherwise use the information contained within this
communication. If you are not the intended recipient of this email, please
telephone, fax or email us immediately. Errors and Omissions may occur in
the contents of this email arising out of or in connection with data
transmission, network malfunction or failure, machine or software error,
malfunction, or operator error by the person who is sending the email.
Goldbek Cards GmbH accepts no responsibility for any such errors or
omissions.

Re: Build error: The type doesn't support the "flattenattributes" attribute.

Posted by Thomas Behr <th...@yworks.com>.
Hi Marcel,

my guess would be that the build script actually uses some very old ANT 
version instead of version 1.9.4. AFAIK, build.sh is very outdated and 
has stuff like "use ANT 1.6.5" in there. (The attribute 
"flattenattributes" has been introduced in ANT 1.8.0.)

My advice is to either build BATIK without the script (simply run the 
all-jar target from the ANT build.xml file) or (if direct building is no 
option for you) to open build.sh in a text editor and add the command 
line option "-v" (without the quotes) to the ANT invocation. This option 
means "verbose" and will result in lots and lots of additional output - 
including the actual ANT version that is used. If the script indeed uses 
an outdated ANT version, you probably need to fix the script's CP variable.

Hope this helps.

Thomas


On 10/22/2015 03:43 PM, Marcel Böttcher wrote:
> Hey their,
>
> I clone the trunk of the github repo and tried to build it on Ubuntu 14
> via build.sh jars. I got following error:
>
> BUILD FAILED
> /opt/batik/git/batik/build.xml:1864: The <jar> type doesn't support the
> "flattenattributes" attribute.
>
> I use open jdk 1.7 and ant 1.9.4
>
> Any idea what's going wrong?
>
> Kind regards
> Marcel

-- 
Thomas Behr
phone: +49 7071 9709050
fax: +49 7071 9709051

yWorks GmbH
Vor dem Kreuzberg 28
72070 Tuebingen
Germany
http://www.yworks.com
Managing Directors: Sebastian Müller, Michael Pfahler
Commercial Registry: Stuttgart, Germany, HRB 382340

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Build error: The type doesn't support the "flattenattributes" attribute.

Posted by Marcel Böttcher <mb...@goldbek.de>.
Yes, that's the version I get using ant -version. Or could it be that
another version is installed and used as well?
I checked: build.xml contains camelCase syntax: flattenAttributes
But a good hint! Seems that some module is making everything lowercase?

On 22 October 2015 at 16:08, Luis Bernardo <lm...@gmail.com> wrote:

> That is strange since flattenAttributes is supported since 1.8.0 (see
> https://ant.apache.org/manual/Tasks/jar.html). Are you sure you are
> really using 1.9.4? And the error message uses lowercase for the "a" in
> attributes?
>
> On Thu, Oct 22, 2015 at 3:43 PM, Marcel Böttcher <mb...@goldbek.de> wrote:
>
>> Hey their,
>>
>> I clone the trunk of the github repo and tried to build it on Ubuntu 14
>> via build.sh jars. I got following error:
>>
>> BUILD FAILED
>> /opt/batik/git/batik/build.xml:1864: The <jar> type doesn't support the
>> "flattenattributes" attribute.
>>
>> I use open jdk 1.7 and ant 1.9.4
>>
>> Any idea what's going wrong?
>>
>> Kind regards
>> Marcel
>>
>
>


-- 
Viele Grüße
Marcel Böttcher

Goldbek Cards GmbH
Dorotheenstrasse 176a, 22299 Hamburg
phone                        +49 (0)40 605 905 379
telefax                       +49 (0)40 605 905 377
mobile                       +49 (0)162 36 20 374
internet                      www.goldbek.de

Geschäftsführer: Constantin von Braun

Amtsgericht Hamburg, HRB 133174

Email disclaimer notice:
This communication may contain confidential information. If you are not the
intended recipient it may be unlawful for you to read, copy, distribute,
disclose or otherwise use the information contained within this
communication. If you are not the intended recipient of this email, please
telephone, fax or email us immediately. Errors and Omissions may occur in
the contents of this email arising out of or in connection with data
transmission, network malfunction or failure, machine or software error,
malfunction, or operator error by the person who is sending the email.
Goldbek Cards GmbH accepts no responsibility for any such errors or
omissions.

Re: Build error: The type doesn't support the "flattenattributes" attribute.

Posted by Luis Bernardo <lm...@gmail.com>.
That is strange since flattenAttributes is supported since 1.8.0 (see
https://ant.apache.org/manual/Tasks/jar.html). Are you sure you are really
using 1.9.4? And the error message uses lowercase for the "a" in
attributes?

On Thu, Oct 22, 2015 at 3:43 PM, Marcel Böttcher <mb...@goldbek.de> wrote:

> Hey their,
>
> I clone the trunk of the github repo and tried to build it on Ubuntu 14
> via build.sh jars. I got following error:
>
> BUILD FAILED
> /opt/batik/git/batik/build.xml:1864: The <jar> type doesn't support the
> "flattenattributes" attribute.
>
> I use open jdk 1.7 and ant 1.9.4
>
> Any idea what's going wrong?
>
> Kind regards
> Marcel
>