Topic: Lomboz.3M2真的很不错哦

  Print this page

1.Lomboz.3M2真的很不错哦 Copy to clipboard
Posted by: sanigo
Posted on: 2003-08-25 15:35

JSP也可以Code Assist了

2.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: wes109
Posted on: 2003-08-25 17:04



看看去 Wink

3.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: hd
Posted on: 2003-08-25 22:56

只是不知何时不用老是重复deploy了

4.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: wes109
Posted on: 2003-08-26 08:45

实际上俺从来都不用这些东西
我的eclipse只有together一个插件

自己写server.xml、ec-default.xml 结合ant使用
写jsp就用editplus

------------------
server.xml

<?xml version="1.0" encoding="UTF-8"?>

<Server debug="0" port="8005" shutdown="SHUTDOWN">
<Service name="Tomcat-Standalone">
<Connector acceptCount="10" className="org.apache.coyote.tomcat4.CoyoteConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080"/>
<Engine debug="0" defaultHost="localhost" name="Standalone">
<Host appBase="E:\ecprojects\qingdaojob\Tomcat\webapps" debug="0" name="localhost" unpackWARs="true"/>
</Engine>
</Service>
</Server>

---------------------------
ec-default.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context debug="0" docBase="E:\ecprojects\qingdaojob\defaultroot" path="" reloadable="true" workDir="E:\ecprojects\qingdaojob\Tomcat\work"/>

-----------------------------

build.xml

<?xml version="1.0" encoding="gb2312"?>

<project name="qingdaojob" default="deploy" basedir=".">

  <property file="build.properties"/>
  
  <path id="lib.qingdaojob">
    <fileset dir="${lib.qingdaojob.dir}">
      <include name="activation.jar"/>
      <include name="mail.jar"/>
      <include name="msbase.jar"/>
      <include name="mssqlserver.jar"/>
      <include name="msutil.jar"/>
    </fileset>
  </path>
  
  <path id = "lib.servlet">
    <fileset dir="${lib.servlet}">
      <include name = "servlet.jar"/>
    </fileset>
  </path>
  
  <path id = "lib.catalina">
    <fileset dir = "${catalina.home.dir}/bin">
      <include name = "bootstrap.jar"/>
    </fileset>
    <fileset dir = "${java.lib.tools}">
      <include name = "tools.jar"/>
    </fileset>
    <fileset dir = "${lib.catalina.dir}">
      <include name = "*.jar"/>
    </fileset>
  </path>
  
  <target name="prepare" description="初始化,生成目录">
    <mkdir dir="${classes.dir}"/>
    <mkdir dir = "${debug.tomcat.dir}"/>
    <mkdir dir = "${tomcat.webapps.dir}"/>
    <mkdir dir = "${tomcat.work.dir}"/>
    <mkdir dir = "${tomcat.config.dir}"/>
  </target>
  
  <target name="clean" description="清除目录">
    <delete dir="${classes.dir}"/>
  </target>
  
  <target name="compile" depends="prepare" description="编译">
    <javac classpath="."
        srcdir="${src.dir}"
        destdir="${classes.dir}">
      <classpath refid="lib.qingdaojob"/>
      <classpath refid="lib.servlet"/>
    </javac>
  </target>
  
  <target name = "deploy" depends = "compile" description="复制、更新,部署">
    <copy todir = "${web.classes.dir}">
      <fileset dir = "${classes.dir}"/>
    </copy>
    
    <copy todir = "${web.lib.dir}">
      <fileset dir = "${lib.qingdaojob.dir}"/>
    </copy>
    
    <copy todir = "${web.inf.dir}">
      <fileset dir = "${conf.dir}">
        <include name = "web.xml"/>
      </fileset>
    </copy>
    
    <copy todir = "${tomcat.webapps.dir}">
      <fileset dir = "${conf.dir}">
        <include name = "ec-default.xml"/>
      </fileset>
    </copy>
    
    <copy todir = "${tomcat.config.dir}">
      <fileset dir = "${conf.dir}">
        <include name = "server.xml"/>
      </fileset>
    </copy>
    
  </target>
  
  <target name = "deploy2weblogic" depends = "deploy" description="部署到weblogic">
    <copy todir="${wl.qingdaojob.dir}">
      <fileset dir = "${web.dir}"/>
    </copy>
  
  </target>
  
  <target name = "package" depends = "deploy" description="打包成war">
  
  <jar jarfile="${war.filename}"
      basedir="defaultroot"
      includes="**"
      encoding="gb2312"
  >
  </jar>
  
  </target>
  
  <!--
  <target name = "start" depends = "deploy" description = "启动tomcat">
    <exec executable= "${catalina.home.dir}\bin\startup.bat">
      <arg line = "-config ${project.dir}/${tomcat.config.dir}/server.xml start"/>
      <env key = "CATALINA_HOME" value = "${catalina.home.dir}"/>
    </exec>
  </target>
  
  <target name = "stop" description = "关闭tomcat">
    <exec executable= "${catalina.home.dir}\bin\startup.bat">
      <arg line = "-config ${project.dir}/${tomcat.config.dir}/server.xml stop"/>
      <env key = "CATALINA_HOME" value = "${catalina.home.dir}"/>
    </exec>
  </target>
  -->
  
