![](https://csdnimg.cn/release/download_crawler_static/524687/bg1.jpg)
Ext Environment
Copyright © 2005 Liferay, LLC
All Rights Reserved.
No material may be reproduced electronically or in print without written
permission from Liferay, LLC.
![](https://csdnimg.cn/release/download_crawler_static/524687/bg2.jpg)
Objectives
Ext Environment
1. Set the Directory of the Ext Environment
2. Build the Ext Environment
3. Set the Type of Server
4. Set the Directory of the Server
![](https://csdnimg.cn/release/download_crawler_static/524687/bg3.jpg)
Purpose of the Ext Environment
•
It is very difficult to upgrade to new
versions of Liferay if you modify the
source code directly.
•
The Ext Environment allows you to
extend and modify the source code
without breaking your upgrade path.
![](https://csdnimg.cn/release/download_crawler_static/524687/bg4.jpg)
Set the Ext Environment Directory
1. Go to C:\Training\liferay\portal
2. Open release.properties with Notepad
The first thing you should note is this:
## DO NOT EDIT THIS FILE.
##
## To update the properties of this file, create a separate
properties file
## named "release.${user.name}.properties" with the
properties to overwrite.
![](https://csdnimg.cn/release/download_crawler_static/524687/bg5.jpg)
Set the Ext Environment Directory
•
Don’t edit release.properties directly. But what is release.
${user.name}.properties?
•
release.${user.name}.properties is the extension file for
release.properties.
•
The properties in release.${user.name}.properties will
overwrite the properties in release.properties.
•
${user.name} represents the user name of your computer.
Do NOT name your file release.${user.name}.properties.
•
See the next slides to find out how to determine the user
name of your computer and how to create your release.$
{user.name}.properties file.