windchill开发之代码部署--l

更新时间:2023-06-16 00:24:09 阅读: 评论:0

windchill开发之代码部署--l
部署说明:
1)如有修改系统OOTB⽂件,请先备份相关⽂件
2)将要部署的⽂件按部署包⽂件夹格式放好
3)将部署包放⼊{wt.home}/patches路径下(如源代码是压缩包则需解压)
4)Window环境下直接打开Windhcill Shell环境
5)进⼊{wt.home}/patches/Build_XXX⽬录
6)执⾏命令:ant
如果出现内存不⾜情况,请执⾏以下命令
t ANT_OPTS= -Xms128m -Xmx256m
如下是l的⽂件内容:
<?xml version="1.0" encoding="utf-8"?>
<project name="TCT_Exchange" badir="." default="all">
<description>Exchange building</description>
<property environment="env" />
<property name="ba" location="." />
<property name="wthome" location="../../" />
<property name="bin" location="${wthome}/bin" />
<property name="classpath" location="${env.CLASSPATH}" />
<property name="wtcodeba" location="${wthome}/codeba" />
<property name="wtsrc" location="${wthome}/src" />
杨绛原名
<property name="wtcustom" location="${wthome}/wtCustom" />
<property name="wtsafearea" location="${wthome}/wtSafeArea" />
<property name="sitemod" location="${wtsafearea}/siteMod" />
<property name="archivelocation" location="${wthome}/deploy" />二班口号
<target name="all" depends="check_path, i_javac, archive" />
<!--====================================================================-->
工作概述怎么写
<!--====================================================================-->
<!--                                                                    -->
<!-- Initialization                                                    -->
<!--                                                                    -->
<!--====================================================================-->
<!--====================================================================-->
<target name="init_os">
<condition property="is_win32">
<os family="windows" />
</condition>
<condition property="is_unix">
<os family="unix" />
</condition>侗族舞蹈
</target>
<target name="init_win32" depends="init_os" if="is_win32">
<echo message="initializing win32 commands" />
<property name="shell" value="" />
<property name="shopt" value="/c" />
<property name="ResourceBuild" value="${wthome}\bin\ResourceBuild.bat" />
<property name="BatchResourceBuild" value="${wthome}\bin\resource_all_win.bat" />
<property name="modelInstall" value="${wthome}\bin\cust_modelInstall.bat" />
<property name="xconfmanager" value="${wthome}\bin\xconfmanager.bat" />
<property name="JavaGen" value="${wthome}\bin\JavaGen.bat" />
<property name="ant" value="${wthome}\ant\bin\ant.bat" />
</target>
<target name="init_unix" depends="init_os" if="is_unix">
<echo message="initializing unix commands" />
<property name="shell" value="/bin/sh" />
<property name="shopt" value="" />
<property name="ResourceBuild" value="${wthome}/bin/ResourceBuild.sh" />
<property name="BatchResourceBuild" value="${wthome}/bin/resource_all_unix.sh" />
<property name="modelInstall" value="${wthome}/bin/cust_modelInstall.sh" />
<property name="xconfmanager" value="${wthome}/bin/xconfmanager" />
<property name="JavaGen" value="${wthome}/bin/JavaGen.sh" />
<property name="ant" value="${wthome}/ant/bin/ant" />
</target>
<target name="check_path" depends="init_win32, init_unix">
<condition property="path_correct">
<and>
<available file="${wthome}/f" />
<available file="${wthome}/codeba/f" />
<available file="${wthome}/codeba/f" />
</and>
</condition>
<!--
<echo message="wt_home=${wthome}"/>
<echo message="${path_correct}"/>
-->
<!--
<echo message="wt_home=${wthome}"/>
<fail message="WT_HOME not correct, should work in windchill shell." unless="path_correct" />  -->
<echo message="wt_home=${wthome}"/>
<echo message="archivelocation=${archivelocation}"/>
<echo message="classpath=${classpath}"/>
</target>
<!--====================================================================-->
<!-- l createSafeArea                                    -->
<!--====================================================================-->
<target name="createSafeArea" depends="check_path, i_createSafeArea" />
<target name="i_createSafeArea" depends="i_dist">
<exec executable="${shell}">
<arg line="${shopt} ${ant} -f ${wthome}/l createSafeArea" />
</exec>
</target>
<!--====================================================================-->
<!-- Copy Files                                                        -->
<!--====================================================================-->
<target name="dist" depends="check_path, i_dist" />
<target name="i_dist">
<copy todir="${ba}" overwrite="true">
<filet dir="${ba}/wtSafeArea/siteMod">
<include name="**/*" />
<exclude name="**/*.ca~" />
<exclude name="**/*.bak" />
<exclude name="**/Thumbs.db" />
武则天姐姐<exclude name="**/.svn/**" />
</filet>
</copy>
<copy todir="${wtsafearea}/siteMod" overwrite="true">
<filet dir="${ba}/wtSafeArea/siteMod">
<include name="**/*" />
<exclude name="**/*.ca~" />
<exclude name="**/*.bak" />
<exclude name="**/Thumbs.db" />
<exclude name="**/.svn/**" />
</filet>
</copy>
<copy todir="${wthome}/src" overwrite="true">
<filet dir="${ba}/src">
<include name="**/*.rbInfo" />
<include name="**/*.cat" />
<include name="**/*java" />
</filet>
天使恶魔图片</copy>
<copy todir="${wthome}/codeba" overwrite="true">
<filet dir="${ba}/src">
<include name="**/*.vm" />
</filet>
</copy>
<copy todir="${wthome}/codeba" overwrite="true">
<filet dir="${ba}/codeba">
谚语英文<include name="**/*" />
<exclude name="**/*.ca~" />
<exclude name="**/*.bak" />
<exclude name="**/Thumbs.db" />
<exclude name="**/.svn/**" />
</filet>
</copy>
<copy todir="${wthome}/codeba" overwrite="true">
<filet dir="${ba}/src">
<include name="**/*.properties" />
<include name="**/*.xml" />
<include name="**/*.xls" />
</filet>
</copy>
</target>
<!--====================================================================-->
<!-- Compiling Java Source                                              -->
<!--====================================================================-->
<!-- javac can add an attribute  debug="on"  if needed -->
<target name="javac" depends="check_path, i_javac" />
<target name="i_javac" depends="i_dist" >
<javac srcdir="${ba}/src" destdir="${wthome}/codeba" encoding="UTF-8" debug="true" debuglevel="lines,source">
<classpath>
<pathelement location="${wthome}/srclib/wnc/wnc.jar" />
<pathelement location="${wthome}/srclib/rvlet25/rvlet25.jar" />
<filet dir="${wthome}/srclib" includes="**/*.jar" />
<filet dir="${wthome}/codeba/WEB-INF/lib" includes="*.jar" />
<filet dir="${wthome}/codeba/lib" includes="*.jar" />
<filet dir="${wthome}/lib" includes="*.jar" />
</classpath>
<include name="**/*.java" />
</javac>
<javac srcdir="${ba}/wtSafeArea/siteMod/src" destdir="${wthome}/codeba" encoding="UTF-8" debug="true" debuglevel="lines,source">  <classpath>
<pathelement location="${wthome}/srclib/wnc/wnc.jar" />
<pathelement location="${wthome}/srclib/rvlet25/rvlet25.jar" />
<filet dir="${wthome}/srclib" includes="**/*.jar" />
<filet dir="${wthome}/codeba/WEB-INF/lib" includes="*.jar" />
<filet dir="${wthome}/codeba/lib" includes="*.jar" />
<filet dir="${wthome}/lib" includes="*.jar" />
</classpath>
<include name="**/*.java" />
</javac>
</target>
<!--====================================================================-->
<!-- Copy package to deploy folder                                      -->
<!--====================================================================-->
<target name="deploy" depends="check_path">
<copy todir="${wthome}/deploy" overwrite="true">
<filet dir="${ba}">
<include name="**/*" />
<exclude name="**/*.ca~" />
<exclude name="**/*.bak" />
<exclude name="**/Thumbs.db" />
</filet>
</copy>
</target>
<!--====================================================================-->
<!-- archive deploy files                                  -->
<!--====================================================================-->
<target name="archive" description="archive deploy files">
<tstamp>
<format property="timestamp" pattern="yyyyMMdd_HHmmss" timezone="GMT+8" />
</tstamp>
<zip destfile="${archivelocation}/TCT-Exchange-deploy-${timestamp}.zip" badir="${ba}" duplicate="prerve" filesonly="true" encoding="GBK">
琦君散文集
<include name="**/*" />
<exclude name="**/*.ca~" />
<exclude name="**/*.bak" />
<exclude name="**/Thumbs.db" />
<exclude name="**/.svn/**" />
</zip>
</target>
</project>
写在后⾯的话:
在开发的过程中,协同开发是常有的情况,长期没有更新最新代码部署到本地,直接通过patch包整包部署到本地时,发现内存溢出,然后找到了当时的开发者使⽤说明,执⾏命令即可。想到或许对有的⼈有帮助,就写下这个⽂章。这个l可以稍作调整,就能当成Eclip⾥⾯ant的执⾏⽂件。

本文发布于:2023-06-16 00:24:09,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1040368.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:部署   开发   内存   调整   源代码   压缩包
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图