开发者

Ant release script

开发者 https://www.devze.com 2023-03-08 07:14 出处:网络
Please see the blow script for doing the backup of current ear and replacing it with new version. <move todir=\"/usr/local/jboss/server/default/ear_bk/\" includeEmptyDirs=\"yes\" verbose=\"true\

Please see the blow script for doing the backup of current ear and replacing it with new version.

<move todir="/usr/local/jboss/server/default/ear_bk/" includeEmptyDirs="yes" verbose="true">
    <fileset dir="/usr/local/jboss/release/server/default/deploy/tgr_10_10L_0036.ear" >
            <include name="**/*" />
    </fileset>
</move>

 <copy todir="/usr/local开发者_开发问答/jboss/server/default/deploy/">
     <fileset dir="/usr/local/jboss/release/server/default/deploy/tgr_10_10L_0037.ear"/>
 </copy>

</target>

Issue: 1) Only the content of the tgr_10_10L_0036.ear is moved to ear_bk. How to move the tgr_10_10L_0036.ear?.

2) How to copy the complete tgr_10_10L_0037.ear directory to usr/local/jboss/server/default/deploy/ instead only the content ?


Simple quick fix is providing tgr_10_10L_0037.ear in todir

<copy todir="/usr/local/jboss/server/default/deploy/tgr_10_10L_0037.ear/">
     <fileset dir="/usr/local/jboss/release/server/default/deploy/tgr_10_10L_0037.ear"/>
 </copy>

for this you need to create tgr_10_10L_0037.ear before copying files

<mkdir dir="/usr/local/jboss/server/default/deploy/tgr_10_10L_0037.ear/"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号