I’m no expert on ant, and I’m not sure that I get all that you mean. BUT..
Do you mean the class is to be the starting class when the jar file is executed OR do you mean include the class file with the other class files in the jar all to be included in this build??
Below is one of my tipical build.xml jar tasks….
<!--
jar. again depends on compile so compile is run first.
destfile and basedir are pretty straightforward.
the manifest attribute can be set 'inline' if you like and just point it at a file.
but I prefer to generate it this way..
-->
<!--
in my build directory at the moment I'm only using 3 librarys so I didn't
bother creating a lib folder in the build folder. instead the jars are in the
build directory itself along with my " theProject.jar.jar"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.