ant

Not able to run test through ANT

孤人 提交于 2019-12-08 02:48:05
问题 I have a test class, all the tests of this class runs fine if I run in eclipse. (right click on the file , run as jUnit) but when I am trying to run using Ant Script it fails. Actually this test is to be run against 2 browsers. This test runs fine against IE Chrome. It runs fine against IE. But test is not able to run against Chrome. I am not sure what's happening. All the driver related information I have placed under allresources/drivers/ of the project path. And browser profiles i have

TeamCity Ant Junit 2 reports skipped as out-of-date

强颜欢笑 提交于 2019-12-08 02:45:35
问题 I'm setting up TeamCity to do automated builds when I commit something to develop. The problem being that on attempting to do a build I'm getting a reports skipped as out-of-date message. Here's my build.xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with the processing instruction <?eclipse.ant.import?> as the first

Passing a password to “su” command over sshexec from ant

China☆狼群 提交于 2019-12-08 02:20:19
问题 Is there any way to pass a password to the linux "su" command? I'm attempting to automate a deployment using sshexec and Ant. As part of that I need to execute the "su" command, but I can find no way to give it a password. The su command does not have the -S switch like sudo. I've tried using the commandResource and input properties on sshexec, but I just get an "su: Sorry" back. Before anyone thinks I am, I am not storing passwords in files. The script to execute is being generated in memory

How to pass parameters from Java FX Ant task to Inno Setup?

半腔热情 提交于 2019-12-08 02:08:10
问题 I am new to JavaFX and only have some basic knowledge about Ant. At the moment I am learning how to use the FX Ant tasks to deploy an application. Edit: By using <fx:deploy nativeBundles="exe" ../> Ant automaticly uses Inno Setup to create a setup file with the .exe extension. Since our company has some affiliated companies, most of our applications need to be deployed once for each of them. This is because some Windows Registry entries are created and they should look like this (not my idea,

Ant equivalent of cut | sort | uniq

我的未来我决定 提交于 2019-12-08 01:26:10
问题 In an Ant task I set a property which is a list of files. e.g. web/src/main/test/com/whatever/Ralph business/src/main/test/com/whatever/Alice web/src/main/test/com/whatever/Bob I would like to extract the set of subdirectories from this list. In bash I'd: $ cat filename | cut -d'/' -f1 | sort | uniq business web Is there a way I can do something similar in an Ant macro? It needs to run on Windows too, so <exec> is not an option. 回答1: You can do this using a loadresource task with a

How to use Ivy + IvyDE in eclipse to put different jars in lib and web-inf/lib

£可爱£侵袭症+ 提交于 2019-12-08 01:24:37
问题 So, I'm trying to add Ivy to my project, which outputs a WAR file. Some dependencies, like RESTEasy and Jackson are available at runtime in JBoss, so I don't want those in my war/WEB-INF/lib folder. Others libraries are not available via JBoss modules, so I want to include those in my project. ** NOTE: In eclipse, I'm using the Dynamic Web Module facet. The idea is to get IvyDE to copy the desired runtime dependencies into war/WEB-INF/lib. Initially I created 2 ivy configuration files: ivy

antlib and classpathref

瘦欲@ 提交于 2019-12-08 01:24:37
问题 I have the following build.xml file: <?xml version="1.0" encoding="UTF-8"?> <project name="Minimal" default="default" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <path id= "libs.folder" > <fileset dir= "lib" > <include name= "*.jar" /> </fileset> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="libs.folder" /> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="libs.folder"/> <artifact:pom id="pom.file"

ivy ssh publisher

牧云@^-^@ 提交于 2019-12-08 01:16:22
问题 I am trying to use ssh publisher to publish artifacts to a remote server through jenkins. <ssh name="ssh-publisher" host="myhost.com" user="dummy" keyFile="/home/dummy/id_rsa"> <ivy pattern="/data/refdata/local0/artifacts[organisation]/[module]/[revision]/ivy-[revision].xml"/> <artifact pattern="/data/refdata/local0/artifacts/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/> </ssh> However when I tried to publish, I got the following error impossible to publish

Exclude files in jar from going into the apk

纵然是瞬间 提交于 2019-12-08 00:39:02
问题 I recently added some new jar's to my android project. Some of the jars contain version.properties. One of them even contains a README.TXT. How can I tell eclipse/adt/ant to exclude files from getting into the apk? Obviously I can unzip the apk, remove the files, zip, sign & zipline... but I was hoping to solve it at source. 回答1: If you are creating the jar files from your own project, you right click the project -> Select Export -> Under Java select JAR file -> Then you can choose which

Running JUnit tests with Ant

こ雲淡風輕ζ 提交于 2019-12-08 00:27:40
问题 I am trying to run my JUnit test cases, but I keep getting the error : Test com.capscan.accentsWorld FAILED The report is created, but the test aren't run. Here is my Ant code: <!--this file was created by Eclipse Runnable JAR Export Wizard--> <!--ANT 1.7 is required --> <target name="create_run_jar"> <fail if="testsfailed" message="tests failed" /> <delete dir="outputs/reports" /> <mkdir dir="outputs/reports" /> <junit printsummary="on" errorproperty="testsfailed"> <classpath> <pathelement