[Ant存档]改改就行了,省得老写

build.xml     >>>>>>>>> V20061129: DB Operation with ant <<<<<<<<<

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<project name="ITSSystem"  default="deploy"  basedir=".">


  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property name="dist" value="../../dist" />
  <property name="its" value="../" />
  <property name="lib.dir" value="../WEB-INF/lib" />
  <property name="sql.dir" value="../sql" />

 
    <!-- Build classpath -->
    <path id="classpath">
        <fileset dir="${lib.dir}">
            <include name="**/*.jar"/>
            <exclude name="**/xalan*.jar"/>
        </fileset>
        <fileset dir="${ant.home}/lib">
            <include name="**/ant*.jar"/>
        </fileset>
    </path>
  
 
  <target name = "update"> 
    <delete file="${deploy.dir}/${war}.war" failοnerrοr="false" />
 <copy todir="${deploy.dir}/${war}/WEB-INF/classes">
  <fileset dir="${basedir}/classes"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/${jsp.dir}">
  <fileset dir="${its}/${jsp.dir}"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/WEB-INF">
  <fileset file="${basedir}/struts-config.xml"/>
  <fileset file="${basedir}/web.xml"/>
 </copy>
   <copy todir="${deploy.dir}/${war}/style">
    <fileset dir="${its}/style"></fileset>
   </copy>
  </target>  
 
  <target name="init">
    <!-- Create the dist directory structure used by compile
         and copy the deployment descriptors into it-->
    <mkdir dir="${dist}"/>
   <mkdir dir="${dist}/pages"/>
    <mkdir dir="${dist}/WEB-INF"/>
    <mkdir dir="${dist}/WEB-INF/classes"/>
    <mkdir dir="${dist}/WEB-INF/lib"/>
    <copy todir="${dist}">
      <fileset dir="${its}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
        <exclude name="**/build.xml"/>
       <exclude name="**/build.properties"/>
       <exclude name="**/src/**"/>
       <exclude name="**/work/**"/>
       <exclude name=".classpath"/>
       <exclude name=".project"/>
       <exclude name=".tomcatplugin"/>
      </fileset>
    </copy>
<!--    <copy todir="${dist}/WEB-INF/classes">
      <fileset dir="${project.dir}/${bin.dir}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
      </fileset>
    </copy> 
-->   
  </target>


 
  <target name="deploy" depends="init" >
    <!-- Create the distribution directory -->
    <delete file="${war}.war" failοnerrοr="false" />
   <delete dir="${deploy.dir}/${war}" failοnerrοr="false"/>
<!-- <jar jarfile="${war}.war" basedir="${dist}"/>   
   <copy file="${war}.war" todir="${deploy.dir}"/>
    <delete file="${war}.war" failοnerrοr="false" />
    -->
   <mkdir dir="${deploy.dir}/${war}"/>
   <copy todir="${deploy.dir}/${war}">
    <fileset dir="${dist}">
     <include name="**/*.*"/>
    </fileset>
   </copy>
    <delete dir="${dist}" failοnerrοr="false" />
  </target>
 
  <target name="create-table">
   <sql driver="org.gjt.mm.mysql.Driver"
     url="jdbc:mysql://192.168.227.65:3306/its_dbtest"
     password="65"
     userid="aaron"
     src="${sql.dir}/create-table.sql">
    <classpath refid="classpath"/>
   </sql>
  </target>

</project>

>>>>>>>>> V20061129 end <<<<<<<<<

build.xml     >>>>>>>>>  打个war包copy到webapps下<<<<<<<<<

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<project name="ITSSystem"  default="deploy"  basedir=".">


  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property name="dist" value="../../dist" />
  <property name="its" value="../" />
 
   <target name = "update"> 
    <delete file="${deploy.dir}/${war}.war" failοnerrοr="false" />
 <copy todir="${deploy.dir}/${war}/WEB-INF/classes">
  <fileset dir="${basedir}/classes"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/${jsp.dir}">
  <fileset dir="${its}/${jsp.dir}"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/WEB-INF">
  <fileset file="${basedir}/struts-config.xml"></fileset>
 </copy>
  </target> 

 
  <target name="init">
    <!-- Create the dist directory structure used by compile
         and copy the deployment descriptors into it-->
    <mkdir dir="${dist}"/>
   <mkdir dir="${dist}/pages"/>
    <mkdir dir="${dist}/WEB-INF"/>
    <mkdir dir="${dist}/WEB-INF/classes"/>
    <mkdir dir="${dist}/WEB-INF/lib"/>
    <copy todir="${dist}">
      <fileset dir="${its}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
        <exclude name="**/build.xml"/>
       <exclude name="**/build.properties"/>
      </fileset>
    </copy>
<!--    <copy todir="${dist}/WEB-INF/classes">
      <fileset dir="${project.dir}/${bin.dir}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
      </fileset>
    </copy> 
-->   
  </target>


 
  <target name="deploy" depends="undeploy,init" >
    <!-- Create the distribution directory -->
    <delete file="${war}.war" failοnerrοr="false" />
   <delete dir="${deploy.dir}/${war}" failοnerrοr="false"/>
 <jar jarfile="${war}.war" basedir="${dist}"/>   
   <copy file="${war}.war" todir="${deploy.dir}"/>
    <delete file="${war}.war" failοnerrοr="false" />
    <delete dir="${dist}" failοnerrοr="false" />
  </target>
 
  <target name="deployTool">
   <ant antfile="./deploy.xml" dir="." target="deploy" inheritall="true">
   </ant>
  </target>
 
 
 
 
 
  <target name="undeploy">
    <!-- Sometimes you can undeploy with deleting the module file but it is best dealt on an appserver basis
         at undeployTool target -->
  </target>
  <target name="undeployTool">
   <ant antfile="./undeploy.xml" dir="." target="undeploy" inheritall="true">
   </ant>
  </target>  
 

