从零开始学Shark(3)--编译
原文: http://shark.objectweb.org/doc/sfs/sharkfromscratch1.html<!----><o:p> </o:p>
<o:p> </o:p>
浏览C:\dev\Shark目录,运行下面的命令:
configure –help
你应该会得到下面的输出:
Parameters value for using with configure.bat :<o:p> </o:p> configure - Make build.properties file with default values<o:p> </o:p>configure -help - Display this screen<o:p> </o:p> configure [-jdkhome jdk_home_dir] [-instdir installdir] -writes proper parameters to the build.properties file Examples :<o:p> </o:p>configure -jdkhome c:/j2sdk1.4.1 -instdir C:/Shark-1.0<o:p> </o:p> 有一个*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<o:p> </o:p>现在你要开始编译了,编译使用了ant,但你应该用已经提供的make file,首先我们用-help来看我们有哪些选项: make –help大部分的选项都要求我们已经build过,当然,也可以用shell脚本来完成这个任务.我们用下面的命令来build(这个可能要花一点时间) make buildAll怎样解决build中出现的问题超出了本文的范围,如果成功,我们就可以安装了 make install这个命令将COPY文件到你的安装目录.<o:p></o:p> <o:p> </o:p>
<o:p> </o:p>
<o:p> </o:p>
<o:p> </o:p>
页:
[1]