准确编译obe的cvs源程序

2008-02-23 09:24:26来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

**************************************************
*** 准确编译 obe 的 cvs源程序 ***
**************************************************

##################################################
### 从cvs上下载的obe源程序
##################################################
1、cvs工具可以使用wincvs/TortoiseCVS

2、下载方法(转贴)
--------------------------------------------------
界面方式:
认证方式:pserver
路径:/cvsroot/obe
主机地址:cvs.sourceforge.net
用户名:anonymous
anonymous@cvs.sourceforge.net:/cvsroot/obe
登陆,密码为空,检出模块为 .(注意:一个点,表示下载当前目录下的所有东西)

命令方式:
$cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/obe login
$cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/obe checkout .
--------------------------------------------------

##################################################
### 准备准确的obe properties文件
##################################################
在编译obe之前,首先需要准确配置obe所使用的AS环境和database环境,所有的这些配置模
板可以在obe文件夹的custom子文件夹中找到,如文件Linux-MySQL-jboss-3.2.3.properties
即为使用jboss作为AS,使MySQL数据库的配置模板。我们只需要根据自己的实际环境修改这个
文件即可。如我所配置的环境是jboss3.2.3 mysql obe,其中jboss安装目录为D:\cvs_down\obe\jboss-3.2.3,
mysql的驱动程序为D:\cvs_down\obe\lib\mysql-connector-Java-3.1.7-bin.jar,那么我的
.properties文件就如下所示:
--------------------------------------------------------------------------------
# Example settings for a Linux/MySQL-4.0/JBoss-3.2.3 build.
# Copy mysql-ds.XML to $JBOSS_HOME/server/default/deploy
# Copy mysql-connector-java-3.0.8-stable-bin.jar to $JBOSS_HOME/server/default/lib

dist.zip=true
dist.tar=false
dist.tar.gz=false
dist.tar.bz2=false

# A convenience for defining the as.* properties.
as.dir=D:/cvs_down/obe/jboss-3.2.3(###as的安装目录,注意把Windows的'/'替换为'\'###)

# The name of the directory containing the app. server's start & stop commands.
#as.bin=${as.dir}/bin

# The name of the app. server's client jar file.
as.client.jar=${as.dir}/client/jbossall-client.jar

# The command to start the app. server (assumed to be in ${as.bin}).
as.start=run.bat(###windows下启动as时是bat文件哦###)

# The command to stop the app. server (assumed to be in ${as.bin}).
as.stop=shutdown.bat --shutdown

# The URL under which Cactus runs the internal server tests.
cactus.contextURL=http://localhost:8080/obeserver-tests

# Path to the driver for use by the dbsetup task.
JDBC.classpath=D:/cvs_down/obe/lib/mysql-connector-java-3.1.7-bin.jar

# JDBC driver class to use.
jdbc.driver=com.mysql.jdbc.Driver

# JDBC URL for database.(###注意修改为你自己的数据库名、用户名、密码###)
jdbc.url=jdbc:mysql://localhost:3306/obe

# Database user id.
db.user=obe

# Database password.
db.password=obe

# Database schema.
db.type=mysql

# The class name of the JNDI initial context factory.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

# The JAAS login configuration to use.
java.security.auth.login.config=${as.dir}/client/auth.conf

# The OBE client protocol to use in JUnit tests.
obe.client.protocol=rmi

# The URL of the app. server for RMI connections.
obe.server.host=jnp://localhost:1099

# The user ID under which JUnit tests connect to the app. server.
obe.client.principal=system

# The password under which JUnit tests connect to the app. server.
obe.client.credentials=password

# Required by JBossCMP.
xdoclet.jboss.typemapping=mySQL

# The JNDI name of the DataSource to use (defined in mysql-ds.xml).
xdoclet.jboss.datasource=java:/MySQLDS

# The JNDI name of the DataSource to use (this example matches the WebLogic-7.0 demo).
xdoclet.weblogic.datasource=examples-dataSource-demoXAPool

# The JNDI name of the JMS connection factory to use (this example matches the JBoss default).
xdoclet.jboss.ConnectionFactory=java:/ConnectionFactory

# The JNDI name of the JMS connection factory to use (this example matches the WebLogic-7.0 demo).
xdoclet.weblogic.ConnectionFactory=ConnectionFactory

# The JNDI name of the JavaMail Session to use (this example matches the JBoss default).
xdoclet.jboss.mail=java:/Mail

# The JNDI name of the JavaMail Session to use (WebLogic does not provide a default).
#xdoclet.weblogic.mail=

#weblogic.home=/usr/local/bea/weblogic81/server
weblogic.home=

#deploy.lib.dir=/home/adrian/obe/build/lib
#deploy.tests.war=${staging.J2EE.lib}/obeserver-tests.war
deploy.app.dir=${as.dir}/server/default/deploy
#deploy.app.ear=${as.dir}/server/default/deploy/obeserver.ear
--------------------------------------------------------------------------------
准备好上面说到的文件后,保存为.properties,存放在obe的根目录准备开始编译。


##################################################

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:如何在MIDP中实现图片放缩

下一篇:基于tomcat5.5的数据库连接池环境设置(个人总结)