</project>
 

 

build.properties

#LOMBOZ BUILD FILE PROPERTIES- UPDATED:Thu Sep 01 22:20:05 CST 2005
#Thu Sep 01 22:20:05 CST 2005
war=its
eclipse.home=/D/:/Eclipse3.1/eclipse/
module=ITSSystem
adminToolPath=
project.dir=../../
#ejbsrc.dir=ejbsrc
#deploy.dir=F/:/bea/user_projects/domains/mydomain/applications
deploy.dir=C/:/Tomcat 5.0/webapps
#project.path=D/://eclipse-3.0//workspace//archive//bin
#bin.dir=bin
jsp.dir=pages

 

 

build.xml     >>>>>>>>>  不打包,直接拷文件夹到webapps下<<<<<<<<<

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<project name="ITSSystem"  default="deploy"  basedir=".">


  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property name="dist" value="../../dist" />
  <property name="its" value="../" />
 
  <target name = "update"> 
    <delete file="${deploy.dir}/${war}.war" failοnerrοr="false" />
 <copy todir="${deploy.dir}/${war}/WEB-INF/classes">
  <fileset dir="${basedir}/classes"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/${jsp.dir}">
  <fileset dir="${its}/${jsp.dir}"></fileset>
 </copy>
 <copy todir="${deploy.dir}/${war}/WEB-INF">
  <fileset file="${basedir}/struts-config.xml"/>
  <fileset file="${basedir}/web.xml"/>
 </copy>
   <copy todir="${deploy.dir}/${war}/style">
    <fileset dir="${its}/style"></fileset>
   </copy>
  </target>  
 
  <target name="init">
    <!-- Create the dist directory structure used by compile
         and copy the deployment descriptors into it-->
    <mkdir dir="${dist}"/>
   <mkdir dir="${dist}/pages"/>
    <mkdir dir="${dist}/WEB-INF"/>
    <mkdir dir="${dist}/WEB-INF/classes"/>
    <mkdir dir="${dist}/WEB-INF/lib"/>
    <copy todir="${dist}">
      <fileset dir="${its}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
        <exclude name="**/build.xml"/>
       <exclude name="**/build.properties"/>
       <exclude name="**/src/**"/>
       <exclude name="**/work/**"/>
       <exclude name=".classpath"/>
       <exclude name=".project"/>
       <exclude name=".tomcatplugin"/>
      </fileset>
    </copy>
<!--    <copy todir="${dist}/WEB-INF/classes">
      <fileset dir="${project.dir}/${bin.dir}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
      </fileset>
    </copy> 
-->   
  </target>


 
  <target name="deploy" depends="undeploy,init" >
    <!-- Create the distribution directory -->
    <delete file="${war}.war" failοnerrοr="false" />
   <delete dir="${deploy.dir}/${war}" failοnerrοr="false"/>
<!-- <jar jarfile="${war}.war" basedir="${dist}"/>   
   <copy file="${war}.war" todir="${deploy.dir}"/>
    <delete file="${war}.war" failοnerrοr="false" />
    -->
   <mkdir dir="${deploy.dir}/${war}"/>
   <copy todir="${deploy.dir}/${war}">
    <fileset dir="${dist}">
     <include name="**/*.*"/>
    </fileset>
   </copy>
    <delete dir="${dist}" failοnerrοr="false" />
  </target>
 
  <target name="deployTool">
   <ant antfile="./deploy.xml" dir="." target="deploy" inheritall="true">
   </ant>
  </target>
 
 
 
 
 
  <target name="undeploy">
    <!-- Sometimes you can undeploy with deleting the module file but it is best dealt on an appserver basis
         at undeployTool target -->
  </target>
  <target name="undeployTool">
   <ant antfile="./undeploy.xml" dir="." target="undeploy" inheritall="true">
   </ant>
  </target>  
 

</project>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
是的,ant-design vue提供了修表格的样式的功能。可以通过设置表格的rowClassName属性来实现不同的样式区分。首先,在表格的columns中增加一个render函数,用来根据数据返回每一样式的类名。例如: ```javascript columns: [ { title: '姓名', dataIndex: 'name', key: 'name', }, { title: '年龄', dataIndex: 'age', key: 'age', }, { title: '地址', dataIndex: 'address', key: 'address', }, { title: '操作', key: 'action', render: (text, record) => { if (record.age > 30) { return <span className="highlight-row">超过30岁</span>; } return null; }, }, ], ``` 上述代码中,添加了一个操作列,根据年龄是否超过30岁来设置不同的样式,如果超过30岁,则返回一个类名为highlight-row的span元素,展示为高亮的样式。 然后,在表格的rowClassName属性中设置一个回调函数,根据索引和数据源返回每一样式的类名。例如: ```javascript rowClassName: (record, index) => { if (record.age > 30) { return 'highlight-row'; } return ''; }, ``` 上述代码中,如果数据的年龄超过30岁,则返回highlight-row类名,从而实现了样式的效果。 最后,在CSS样式中定义.highlight-row的样式,例如: ```css .highlight-row { background-color: #ffcccc; } ``` 上述代码中,将年龄超过30岁的的背景颜色设置为粉色。通过以上方法,可以实现根据数据不同来修表格的不同样式。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值