This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Volver a 開発者マニュアル
ソースコードのビルドとデプロイ
小沢仁
概要 #
Liferayのソースコードのビルドとデプロイの手順を説明します。
前提条件 #
以下のソフトウエアの入手を前提にします:
- Liferayソースコード
- Sun JDK 6
- Apache ant
- アプリケーションサーバ(デプロイする場合)
ビルドの準備 #
Liferayのソースコードに含まれているbuild.propertiesファイルをファイル名build.<ユーザ名>.propertiesに複写します。
<ユーザ名>.はOSにログインしたユーザ名と置き換えてください。複写したファイルを開き、以下の設定を自分の環境の設定に合わせます:
app.server.dir=${project.dir}/../../output/bundles-5.2.x/tomcat-6.0.18
app.server.classes.portal.dir=${app.server.portal.dir}/WEB-INF/classes
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.lib.portal.dir=${app.server.portal.dir}/WEB-INF/lib
app.server.portal.dir=${app.server.dir}/webapps/ROOT
javac.memoryMaximumSize=1600m同様にapp.server.propertiesファイルを複写してapp.server.<ユーザ名>.propertiesを作成して、以下の設定を環境に合わせます:
app.server.type=tomcat
app.server.parent.dir=${project.dir}/../output/bundles-5.2.x
app.server.tomcat.version=6.0
app.server.tomcat.dir=${app.server.parent.dir}/tomcat-6.0.18
app.server.tomcat.classes.global.dir=${app.server.tomcat.dir}/lib
app.server.tomcat.lib.endorsed.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.lib.global.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.lib.support.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.support.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.zip.name=liferay-portal-tomcat-6.0-${downloads.version}.zip同様にrelease.propertiesとtest.propertiesをrelease.<ユーザ名>.propertiesとtest.<ユーザ名>.propertiesに複写します。
ビルド #
コマンドラインから次のコマンドを実行します:ant all
デプロイ #
コマンドラインから次のコメンドを実行します:ant deploy
22265 Accesos