Testing: Selenium: Building ZimbraSelenium: Difference between revisions
m (Added "/..." to the p4 command line and decapitalize the default directory name) |
|||
Line 9: | Line 9: | ||
The ZimbraSelenium project depends on the following Zimbra projects: | The ZimbraSelenium project depends on the following Zimbra projects: | ||
#ZimbraCommon | #ZimbraCommon | ||
#ZimbraIM | #ZimbraIM | ||
#ZimbraNative | |||
#ZimbraServer | |||
#ZimbraSoap | |||
#ZimbraTagLib | |||
#ZimbraWebClient | #ZimbraWebClient | ||
Download the prerequisites: | Download the prerequisites: | ||
Line 20: | Line 22: | ||
export P4PORT=codes.zimbra.com:2666 | export P4PORT=codes.zimbra.com:2666 | ||
mkdir -p /home/public/p4 | mkdir -p /home/public/p4 | ||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraCommon/... | ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraCommon/... | ||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraIM/... | ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraIM/... | ||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraNative/... | |||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraServer/... | |||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSoap/... | |||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraTagLib/... | |||
./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraWebClient/... | ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraWebClient/... | ||
</pre> | </pre> | ||
Revision as of 19:58, 28 October 2010
General Information
See Building_Zimbra_using_Perforce.
Downloading the Code
Downloading the Prerequisites
The ZimbraSelenium project depends on the following Zimbra projects:
- ZimbraCommon
- ZimbraIM
- ZimbraNative
- ZimbraServer
- ZimbraSoap
- ZimbraTagLib
- ZimbraWebClient
Download the prerequisites:
export P4PORT=codes.zimbra.com:2666 mkdir -p /home/public/p4 ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraCommon/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraIM/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraNative/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraServer/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSoap/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraTagLib/... ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraWebClient/...
where BRANCH is the release branch to download (e.g. main). All files will be downloaded to /home/public/p4.
Downloading ZimbraSelenium
Download ZimbraSelenium:
export P4PORT=codes.zimbra.com:2666 mkdir -p /home/public/p4 ./p4 -u public -P public1234 -c public-view sync -f //depot/zcs/BRANCH/ZimbraSelenium/...
where BRANCH is the release branch to download (e.g. main). All files will be downloaded to /home/public/p4.
Building ZimbraSelenium using Eclipse
Java
ZimbraSelenium requires java 1.6. Download and install java.
Eclipse
Download and install eclipse IDE.
Build the Code
Use the following steps to build the code:
- Create new eclipse workspace
- Open eclipse
- Create new workspace in /home/public/p4/BRANCH , where BRANCH is the release branch.
- Add all projects to eclipse
- Select File->New->Project->Java Project
- For "Project Name", enter ZimbraSelenium
- Complete these steps for ZimbraCommon, ZimbraIM, ZimbraServer, ZimbraTagLib,ZimbraWebClient
- Build ZimbraSelenium
- Expand the ZimbraSelenium project
- Select build.xml, right click, select "Run As"->"Ant Build"
The output in the console should display:
... [copy] Copying 3 files to C:\home\public\p4\main\ZimbraServer\build\attrs-src set-buildinfo-vars: [echo] Version: 6.0.2_BETA1_1111 Date: 20100721-1203 do-generate-ldap-config: [javac] Compiling 1 source file to C:\home\public\p4\main\ZimbraSelenium\build\classes jar: [jar] Building jar: C:\home\public\p4\main\ZimbraSelenium\build\dist\zimbra-6.0.0\lib\zimbraselenium.jar BUILD SUCCESSFUL Total time: 19 seconds
Troubleshooting