使用ant自动远程部署war包到websphere的build.xml怎么写
解决方案 »
- ssh spring 依赖注入时 提示错误 请大家帮看一下
- hibernate复合主键关联映射问题,请高手指教,谢谢
- 问下,有人对Scala比较了解的么?
- poi 如何创建多个sheet
- 在页面上循环一个引用了其他类的属性的类的list,可是怎么写都不对。
- java开源项目OpenCRX中的Depot中的Legal Entities如何应用?
- 求java验证xml的例子!!!
- jsp中怎样调用webservice?
- 为什么每次写完文件之后关于DTD 这一行就被删掉了
- springboot启动报错,继承了ureport,请各位大佬帮我看看是什么问题
- PreparedStatement使用数据库索引问题
- 时间相减 问题?不知道怎么回事?请大侠们帮助!
不过貌似是同行
<?xml version="1.0"?><project name="portal-ext-ext" basedir="." default="deploy">
<import file="../build-common-ext.xml" />
<target name="build-service-portlet-portletshortcut">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/portletshortcut/service.xml" />
</antcall>
</target> <target name="build-service-portlet-calendar">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/calendar/service.xml" />
</antcall>
</target> <target name="build-service-portlet-task">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/task/service.xml" />
</antcall>
</target>
<target name="build-service-portlet-polls">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/polls/service.xml" />
</antcall>
</target>
<target name="build-service-portlet-consulting">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/consulting/service.xml" />
</antcall>
</target> <target name="build-service-portlet-menus">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portal/menus/service.xml" />
</antcall>
</target>
<target name="build-service-portlet-flow">
<antcall target="build-service">
<param name="service.file" value="docroot/WEB-INF/ext-impl/src/com/gsoft/portlet/flow/service.xml" />
</antcall>
</target>
<target name="build-service-portlets">
<antcall target="build-service-portlet-menus" />
<antcall target="build-service-portlet-flow" />
</target>
</project>现在的一个项目的build.xml参考参考
http://blackstreet.iteye.com/blog/423066
<project name="updcusema" default="deploy" basedir=".">
<property name="project.dir" value="${basedir}" />
<property name="src.dir" value="${basedir}/src" />
<property name="class.dir" value="${basedir}/build/classes" />
<property name="dist.dir" value="${basedir}/dist" />
<property name="res.dir" value="C:\ibm\WebSphere\profiles\GBGCB\installedApps\APACCNSHZJW0332Node01Cell\GBGCB.ear\GBGCB.war\WEB-INF" />
<property name="web.updcusema.dir" value="C:\ibm\WebSphere\profiles\GBGCB\installedApps\APACCNSHZJW0332Node01Cell\GBGCB.ear\GBGCB.war\WEB-INF\COA\cus\updcusema" />
<property name="jar.dir" value="C:\ibm\WebSphere\profiles\GBGCB\installedApps\APACCNSHZJW0332Node01Cell\GBGCB.ear\GBGCB.war\WEB-INF\lib" /> <path id="project.class.path">
<fileset dir="${jar.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="C:\IBM\WebSphere\AppServer\java\lib">
<include name="**/*.jar"/>
</fileset>
</path> <target name="compile">
<javac srcdir="${src.dir}" destdir="${class.dir}" debug="on">
<include name="**/*.java" />
<classpath refid="project.class.path"/>
</javac>
</target> <target name="copyweb">
<copy todir="${web.updcusema.dir}">
<fileset dir="${project.dir}/WebContent/WEB-INF/COA/cus/updcusema">
</fileset>
</copy>
</target>
<target name="compress" depends="compile">
<jar destfile="${dist.dir}/updcusema.jar" basedir="${class.dir}" />
</target>
<target name="copyjar" depends="compress">
<copy todir="${jar.dir}">
<fileset dir="${dist.dir}">
</fileset>
</copy>
</target> <target name="deploy" depends="copyweb,copyjar" /></project>参考