Updating a jar
The command line processor will validate whether the command line parameters are allowed for the current command.If the current command does not allow command line parameters or the parameter appears to be an incorrect format, then an error message of ‘unexpected command parmeter’ will be logged and the execution will terminate.It's recommend to create a subfolder which is named with the version which you are backing up, for example "1.2.5".If you already have the of the previous version (or Pre-Release), you just need to replace the in the .minecraft/bin folder with your backed up version.
After all resources are in sync, a classloader is initialized with all the resources from the manifest.The structure of the app is something like this - Test (All the classes needed to run the app) | | (Some text files, from which the questions and answers are read) Reading from the jar files is no problems. After that, I'm trying to update the text files in with the new updated text files from user's home directory.Here's he code I'm using to update the text files in the file - I'll try explaining step by step, what's going on in my application - 1) I launch the GUI app, where, upon logging in as "Admin" the text files from are extracted (rather copied) on User's Home Directory (UHD). this should be the structure - My | Classes (will contain all my classes, including the one which contains the "main") Resources (will contain the text files used by above classes) has the line - Main-Class: Classes\My Class (My Class is the one containing main method) And I gave command as "jar -cvfm My Classes Resources" and I get the verbose output showing all the files its adding to the jar.The command line migrator also gives you more control over the process than the servlet listener, Ant, or Maven do, allowing you to run maintenance commands like outputting SQL and listing/releasing database changelog locks.Any values found after the command on the command line invocation will be considered a command parameter.