From portal-commits at lists.jboss.org Thu Feb 14 23:44:18 2008 Content-Type: multipart/mixed; boundary="===============3529102017090512265==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r9985 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules. Date: Thu, 14 Feb 2008 23:44:18 -0500 Message-ID: --===============3529102017090512265== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mmcallis Date: 2008-02-14 23:44:18 -0500 (Thu, 14 Feb 2008) New Revision: 9985 Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorial= s.xml Log: 5.2.2.5. Building and deploying your portlet revising with more content so that it is consistent with = 5.2.1. Deploying your First Portlet *** this will break the book***, but I wanted a backup :) Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/t= utorials.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutoria= ls.xml 2008-02-15 02:42:15 UTC (rev 9984) +++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutoria= ls.xml 2008-02-15 04:44:18 UTC (rev 9985) @@ -137,7 +137,7 @@ --> = - Deploying your First Portlet + Deploying your first Portlet Introduction @@ -518,7 +518,7 @@ Building your Portlet - A pre-compiled HelloWorldPortlet/helloworldportlet.war file is created after extracting the HelloWorldPortlet.zi= p file. To manually build the helloworldportlet.war file: + The HelloWorldPortlet.zip file contains a pre-c= ompiled helloworldportlet.war file; however, to manual= ly build the helloworldportlet.war file: @@ -534,7 +534,7 @@ - Run the ant deploy command: + Run the ant deploy command. On Microsoft Windo= ws, the output will be similar to the following: @@ -543,6 +543,9 @@ + + Note: the directory names will be different for your system. + @@ -553,12 +556,12 @@ - If you do not have the HelloWorldPortlet/helloworldport= let.war file, change into the HelloWorldPortlet/ directory, and run the ant deploy command. This cr= eates a helloworldportlet.war file. + If you do not have the HelloWorldPortlet/helloworldport= let.war file, change into the HelloWorldPortlet/ directory, and run the ant deploy command. This cr= eates the helloworldportlet.war file. - To expand the war file, change into the HelloWorldPortl= et/ directory, and run the ant explode comman= d: + To expand the war file, change into the HelloWorldPortl= et/ directory, and run the ant explode comman= d. On Microsoft Windows, the output will be similar to the following: @@ -567,6 +570,9 @@ + + Note: the directory names will be different for your system. + @@ -863,7 +869,95 @@ - Building and deploying your portlet + Building your Portlet + + The HelloWorldJSPPortlet.zip file contains a pr= e-compiled helloworldjspportlet.war file; however, to = manually build the helloworldjspportlet.war file: + + + + + + Change into the HelloWorldJSPPortlet/ direct= ory, and remove the existing helloworldjspportlet.war = file. + + + + + If required, edit the HelloWorldJSPPortlet/src/main/org= /jboss/portlet/hello/HelloWorldJSPPortlet.java file, and the XML= descriptors in the HelloWorldJSPPortlet/src/resources/helloworld= jspportlet-war/WEB-INF directory. + + + + + Run the ant deploy command. On Linux, the outp= ut will be similar to the following: + + + + + + + + + + + + + Note: the directory names will be different for your system. + = + + Expanding the helloworldjspportlet.war file all= ows you to deploy the portlet as an expanded directory, which makes develop= ment easier. As well, it gives you access to the XML descriptors, resource = files, JSF, and JSP pages. To expand the helloworldjspportlet.war= file: + + + + + + If you do not have the HelloWorldJSPPortlet/helloworldj= spportlet.war file, change into the HelloWorldJSPPortl= et/ directory, and run the ant deploy command= . This creates the helloworldjspportlet.war file. + + + + + To expand the war file, change into the HelloWorldJSPPo= rtlet/ directory, and run the ant explode com= mand. On Linux, the output will be similar to the following: + + + + + + + + + + + + + Note: the directory names will be different for your system. + + + The ant explode command creates a directory struc= ture such as the following: + + + + + + + + + + The expanded war file and the XML descriptors are located in the HelloWorldPortlet/output/lib/exploded/helloworldportlet.war/ directory. + + = + = + + = + = + = + = + = + = + = + = + = + = + = + = + = If you have downloaded the sample, you can execute the b= uild.xml with ant or inside your IDE. Executing the deploy target will compile= all source files and produce a helloworldjspportlet.war file in a way s= imilar to what we saw in @@ -873,7 +967,7 @@ The explode target will produce the foll= owing: - + --===============3529102017090512265==--