從零開始學Shark(3)–編譯

來源:互聯網
上載者:User

原文: http://shark.objectweb.org/doc/sfs/sharkfromscratch1.html

 

 

瀏覽C:/dev/Shark目錄,運行下面的命令:

    configure –help

你應該會得到下面的輸出:

    Parameters value for using with configure.bat :

 

    configure       - Make build.properties file with default values

 

configure -help - Display this screen

 

    configure [-jdkhome jdk_home_dir] [-instdir installdir] -writes proper parameters to the build.properties file
    Examples :

 

configure -jdkhome c:/j2sdk1.4.1 -instdir C:/Shark-1.0

 

有一個*nix shell指令碼可以做同樣的事情,對我來說用這個更簡單,我不需要jdkhome設定,因為我的JAVA_HOME已經設定好了,我的安裝目錄是c:/Shark,下面是我使用的命令:

     configure -instdir c:/Shark

這個命令實際做的事情是在build.properties檔案中填充屬性欄位,我的如下:

     version=1.0
     version_release=beta2
     version_build=13
     jdk_dir=C:/j2sdk1.4.2_04
     install_dir=C:/Shark
     build_debug=on

 

現在你要開始編譯了,編譯使用了ant,但你應該用已經提供的make file,首先我們用-help來看我們有哪些選項:
    make –help
大部分的選項都要求我們已經build過,當然,也可以用shell指令碼來完成這個任務.我們用下面的命令來build(這個可能要花一點時間)
    make buildAll
怎樣解決build中出現的問題超出了本文的範圍,如果成功,我們就可以安裝了
    make install
這個命令將COPY檔案到你的安裝目錄.

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.