Liferay 4.3 Build OSX
From MyWiki
From: Wendy Edwards <wedwards@ncsa.uiuc.edu>
Date: Thu, 28 Jun 2007 13:11:52 -0500
FWIW, I built the 4.3 ext environment last night for OS X. Here are some of my notes:
Set up Eclipse 3.3/Europa (or most current RC), and also install SVN
plugin. The installation instructions for the SVN plugin are at
http://subclipse.tigris.org/install.html . (Note: Liferay 4.2 seems
to be happiest with ant 1.7 and older versions of Eclipse only have
ant 1.6.x, so that's why I'm recommending 3.3).
Go to your SVN respository perspective in Eclipse and add the
repository https://lportal.svn.sourceforge.net/svnroot/lportal .
Navigate to the "portal/trunk" folder and right-click (or rather
press "ctrl" and "click") and select "Checkout." Check it out as a
project into your current workspace.
Then you have to create your versions of the build, release, and
app.server properties file (see Cyberarch's instructions). However,
I found that on my OS X machine, I had to set javac.fork to "true" if
I wanted it to work with the Javac compiler. I'll send my properties
files, so you can see how I had to edit them.
You can then run the ant tasks using Eclipse. When you run the
"build-ext" task, the ext folder will be created for you. (It's
apparently less error-prone if a folder named "ext" does not already
exist.)
You can now pull in "ext" as another Eclipse project. Once you've
set that up, the first thing you have to do is create the app.server. {username}properties and the build.{username}.properties . On the
build.{username}.properties, you have to set the javac.fork to "true"
again. (One version of instructions I read suggested that you could
just copy the build.{username}.properties and app.server. {username}.properties from the "portal" folder to the appropriate
place in the "ext" folder. Don't do this - the paths will be messed
up and it will break.) The application.{whatever}.properties in 4.3
seems a bit more user-friendly, and there are some lines you can
uncomment (and comment out) to use Tomcat 6 instead of Tomcat 5.5
Then you want to run install-tomcat from build.xml in the server
directory in the ext project. This will take a while since it
involves downloading a file (just find something else to do for a
while). This will take care of setting up the Tomcat server for
you. Then run ant deploy from build.xml in the ext project directory.
One nice thing about 4.3 is that you don't have to do the awful
kludge of setting up the hard-coded path - I removed what I'd created
for 4.2.2 and it ran fine with no errors.
At this point, it might be good to test your installation by
following the instructions in Step 20. (On OS X, it's "sh
startup.sh") Assuming that it runs OK, you may next want to follow
the instructions in Section 2 about moving it to use MySQL. (FWIW, I
have a more recent version of mysql, and therefore needed to use a
more recent driver file.)
Assuming that all works, there's also a Liferay Eclipse plugin that
you can download and install for portlet creation
