ant

Including Google AdMob SDK to use with Ant

无人久伴 提交于 2019-12-23 12:54:46
问题 I'm using the (new?) AdMob SDK using instructions on this Google site. We are supposed to integrate the GoogleAdMobAdsSdk-4.0.4.jar file into our project. Problem is: how do we do this using Ant? I works fine in Eclipse (it goes automatically into the .classpath file), but with Ant it throws a lot of "cannot find" problems when ant release ing. Where and how do I include the reference to that jar? I suspect I should do it in build.xml , but I'm not sure how. I copy the source folder elsewhere

Debugging TestNG configuration failures

放肆的年华 提交于 2019-12-23 12:37:28
问题 I'm running TestNG from Ant. I'm using my own test listeners. I'm refactoring the code and once a while I got [testng] Total tests run: 7, Failures: 0, Skips: 7 [testng] Configuration Failures: 1, Skips: 2 What will be the best approach to fix configuration failures ? 回答1: The HTML reports will tell you which configuration methods failed. 来源: https://stackoverflow.com/questions/2881591/debugging-testng-configuration-failures

Print/Access the Name of the Currently Executing Ant Target [duplicate]

那年仲夏 提交于 2019-12-23 12:15:32
问题 This question already has answers here : How can I get the value of the current target ant? (5 answers) Closed 4 years ago . How do I do this within my build file? Say I just want to <echo/> the name? 回答1: There is no built-in property for the current executing target name. Some debate on this is here. If you configure ant with log4j as a listener like this, the output will display each target start and end like below. Calling ant build : D:\apache-ant-1.8.0RC1\bin>ant -lib D:\log4j\log4j\1.2

Failed automated Android UI-Tests on Jenkins-Server due to complex lib-project dependencies of the main project(s)

試著忘記壹切 提交于 2019-12-23 10:28:51
问题 Shortly summerized, my project structure is like follows: - A and B are android lib-projects, where B depends on A - C (normal android project) depends on B - T is test-project of C I have correspondingly two projects on my jenkins server, one for C and one for T , which have their own script for build, using actually just android and ant commands. So there is no problem with the build of C , but i can't get work build of T . "Work" should there mean, that, depending on the script, it either

How can I check for a file existence in XSLT?

元气小坏坏 提交于 2019-12-23 10:14:37
问题 I would like to check in XSLT whether an HTML file exists or not. How can I do this? I have already tried the file-exists.xsl from here https://gist.github.com/emth/4531924 but it doesn't work for me. I've been trying to get it running for over 2 hours now, but I am stuck. Here's my ant snippet: <target name="transform"> <xslt in="/tmp/sample.xml" out="/tmp/out.html" style="/tmp/sample.xsl" /> </target> and this is my xslt file: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3

testng fails to load test classes from ant

孤人 提交于 2019-12-23 10:14:13
问题 I'm trying to run TestNG tests from Ant. After reading the manual, I came up with: <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="../../lib/testng-6.8.1.jar"/> <target name="testng" depends="compile-tests" description="Run testng test suite"> <fileset id="mixed.tests" dir="${bin.main}"> <include name="**/*Test.*"/> </fileset> <testng mode="mixed" classfilesetref="mixed.tests" verbose="5" failureProperty="tests.failed" outputdir="/tmp/report"> <classpath> <fileset dir="

How to set $PATH for php exec or shell_exec

一个人想着一个人 提交于 2019-12-23 10:01:27
问题 I have set the PATH to run ant and it is working on putty but on php exec it is returning sh ant command not found i have tried to set PATH by export PATH=/usr/ant/bin 回答1: Call putenv before exec: putenv('PATH=/usr/ant/bin'); 回答2: Environment variables are set in the context of a user session. If you want to set the variable for the PHP user you should check what user apache runs under (typically apache), and add export PATH=/usr/ant/bin to /home/apache/.bashrc So that the path is set for

knownhosts for Ant scp and sshexec tasks

本秂侑毒 提交于 2019-12-23 09:39:05
问题 My question is similar to the one asked here: Ant scp task failure BUILD FAILED com.jcraft.jsch.JSchException: reject HostKey: .... My question is why are the keys not found in my knownhosts file? No matter what kind of known_hosts file I have, the host key is rejected. Connecting via ssh works perfectly fine, and adds the relevant entries, but maybe jsch is unable to read known_hosts files generated by OpenSSH? The Ant docs mention that the knownhosts file needs to be in SSH2 format, not

What is the best free JavaScript obfuscator that is available as a Java library? [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-23 09:36:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty

How to execute multiple ant targets in maven

孤街醉人 提交于 2019-12-23 09:31:52
问题 Yes, yes, this is a XY type of problem. (I wanted to present it nicer without loosing any information) In my project when I tried to execute the ANT tasks in maven it gives me the same error that I have in this sample. I took this example from here. I tried to execute the multiple ant targets using the maven-antrun-plugin as below. But, it always executes the below most target only (when I don't mention depends attibute). When I use it, it gives following exception : Failed to execute goal