In my workflow for creating a jar to distribute my code, I currently:
- right-click on my project in Eclipse
- select "Export"
- select "JAR file"
- uncheck the top-level files like .classpath, .project
- check only "export generated class files"
- click "finish"
This ensures the .class files are up-to-date and creates the jar. I would like to do this same thing from the command line, but most documentation for creating jars seems to be just jarring up files that already exist, without the phase of creating the .class files. How can I do this from the command line?