Liferay的theme开发的问题
?
Themes?开发
?
下载Plugins-SDK??http://www.liferay.com/web/guest/downloads/additional
解压后重命名目录为sdk,复制至?portal/(参见开发环境搭建)目录下,要不然以下内容就要做出相应改变
进入portal/sdk新建build.${HOSTNAME}.properties?,添加如下内容(如果没有按照以上目录结果,请做出相应调整)
app.server.dir=${project.dir}/../server/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
保存后入portal/sdk/themes
执行
create??theme-name?"theme?display?name"
Linux则为./create.sh??theme-name?"theme?display?name"
?
则在themes目录就会产生一个名为theme-name-theme?的文件夹,添加主题内容
完成后(!!!!按道理此时应该在该目录下的docroot下面生成javascript?,css,templates等目录,但是要等到?ant?deploy是才会会成)
?
?
部署主题:
执行
ant?deploy?
部署即可(server/tomcat##/webapps/下会出现:发现create?的时候就是theme目录下theme.zip的内容)
!!!!发现一个问题,,,第一次ant?deploy的时候会出现才会在docroot目录下生成javascript,css,templates等目录,,
再一次ant?deploy的时候,会将修改的内容覆盖,也就是说这种方式部署上去的还是默认生成theme,修改的内容会被覆盖
估计可能是是构建脚本出问题了
?
!!!理解错了,终于知道为什么了
指到Wiki里面的原文了,?
原来是把自己做的,和默认不同的部分要放到_diff目录下,才在部署后会生效.
?
?
?
?
?
就是这样的,我刚试过,转了一点弯