Packaging Java Applications for Profiling


PaaSLane  Profiling is able to reverse engineer source code from non-obfuscated class files, but is more effective when source code is provided.  In order to provide source code, you must package your source code in your JAR or WAR file(s). Any included source code should be in a folder named "src" in the root of the JAR or WAR file.


Maven Example:

If you use Maven to build as your build tool, you can use the following as an example for including the source files when profiling. Simply add the profile below to the war or jar pom file. Then, when you want to include source files, adding -Psource to your maven directive will include these source files.


                         <webResources  combine.children="append">


Powered by Zendesk