</project>

--------------------------
build.properties

web.dir = defaultroot
web.inf.dir = ${web.dir}/WEB-INF
web.lib.dir = ${web.inf.dir}/lib
web.classes.dir = ${web.inf.dir}/classes
src.dir = src
debug.tomcat.dir = Tomcat
catalina.home.dir = D:/tomcat-4.1.24
classes.dir = classes
lib.qingdaojob.dir = lib
lib.servlet = D:/tomcat-4.1.24/common/lib
lib.catalina.dir = D:/tomcat-4.1.24/server/lib
tomcat.webapps.dir = ${debug.tomcat.dir}/webapps
tomcat.work.dir = ${debug.tomcat.dir}/work
tomcat.config.dir = ${debug.tomcat.dir}/conf
conf.dir = conf
project.dir = E:/ecprojects/qingdaojob
java.lib.tools = D:/jdk/lib
war.filename = qingdaojob.war
wl.qingdaojob.dir = D:/bea/user_projects/domains/mydomain/applications/qingdaojob

5.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: sanigo
Posted on: 2003-08-26 09:49

我从来不在Eclipse装TG
我只装Lomboz,而且我只用它编JSP。

6.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: hd
Posted on: 2003-08-27 00:47

不过lomboz的重新deploy大家是怎么解决的?
还有就是jsp的debug好像也有问题。
我是2.1的版本 Sad

用ant到无所谓,只是开发过程中还是需要支持的哟

7.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: scottding
Posted on: 2003-08-31 19:34

Lomboz确实太棒了。用了它,我就离不开他了。

8.Re:Lomboz.3M2真的很不错哦 [Re: scottding] Copy to clipboard
Posted by: DraculaCwg
Posted on: 2003-09-01 16:04

這一版的好像很秏資源~~~cpu老不停的老
hd也一樣
之前的不會呀

9.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: scottding
Posted on: 2003-09-07 15:23

恩,,我是直接将工程放在tomcat的webapp下面的。然后进行编辑和调试。
这样的话对于jsp就可以直接的更新了。。。不需要重新启动tomcat遇到一些配置文件的修改或者重要的类文件的修改的话,需要重新启动一下。。。

10.Re:Lomboz.3M2真的很不错哦 [Re: sanigo] Copy to clipboard
Posted by: bluewizard
Posted on: 2003-09-10 22:59

如果只用JSP的话不需要总重新deploy的。
看你用什么样的应用服务器。tomcat和weblogic我都试过,是可行的


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923