How to include obfuscated jar file into a war file
In my web application, to obfuscate the source code, i used yGuard and got an obfuscated jar file. Now i placed this jar file into the WEB-INF/lib folder (as my jsp files have reference to the java files) and packaged the war file using below ant script : <?xml version="1.0" encoding="UTF-8"?> <project name="MyWebApp" default="war" basedir="."> <property file="build.properties" /> <property name="war-file-name" value="${project-name}.war" /> <property name="source-directory" value="src" /> <property name="classes-directory" value="WebRoot/WEB-INF/classes" /> <property name="web-directory"