ant

Jmeter自动化集成工具Ant的安装

做~自己de王妃 提交于 2019-12-09 22:44:12
一、Ant介绍   Apache Ant,是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。只要使用过Linux系统的读者,应该知道 make这个命令。当编译Linux内核及一些软件的源程序时,经常要用这个命令。Make命令其实就是一个项目管理工具,而Ant所实现功能与此类似。像make、gnumake和nmake这些编译工具都有 一定的缺陷,但是Ant却克服了这些工具的缺陷。最初Ant开发者在开发跨平台的应用时,同样也是基于这些缺陷对Ant做了更好的设计。 二、获取Ant安装包 1.官网获取 官网地址: http://ant.apache.org/bindownload.cgi 2.网盘获取 链接: https://pan.baidu.com/s/1xQWIsmFUpl-6vmrNYUoAyA 提取码:mrj0 三、Ant安装 1.解压zip压缩包 2.配置环境变量 ANT_HOME=安装目录 Path=%ANT_HOME%\bin   环境变量配置完成后,打开cmd命令行,输入“ant -version”验证是否安装成功 3.修改jmeter.properties   修改jmeter.save.saveservice.output_format的值为xml 4.拷贝ant-jmeter-*

Ant - Run a Build.xml for all subdirectories

天涯浪子 提交于 2019-12-09 22:01:32
问题 I have a build.xml sitting at the top level and I want the script to run a target for each subdirectory and pass in the subdirectory name as a parameter to the ANT target. Can you help ?/?? Thanks 回答1: Take a look at the subant task. From that page: <project name="subant" default="subant1"> <property name="build.dir" value="subant.build"/> <target name="subant1"> <subant target=""> <property name="build.dir" value="subant1.build"/> <property name="not.overloaded" value="not.overloaded"/>

【Jenkins】linux & win 10 :Jenkins + maven/ant + git/SVN 搭建项目自动化集成部署环境

送分小仙女□ 提交于 2019-12-09 19:58:17
目录 一、完成jdk的安装 二、完成git/svn的安装 三、完成maven/ant的安装 四、完成Jenkins的安装 五、Jenkins初始登录、设置账户和访问URL 六、管理员账户权限配置 ​ 七、配置jdk、git/svn、maven/ant的根目录 八、安装必要的插件 一、完成jdk的安装 (1)Jenkins部署在linux系统,jdk安装在Windows系统: 【jdk】window10:jdk 8下载和安装步骤 (2)Jenkins部署在linux系统,jdk安装在linux系统: 【xshell】linux:xshell远程连接Linux服务器安装jdk8 二、完成git/svn的安装 (一)根据公司使用的版本迭代工具是git还是SVN选择安装: (1)Jenkins+maven/ant+git搭建项目自动化部署集成环境:安装git; (2)Jenkins+maven/ant+SVN搭建项目自动化部署集成环境:安装SVN。 (二)git的安装参考我的另一博文: (1)Jenkins部署在Windows系统,git安装在Windows系统: 【git】Windows 10:git的下载和安装 (2)Jenkins部署在linux系统,git安装在linux系统: (三)SVN的安装参考我的另一博文: (1)Jenkins部署在Windows系统

Call ant target multiple times with different parameters

≯℡__Kan透↙ 提交于 2019-12-09 17:35:17
问题 Is it possible in Ant to call the same target multiple times with different parameters? My command looks like the following: ant unittest -Dproject='proj1' unittest -Dproject='proj2' The problem is that unittest gets run twice, but only for proj2: unittest: [echo] Executing unit test for project proj2 unittest: [echo] Executing unit test for project proj2 I know that I can run two separate ant commands, but that is going to cause additional problems with the unit test report files. 回答1: You

Signing APK file in Cordova v-5.0 CLI is not working

这一生的挚爱 提交于 2019-12-09 17:31:46
问题 i tried to add keystore properties into two files in the platforms/android directory. key.store=Users/admin/workspace/android-keystore/keystore key.alias=keystore into ant.properties and project.properties File. It worked fine in previous version, but not seems like the Cordova does not using ant in latest version. So if i run command: cordova build android --release I always get only unsigned apk. platforms/android/build/outputs/apk/android-release-unsigned.apk How can i solve it please?

Trying to refresh 'expired' keystore

独自空忆成欢 提交于 2019-12-09 17:18:10
问题 I am trying to re-sign some jars using the ant task 'signjar' however it's telling me "The signer certificate has expired." So I tried to re-generate the keystore hoping this would 'un-expire' it... keytool -genkey -keystore mykeystore -alias myalias but after entering the keystore password i get: "keytool error: java.lang.Exception: Key pair not generated, alias already exists" what am i doing wrong? do i need to delete the keystore to re-generate it or is there a simple way to refresh it so

Android AAPT Issue- While replacing new image to the resource

可紊 提交于 2019-12-09 17:14:27
问题 After I updated my eclipse and Android SDK I encounter some problem while pasting a file to the drawable. Actually I am trying to replace a new image in the same name. After I restart the eclipse the error went of. What is the reason and how can I avoid it. Please guide me. **Log:** Error: name expected logo.png /Sample/res/drawable-large line 4 Android AAPT Problem 回答1: I'm seeing the same sort of thing. It appears to be a bug in the latest release, and it's not limited to image files. I'm

Setting ivy home directory in Ant

筅森魡賤 提交于 2019-12-09 17:04:57
问题 I would like to set the ivy.default.ivy.user.dir to something other than the default ${user.home}/.ivy2 . I can do this on the command line with ant -Divy.default.ivy.user.dir=${WORKSPACE}/IVYCACHE . But, I would like to have it set without a command line arg. I have tried setting this property in my build.xml, my common.xml and my ivysettings.xml. The strange thing is, that it seems to set the default cache to this path, but the verbose output says that there is no default setting for user

Ant: Problem: failed to create task or type propertyregex

怎甘沉沦 提交于 2019-12-09 16:12:34
问题 I'm using Ant 1.8.1. I have downloaded ant-contrib-1.0b3.jar and placed it in my $ANT_HOME/lib directory. However, when I include this in my build.xml file ... <propertyregex property="selenium.email.success.subject" input="package.ABC.name" regexp="(.*)__ENV__(.*)" replace="\1${buildtarget}\2" override="true" casesensitive="false" /> I get the error "Problem: failed to create task or type propertyregex. Cause: The name is undefined." upon running my Ant build file. What else do I need to do

Why does ant.bat not return an error status when run programmatically?

筅森魡賤 提交于 2019-12-09 15:53:51
问题 When I run ant from the command-line, if I get a failure, I get a non-zero exit status ($? on UNIX, %ERRORLEVEL% on Windows). But we have a Java program which is running ant (through ProcessBuilder), and when ant fails, on Windows we cannot get the exit status. I just verified this with this simple ant test file: <project name="x" default="a"> <target name="a"> <fail/> </target> </project> On UNIX, running ant prints a failure message, and echoing $? afterward prints 1. On Windows, running