Active Web Command line compiler

  

Active Web  

Active Web is no longer a supported component of PROIV; however it is still possible to run any active web pages by deploying the Active Web WAR file. Refer to Deploying Active Web in Tomcat or Jetty for more information.

 

In addition to being able to run Active Web pages; you can also compile your pages using the OEM Command Line Compiler (CLP).

In version 8, the need to provide a key to run the OEM compliler has been removed, and the OEM command line compiler has been updated to work without a key being specified. Using the compiler allows you to turn your xsp pages into compiled (obf) representations thereby protecting your intellectual property.

 

To use the command line compiler, you need to access the NorthgateActiveWeb.jar file which is in the WEB-INF/lib directory of the ActiveWeb WAR file.

 

  1. Extract the contents of the WAR file to the directory of your choice, or open the WAR file in the zip application of your choice and extract the jar file to your preferred location.

  2. Open a command prompt/terminal and perform the following command:


    <path to>java -cp <path to>NorthgateActiveWeb.jar com.northgateis.concerto.utils.OEMConcertoCLP –k –r –s <path to>ActiveWeb –t <projectFolder> -x config/example.xml

For example, if Java is on the system path and the terminal is at the same directory as the jar file; then use the following command to compile pages in myapp, which is located at /tomcat/webapps/ActiveWeb/myapp, excluding two xml files:

java –cp NorthgateActiveWeb.jar com.northgateis.concerto.utils.OEMConcertoCLP –k –r –s /tomcat/webapps/ActiveWeb –t myapp –x myapp/config.xml,myapp/init.xml

Arguments:

·         -k : delete the source file after the compiled version is created

·         -r : processes and compiles any files found in subdirectories of the target, if a directory

·         -s : the application root directory

·         -t : the target file or directories to compile relative to the root directory

·         -x : specify files that should not be compiled, using paths relative to the root directory

Comment on this topic

Topic ID: 150180