Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Trước khi chúng tôi tiếp tục, chúng ta hãy một khẩu nhìn vào lật đổ hệ thống quản lý phiên bản. Một khi bạn đã sẵn sàng để phát hành dự án, đăng nhập vào Google Code và click vào tab.You nguồn sẽ được đưa đến nguồn dự án của bạn page.This hiển thị trang hướng dẫn về cách kiểm tra thư mục của bạn dự án thể hiện trong hình 10,27. | Hacking Google Services Chapter 10 411 http tortoisesvn.net downloads or by installing Cygwin www.cygwin.com and selecting the svn package. For the rest of this section we are going to operate from the console via the command line svn util. Brief Introduction to SVN Before we continue let s take a brief look at the subversion version management system. Once you are ready to release your project log into Google Code and click on the Source tab.You will be taken to your project source page.This page displays instructions on how to checkout your project folder as shown in Figure 10.27. Figure 10.27 Google Code Source Page The following svn command will checkout a project svn checkout https projectname.googlecode.com svn trunk projectname --username username Substitute projectname and username placeholders with your project name and your Google username.You will be prompted for your Google Code password which is different than your Google account password .Your Google Code password can be found at http code.google.com hosting settings. 412 Chapter 10 Hacking Google Services This svn command will create a new folder within your current working directory with the name of your project.To add files change to the project directory and create a file. Get back to command line mode and add the file in the repository like this svn add filename Once you are happy with all changes and new file additions you need to commit the project.This is achieved via the following line svn ci -m description of the commit Supply a different message -m for the commit message - something that is more descriptive and outlines the changes that you ve made. Getting the files online Once your project is committed into the source repository you can access its content online. Your project is available at http projectname.googlecode.com svn trunk.Keep in mind that the committed files are served as Content-type text plain or Content-Type applica-tion octet-stream see Figure 10.28 which prevents them .