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

Thomas Behr <[email protected]> Thu, 22 Oct 2015 16:21:41 +0200
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
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