zoukankan      html  css  js  c++  java
  • 安装Spark源代码

    通过SVN方式安装Spark开发项目
    原文出处
    http://community.igniterealtime.org/docs/DOC-1040
    安装JDK,我安装的是1.6
    Install JDK
        Download JDK and install them. The least version should be 1.5. I use 1.6. Sorry, no instruction for this.
    安装Eclipse3.3,记住一定要是Java EE Developer版本的。
    Install Eclipse 3.3
        到官方网站ww.eclipse.org上下载
        Download Eclipse 3.3 from www.eclipse.org. I use Eclipse IDE for Java EE Developers. You should at least use Eclipse IDE for Java Developers.
        解压缩到某个目录
        Extract the downloaded zip file into C:/Program Files/Eclipse.
        打开目标文件夹
        Open C:/Program Files/Eclipse folder.
        将eclipse.exe发送到桌面快捷方式
        Right click and drag eclipse.exe on to your desktop (or Windows taskbar) to create a shortcut icon.
        返回到桌面,右键快捷方式属性,在目标中加入 -vm 和 jdk路径
        Right click the shortcut icon and choose Properties. The Eclipse Properties window will show.
        The Target textbox should read something like this "C:\Program Files\Eclipse\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0\bin\javaw" depending on the JDK that you use and where you installed it.
        Close the Eclipse Properties window.
    安装Subversive版本管理工具
    Install Subversive Plugin
        打开Eclipse
        Double-click the shortcut icon to start Eclipse.
        选择默认工作空间,自己创建一个即可
        Select/enter your preferred workspace and click OK to open Eclipse main IDE window.
        单击Workbench图标,关闭欢迎页面,如果你是第一次使用Eclipse的话
        Click on the Workbench icon to close the welcome screen.
        选择菜单Help--Install New Softwares,点击work with文本框下方右侧的"Available Software Sites",点击Add site,在Name中输入Spark,在Location中输入http://www.polarion.org/projects/subversive/download/1.1/update-sit
        返回到Install窗体,在Work with中输入Spark,在复选框中选择Subversive Client Libraries和Subversive SVN Tean Provider Plugin两个选项。然后点下一步,直到完成为止。
        Click Help::Software Updates::Find and Install... menu.
        Click on Search for new features to install and click Next.
        Click on New Remote Site... button.
        Enter Subversive in the Name box and http://www.polarion.org/projects/subversive/download/1.1/update-site in the URL box (Check the latest URL from http://www.eclipse.org/subversive website), then click OK.
        Click Finish to install Subversive. Eclipse will search for the update site and show the result in a next window where you will select the features to install. I choose everything under Subversive SVN Team Provider Plugin and Subversive Client Libraries.
        Click Next to continue and so on until the installation ends. You normally want to restart Eclipse when the installation ends.
    通过SVN方式下载
    Check Out Spark SVN
        选择菜单Windows--Open Perspective--Other--SVN Repository Exploring--ok,
        Click Windows::Open Perspective::Other... menu.
        Click on SVN Repository Exploring on the Open Perspective window and click OK.
        在SVN Repository Exploring窗体中,右键选择New--Repository Location
        Right-click on SVN Repositories screen and choose New::Repository Location...
        输入网址http://svn.igniterealtime.org/svn/repos,将会显示众多项目
        On New Repository Location enter http://svn.igniterealtime.org/svn/repos in the URL box and click Finish. You'll see the URL location in the SVN Repositories screen.
        展开
        Expand the URL location.
        展开Spark
        Expand the spark tree.
        选择trunk,右键check out,然后等待,估计会花费很长时间
        Right-click on trunk and choose Check Out. Make yourself some Mocha while waiting for the checkout to complete.
    创建Spark项目
    Create Spark Project
        选择菜单Window--Open PerspectiveJava menu
        Click Window::Open Perspective::Java menu.
        在项目浏览窗体中,如果存在spark项目,删除它,但记住不要删除项目内容。
        In the Project Explorer screen, if there is a spark project, delete it. This project was created during the Spark check out process. Yes you read it correctly, DELETE the project!!! Otherwise you'll have to setup your Spark development environment manually. On the Confirm Project Delete choose Do not delete contents, then click Yes.
        选择菜单File--New--Project--Java--Java Projec,从现有项目创建Spark项目
        Click File::New::Project... Notice the ellipses!!!
        Select Java::Java Project and click Next.
        On the New Java Project window choose Create project from existing source and browse to where spark folder is located under your workspace.
        In the Project name box enter exactly as spark. Otherwise, the Next and Finish button remain disabled. Click on Next. Eclipse will read the directory structure to setup the environment automatically (almost) for you and you can see what it does on the next screen. Then click on Finish.
        如果Perspective窗体开着,关掉即可。
        If the Open Associated Perspective windows opens, click Yes.
    编译Spark项目
    Build Spark
        选择菜单Window--Show View--Ant menu
        Click Window::Show View::Ant menu.
        在Ant窗体中右键选择Add Buildfiles...
        Right-click the Ant screen and choose Add Buildfiles...
        找到Spark项目下的build\build.xml,点击ok
        Expand the spark::build folder and select build.xml, then click OK.
        在Ant窗体下展开全部,双击release(default),此时源代码就会自动编译,也可能会发生错误,可能是你在chek out时正好遇到的bug,不要担心,过一两天再次check out即可。
        On the Ant screen, expand the Spark and double-click on release ant task. The build may fail because you're checking out the daily updates of Spark sources, which may contain bugs. If so, wait for another day and hope that the developers discover and fix the bug; or you might dare to fix it yourself. During this first time setup, a successful build is necessary before you can proceed with the remaining tasks below.
        编译好的文件会在spark\target\build下,通过bin\startup.bat可以运行你编译的Spark了
    Create Project Builder
        Click Run::Open Run Dialog... or Run::Open Debug Dialog... menu. A Run window shows.
        Select Java Application and click on the New button.
        On the Main tab of the Run window, change the New_configuration name to Spark or anything you like.
        Click on Project::Browse button and select spark and click OK.
        Click on Main class::Search button and select Startup - org.jivesoftware.launcher and click OK.
        I'd suggest that you select Stop in main check box so that you could later verify that debugging works.

    Click on Classpath tab.
        Select User Entries so that the Advanced... button will be enabled.
        Click on the Advanced... button.
        On the Advanced Options window select Add Folders and click OK.
        On the Folder Selection window select spark::src::resources folder and click OK.
        Click on Common tab.
        Select the Debug and Run check box.
        Click on Apply button.
        Click on Close button.
    Run/Debug
        The setting is now complete for Spark.
        You may test running and debugging by clicking on Run::Run History::Spark and Run::Debug History::Spark respectively. If you choose the later and if you follow this instruction closely, execution will stop in the main method of Startup.java.

    没有写完,将来再补充

  • 相关阅读:
    flex产生水平滚动条
    js中的类
    typescript
    vue练习
    vue-cli2脚手架搭建
    Luogu P1970 花匠
    Luogu P1311 选择客栈
    Luogu P1016 旅行家的预算
    Luogu P1144 最短路计数
    Luogu P1091 合唱队形
  • 原文地址:https://www.cnblogs.com/liuzhengdao/p/1918517.html
Copyright © 2011-2022 走看看