您现在的位置: 中国教师站 >> 教师关注 >> 电脑技术 >> 编程技术 >> Java >> 正文

Google
通过ant+jBoss学习MasteringEJB,部署HelloWorld
作者:Siny 文章来源:中国教师站cn-teacher 点击数: 更新时间:2007-4-22 14:59:54

所需的软件:

ant,j2sdk,j2ee.

我的环境变量设置(我定义在用户变量中):

J2EE_HOME=f:j2sdkee1.3.1  JAVA_HOME=f:j2sdk1.4.1_01 JBOSS_HOME=f:jboss

Path=.;f:j2sdk1.4.1_01in;f:j2sdkee1.3.1in;f:ant1.5.2in

CLASSPATH=.;f:j2sdk1.4.1_01libdt.jar;f:j2sdk1.4.1_01lib ools.jar;f:j2sdkee1.3.1libj2ee.jar

我的模板项目的结构和文件内容,便于以后拷贝。

 

build.xml

<?xml version="1.0"?>

 

<!-- ======================================================================= -->

<!-- Template build file                                                                               -->

<!-- ======================================================================= -->

 

<project name="template" default="main" basedir=".">

  

   <!--

      Give user a chance to override without editing this file

      (and without typing -D each time they run it)

   -->

   <property file=".ant.properties" />

   <property file="${user.home}/.ant.properties" />

  

   <property name="Name" value="Template"/>

   <property name="version" value="1.1"/>

  

   <target name="check-jboss" unless="jboss.home">

      <fail>

         Property "jboss.home" is not set. Please use the file

     

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页

相关专题:
 
 网友评论:(评论内容只代表网友观点,与本站立场无关!)
GOOGLE广告

阅读排行

| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 |
中国教师站

中国教师站 版权所有 Copyright © 2006-2020 All Rights Reserved 站长:Sina & Siny
[备用域名:www.JXZYW.Com] 有事请留言有事请留言
【实力成就精品 诚信呵护品牌】

信息产业部备案
苏ICP备06018635号