You should be able to do this:
<jar destfile="über.jar">
<manifest>
<attribute name="Main-Class" value="${entry.point.class}"/>
</manifest>
<path refid="compile.classpath"/>
</jar>
I don't understand why the common.jar
would have unwanted duplicate code. Also, you normally don't include jars inside a jar.
I think what you really want to create is a War File. A war file can contain multiple jars, plus the classes you want to execute (the ones you compiled via the <javac>
task). In the META-INF/MANIFEST.MF file, you include a Main-Class:
entry pointing to the class that should be the entry point of your war. Users will be able to execute your war as:
$ java -jar my.war