Each class has two classfiles in jar file

前端 未结 2 1667
青春惊慌失措
青春惊慌失措 2021-01-22 20:46

I have a jar file which has two class files per java file.

Java:

Foo.java
Bar.java

Classfile:

Foo.class
Foo.class
Bar.c         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-22 21:29

    I think I found the problem. This is the jar task:

        
            
        
    

    As I read in the Ant website

    This task forms an implicit FileSet and supports most attributes of (dir becomes >basedir) as well as the nested , and elements.

    So it would seem that either the tag or basedir is uneccessary. At least it works.fine if I comment out the fileset tag.

    Thanks for your help and pointers!

提交回复
热议问题