Wiki
« Back to FrontPage
Running from command line
You can call XMLPortletFactory.jar from the command line with the following arguments. This can be helpful, if you want to start XMLPF from a skript and can't use the desktop mode.
- Argument 1: the XMLPF xml definition file
- Argument 2: The portlets plugin directory
- Argument 3: The Liferay SDK version. Possible values right now: 6.0.x | 6.1.x | 6.2.x
Example:
change to XMLPortletFactory Directory (within plugin directory) "C:\Program Files\Java\jdk1.6.0_45\bin"\java.exe -jar XMLPortletFactory.jar C:\somewhere\xmlpfDefinition.xml C:\IDE\liferay-plugins-sdk-6.1.1\portlets 6.1.x
Note that XMLPortletFactory.jar must be called within the XMLPortletFactory directory, otherwise XMLPortletFactory.jar will not found dependend files.
2717 Views