This is a native Java JSR286 portlet, that connects to a remote web app, parses its response and alters its HTML body.
Supports GET and POST, and reads cookies from the server and stores them to the PortletSession.
The Rails response is being processed by [HTML Parser](htmlparser.sourceforge.net/). Each HTML node is being traversed in the <head> and <body> sections. The title of the page is being set as the portlet title. JavaScripts and CSS links are being included onto the portlet’s body HTML. In the body, the links and forms are transformed to PortletUrls and ActionRequests. Image URLs are also modified to take account the servlet.
ant
ant -buildfile build_test.xml
To run selective tests for individual test classes (for example):
ant -f build_test.xml runtest -Dtest=RenderFilterTest
The temp directory is defined within the following order:
-
Search for the system environment variable LIFERAY_PORTAL_TEMP
-
Using the catalina.base Java property
-
Falling back to ‘../temp’ when none of the above were found
Step 2 is the most used case because is automatically defined for tomcat containers
Create the system variable LIFERAY_PORTAL_TEMP with the path, for example:
export LIFERAY_PORTAL_TEMP=/opt/liferay/tomcat/temp
or
export LIFERAY_PORTAL_TEMP=/tmp
or even
[ -z "LIFERAY_PORTAL_TEMP" ] && export LIFERAY_PORTAL_TEMP=/tmp