specs-feup / clava

C/C++ Source-to-Source Tool based on Clang
Apache License 2.0
74 stars 11 forks source link

Build of ClavaWeaver not working #6

Closed ppietrasa closed 4 years ago

ppietrasa commented 4 years ago

The final 'create_jar' target fails.

Running:

$ java -jar eclipse-build.jar --config https://raw.githubusercontent.com/specs-feup/clava/master/ClavaWeaver/eclipse.build

Results in:

[ANT]:Finished target 'create_jar'
Exception in thread "main" /home/piotr/work/clavaw/ClavaWeaver/jar.xml:8: Problem creating jar: archive contains more than 65535 entries.

Possible solution would be to tune the generated jar.xml file:

++ ../jar.xml   2020-11-19 12:11:26.145314275 +0100
@@ -5,13 +5,13 @@
    <!--ANT 1.7 is required  -->
     <!-- <target name="create_jar" depends="compile_ClavaWeaver"> -->
     <target name="create_jar">
-       <jar destfile="ClavaWeaver.jar" filesetmanifest="mergewithoutmain">
+       <jar destfile="ClavaWeaver.jar" zip64Mode="always" filesetmanifest="mergewithoutmain">

See this StackOverflow question: https://stackoverflow.com/questions/39524481/error-creating-jar-archive-contains-more-than-65535-entries

joaobispo commented 4 years ago

I've just updated eclipse-build.jar to include the modification you suggested, please download it again and check if the problem is solved.

ppietrasa commented 4 years ago

That was quick. Thanks!!

ppietrasa commented 4 years ago

And yes I checked it and it worked.