I am working on an installer creation attempt to make some changes on a war at the client side to inject my changes into it. As a result i am in need to modify the war using jar commands and have found some success.
I user the following command.
D:\MyWarLab>jar uf webtop.war custom
This command helped me in adding my changes inside a folder named 'custom' placed at location 'D:\MyWarLab' into the 'custom' folder inside my 'webtop.war'.
Now this worked as expected since the 'custom' folder was already present inside the war.
Now my next step is to inject a new folder named 'customA' inside
webtop.war ->WEB-INF -> classes -> com -> application. This customA folder would contain the java class files i have created.The customA folder does not already exist at the above mentioned location, hence the need to create it.
I have not been able to find a jar command to add new folders at desired locations of the war.
Could you please validate my attempt and suggest a command to fulfil my requirement.