之前在学校写的工具需要收集移动端上的覆盖率,这块儿被卡了好久,mentor让我迁移测试环境,顺便重新梳理一下这部分内容
一级目录
二级目录
三级目录
下载安装
1.ant下载
链接: http://ant.apache.org/.
ant配置
#解压ant
tar zxpvf apache-ant-1.6.2.tar.gz
#软链接
ln -s apache-ant-1.6.2 ant
#配置环境变量
vi /etc/profile
export PATH="/home/work/local/ant/bin:$PATH"
#变量生效
source /etc/profile
#验证ant是否安装成功
ant -version
2.iterm2安装配置
2.1 iterm2配置
将ant下载到本地后,上传到机器(这一步好坑啊)
step1 : 在机器上运行 brew install lrzsz
step2 : 将文件iterm2-recv-zmodem.sh和 iterm2-send-zmodem.sh copy到/usr/local/bin中,脚本如下
iterm2-recv-zmodem.sh
#!/bin/bash
# Author: Matt Mastracci (matthew@mastracci.com)
# AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
# Remainder of script public domain
osascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm
if [[ $NAME =