Modifying the ViewsFlash.war file |
Follow these instructions one how to unpack the ViewsFlash.war file, modify and/or add files, and repack the war file for deployment.
Linux systems (using a command shell).
1. Change to a temporary directory, "tmp" in this example, with:
cd /tmp2. Create a ViewsFlash subdirectory with:
mkdir ViewsFlash3. copy the original ViewsFlash.war file into /tmp
mv ViewsFlash.war ORIGViewsFlash.war5. extract ViewsFlash.war with:
cd ViewsFlash $JAVA_HOME\bin\jar -xvf ../ORIGViewsFlash.war6. edit or replace /tmp/ViewsFlash/WEB-INF/web.xml as needed and save.
cd /tmp $JAVA_HOME/bin/jar -cvf ViewsFlash.war -C ViewsFlash .
The repacked war will be /tmp/ViewsFlash.war
Windows systems (using a command window).
1. Change to a temporary directory, "tmp" in this example, with:
cd \tmp2. Create a ViewsFlash subdirectory with:
mkdir ViewsFlash3. Use Explorer to copy the original ViewsFlash.war file into C:\tmp
ren ViewsFlash.war ORIGViewsFlash.war5. extract ViewsFlash.war with:
cd ViewsFlash %JAVA_HOME%\bin\jar -xvf C:\tmp\ORIGViewsFlash.war6. use notepad to modify C:\tmp\ViewsFlash\WEB-INF\web.xml as needed and save.
cd \tmp %JAVA_HOME%\bin\jar -cvf ViewsFlash.war -C ViewsFlash .
The repacked war will be C:\tmp\ViewsFlash.war