`

Flex客户端ant同步配置

    博客分类:
  • Flex
阅读更多

先转网上一篇Flex支持ant的文章:
Until Flex Builder 3 Stand Alone includes Ant built in you will have to install it separately. Peter Elst wrote steps for installing it in Flex Builder 2 but in Flex Builder 3 the steps are slightly different. For those that are not familiar with Eclipse, this can be tricky to install.
The following is the revised steps for Flex Builder 3 Stand Alone.

Quoted and revised from ??http://www.peterelst.com/blog/2006/09/03/flex-builder-2-ant-support/??:# Launch Flex Builder 3

  1. Go to Help > Software Updates > Find and Install
  2. Select "Search for new features to install" and click next
  3. Select "The Eclipse Project Updates" and click finish
    Note: If you do not have the option above click New Remote Site and enter "The Eclipse Project Updates" as the name and "eclipse - http://download.eclipse.org/releases/maintenance" as the url.
  4. In the Eclipse Project Updates > Eclipse 3.3.2 (3.3.3, 3.3.4, etc) node select "Eclipse Java Development Tools..." and click next
  5. Accept the license agreement and click next
  6. Click finish to start download
  7. Eclipse downloads Java Development Tools
  8. Click "Install all" to install Java Development Tools
  9. Restart the Eclipse workbench
    That's it! You now have Apache Ant support in your standalone Flex Builder 3 install.

Go to Window > Other View > Ant and Click OK. You now have the Ant view

Please vote for ANT to be included in future versions.

Hmmm...interesting...

This entry was posted on Thursday, December 13th, 2007 at 2:55 pm and is filed underFlex. You can follow any responses to this entry through theRSS 2.0feed. You canleave a response, ortrackbackfrom your own site.

注意: 安装ant后可能会把svn插件弄没了, 可以重新装一次. http://subclipse.tigris.org/update_1.6.x/

安装好ant后, 然后需要把附件中的 jsch-0.1.29.jar 放到 D:\Program Files\Adobe\Adobe Flash Builder Beta 2\plugins\org.apache.ant_1.7.0.v200803061910\lib\  下
并在Flex->Window->Preferences->Ant->Runtime  里的Ant Home Entries 里 Add External JARs  添加这个jar.

然后ant运行Client工程的build.xml

build.xml配置如下:
<project name="ihome2client" basedir="." default="deploy">

    <target name="deploy" description="copy xml files to 90">
        <scp todir="root:XlandsGoingUp@192.168.0.90:/home/xlands/html/client/" trust="yes" verbose="yes">
            <fileset dir="./client/">
                <exclude name="*.fla"/>
                <exclude name=".svn"/>
            </fileset>
        </scp>
    </target>
   
</project>

这样就会自动把本地的client目录上传到90的client上.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics