I'm using a fileset as a nested element of the jar Ant task. When the fileset consists of .class files or .java files, the archiving takes place correctly: * com * mycompany * myproject * SomeClass.class
But when the fileset consists of some other kind of file, like XML files or properties files, the archiving collapses the directory structure: * com.mycompany.myproject * SomeProperties.properties Why is the jar task doing this collapsing and how do I avoid it?