掲示板

Incorrect path to Tomcat in build.properties?

thumbnail
13年前 に Kravchenko Dmitry によって更新されました。

Incorrect path to Tomcat in build.properties?

Regular Member 投稿: 139 参加年月日: 10/10/04 最新の投稿
Trying to execute one Ant target I found an error, which led me to build.properties file. My file contains the following lines at position 71:


#
# Specify the paths to an unzipped Tomcat bundle.
#
app.server.type=tomcat
app.server.dir=${project.dir}/../bundles/tomcat-6.0.26
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT

Note the "bundles" directory here: I have none in this place.

I have Tomcat in separate place.

What do I need to do to either have it in SDK expected place or to have SDK be configured to know Tomcat's correct place?
thumbnail
13年前 に jelmer kuperus によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
You download and unzip tomcat somewhere then in the root of the sdk you create a file called

build.YOURUSERNAME.properties to which you add

app.server.dir=<PATH TO YOUR TOMCAT INSTALL>
thumbnail
13年前 に Hitoshi Ozawa によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
## To update the properties of this file, create a separate properties file
## named "build.${user.name}.properties" with the properties to overwrite.

Create there files:
build.YOURUSERNAME.properties
app.server.YOURUSERNAME.properties
thumbnail
13年前 に Kravchenko Dmitry によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Regular Member 投稿: 139 参加年月日: 10/10/04 最新の投稿
But what if I need not to refer my user name? I have tomcat installed in system-wide place. Why should I refer it with user-wide properties?
thumbnail
13年前 に Kravchenko Dmitry によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Regular Member 投稿: 139 参加年月日: 10/10/04 最新の投稿
In other words: where did the default setting came from at all? Who was expecting that Tomcat will be located in bundles subdirectory? Why?
thumbnail
13年前 に Minhchau Dang によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Liferay Master 投稿: 598 参加年月日: 07/10/22 最新の投稿
Kravchenko Dmitry:
In other words: where did the default setting came from at all? Who was expecting that Tomcat will be located in bundles subdirectory? Why?

It's coded into build.properties. Because that file can change between releases of the plugins SDK, it is (usually) recommended that you override values in a separate file.

If username does not work, then in some cases, you can use pretty much any of the files listed at the top of build-common.xml where "env.VARIABLENAME" corresponds to some environment variable, keeping in mind that due to Ant using immutable properties, the ones that appear first in the list take precedence.
thumbnail
13年前 に Kravchenko Dmitry によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

Regular Member 投稿: 139 参加年月日: 10/10/04 最新の投稿
I found in code, that I can use machine name instead of user name in the override file. Using a machine name seems more reasonably for me.

Thanks emoticon
10年前 に Miguel Pereira によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

New Member 投稿: 4 参加年月日: 14/01/14 最新の投稿
How do I tell ant to use the build.<username>.properties file for deployment?
ant deploy doesn't seem to pick them up...

Thanks emoticon
10年前 に Miguel Pereira によって更新されました。

RE: Incorrect path to Tomcat in build.properties?

New Member 投稿: 4 参加年月日: 14/01/14 最新の投稿
Oh figured it out.. was using app.server.dir instead of app.server.parent.dir emoticon tks