# Questions tagged [ant]

3143 questions

1

309

Views

### Use ADT's “build performance improvements” for ant

Here's an exerpt from the ADT's latest changelog: Build performance improvements. The big changes in Ant, besides supporting the new type of library projects, and the build improvements mentioned above (aapt and png crunch cache) is that the new Ant build finally properly supports dependency check b...
MasterScrat

1

157

Views

### path variable is not being set properly

I have installed ant-1.9.2 and jdk1.7.0 in windows 7 and tried the following ways to set the path C:\>set ANT_HOME=C:\Users\sahaya_s\Downloads\apache-ant-1.9.2; C:\>set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45; C:\>set path=%ANT_HOME%\bin;%JAVA_HOME%\bin; C:\>echo %path% C:\Users\anto\Downloads\a...
Anto Robinson

1

1.6k

Views

### apacheant mail task and STARTTLS

I am trying to send an email around to my team every time someone runs apacheant to update our live server, I am trying to send the email via GMAIL, however when I run, ant upload_live -d I get the following error, BUILD FAILED /Users/simon/Documents/websites/apacheant/build.xml:116: Problem while...
Udders

1

1.2k

Views

### Ant JUnit Test case failure report not reporting testcase name

I am working on parsing the xml Junit reports generated with Ant Task. I see for pass test cases the report shows exact name of the testcase(method) executed, but not for failing test case. Can be verified below.... org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the...
pratikch

1

196

Views

### Building jar file (htsjdk jar) with Ant

HTSJDK is a library for accessing common file formats, such as SAM and VCF. I want to build the HTSJDK jar. In the documentation page says that I have to use Ant for that. So I installed Ant and run the command: ant htsjdk-jar But I get this error: compile-samtools: [javac] /home/usr/Documents/samt...
diborbi

1

80

Views

### Apache Ant Configuration Not Working

I am new for Apache ant and have downloaded it and want to automate some task I have already configured Ant_Home in System Environment. When i an running Ant in prompt it shows me following error: C:\>ant Buildfile: build.xml does not exist! Build failed C:\>
Ashwin Hegde

1

171

Views

### Problems with ANT installation

Please excuse my french english ^^ I have got a probleme with the ANT installation... I've download the ANT Zip on the apache website I've set the environment variable ANT_HOME to : C:\Program Files\apache-ant-1.8.4 I've set the environment variable JAVA_HOME to : C:\Program Files\Java\jdk1.7.0_07 I...

1

304

Views

### How to generate html report using ant with jmeter

I am tring to generate the html report using ant for that I have performed below steps In my machine java and jmeter is already installed. I performed below steps Download Apache Ant and unzip it. Copy the complete unzipped folder to C:\apache-ant-1.9.11-bin Open Jmeter folder and then open Extras...
prat22

2

1.1k

Views

### Apache Ant 1.9.6 Installation on Mac OSx - Does not run - Command not Found

I downloaded and installed apache ant 1.9.6 on my Mac OSx El Capitan 10.11.3 in /usr/local/, added the path to the bash_profile, however, I am unable to make it run. I get the following message back, as opposed to the version -bash: ant: command not found I did a lot of stackoverflow, however, could...
Neeraj Bahl

1

73

Views

### EJB Session bean is not bound in JBoss 5 in EAR packaging

I have a dynamic web project which I deploy in EAR format on JBoss 5. Using ant I compile and deploy the ear file on application server. If I deploy EJB and war (client) independently then everything work but when i try to package in ear session bean does not bound. My EJB code and client(Web) are i...

1

142

Views

### Phonegap Android Mac - ANT Issue

I want to install phonegap in my Mac, I've already installed and 'platform add ios' succesfuly but have some problems with 'platform add android' It says 'Error: The command 'android' failed. Make sure you have the latest Android SDK installed, and the 'android' command (inside the tools/ folder) is...
AriWais

1

430

Views

### Sonarqube test-coverage filter (jacoco)

This question is based on Sonar-Cobertura custom filters but as this was about Cobertura and my problem is with jacoco i think a new one is better. Now that i had time to test the suggested property i must say it doesn't seem to work as expected. I wanted to exclude all content in a 'command' packag...
dag

3

2.5k

Views

### How can I attach different string resource files during android ant release and debug builds?

I want to attach different string resources files during android ant release and debug builds. I need this to have separate configuration for map api key, remote host etc
Alexey Zakharov

2

49

Views

### When should you mess with Ant Buildfiles?

On large team projects, I've needed to manually edit the Ant Buildfile. On small programs I've written from scratch, I haven't needed to make or edit any sort of helper files for the build (e.g. never written a Buildfile for Hello World'). So my questions are: On those smaller projects, how is the p...
chm

2

3.4k

Views

Jay Soyer

5

2.2k

Views

### Failing Android JUnit tests, not breaking my Ant script like I expect?

Failing JUnit tests, not breaking my Ant script like I expect? My continuous integration server runs an Ant script, which calls something like: /tests/ant run-tests My JUnit tests run, but with errors: run-tests: [echo] run-tests-helper. [echo] Running tests ... [exec] [exec] com.zedray.stuff.FooBar...

2

238

Views

### Harsh Jarring with ivy

Does someone happens to know if there is a way to retrieve the contents of jar libs into one single jar - so that it would be jar 1 : org smth new.class jar 2 : org smth also.class jar 3 : org another otheralso.class that single jar: org another one.class smth two class result jar : org another one...
borzoni

2

1.8k

Views

### Netbeans autobuild & deploy using ANT

I know this question has been asked before ( Can NetBeans auto-build java free-form (Ant) projects? ), but it was never answered. What i am looking for is a way to build & deploy my netbeans project using ant, just as if u clicked build and then deploy, whenever i save a file, including static files...
Kicsi

1

512

Views

### how to integrate junit in gwt project with the ant build file

I have a gwt project, and i want to do the unit test in my project, so i add a target of junit in the ant build file. But the build always fails, BUILD FAILED C:\SG\workspace\app\build.xml:78: The for must include junit.jar if not in Ant's own classpath here is the scripts ****
lhuang

1

718

Views

### Ant build does not include Android support library jar

I have a cmake script for cross compiling our code. To compile for Android we use Ant which runs cmake for the native parts. Ant handles the Android/java part. Since we have imports like import android.support.v4.app.ActivityCompat; on the java side I took the support library jar at /my/sdk/folder/e...
Krøllebølle

1

93

Views

### Ant Junit testing puttering out - need the summary

I'm using ant to build my java program. It's compiling fine but when I go to run the unit test class it can't find Class Files. I've messed with my classpath a ton and this exception keeps coming up? The jars in lib are as follows: ant.jar hamcrest.jar hamcrest-core-1.3.jar hamcrest-all-1.3.jar...
April_Nara

1

380

Views

### Jenkins - Ant Build Maven Deploy

I have a project with a complicated ant build that we would like to remain as ant at the moment (will be converted to maven eventually). I am using jenkins at the moment to build/test our application. After build/test, I now want to push the built artefact to a Nexus repository. For a Maven project...
edwardborner

3

220

Views

### Versions in Java

I have to manage a Java build, and I don't know how to best manage the software's version so that it can be displayed on an about dialog etc. How do you people do it? We are using Maven, can I somehow reuse the version as defined in pom.xml? I'd also be interested to know how it's usually done with...
forneo

3

2.5k

Views

### Ant not running under new Jenkins config

I am re-setting up Jenkins 1.5888 on our Mac OS X box. I have googled much about this problem and have come up with the following steps. I upgraded all plugins as requested. From Configure System, I set up the Ant plugin to automatically download from the Apache site. I have called this installation...
Thom

4

2.4k

Views

### setting JAVA_HOME in windows 7

I am getting the following error when I try to run an ant buildfile in eclipse: BUILD FAILED C:\mypath\myapp\BuildWar.xml:16: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to 'C:\Program Files\Jav...
CodeMed

1

574

Views

I have the following build.xml code. Here i do modify the manifest file in a jar file. In manifest i wanted to add few attributes such as Asset-Name and Asset-Baseline. Content of buildInfo.properties is as followed: articlelib_componentname=ABC component. articlelib_baselineName=Baseline_1. buslib_...
Vijay Reddy

2

1.1k

Views

### Ant Java Build Path set by Eclipse is Missing a Library at Compile Time

I'm using eclipse and ant to compile a java project. The ant compile script calls javac using a classpath refid of classpath, which is set based on System Property variable java.build.path. My java.build.path variable is missing a library that was specified in Project->Properties->Java Build Path->L...
tcr-tek

1

778

Views

### Ant jUnit WebDriver - NoClassDefFoundError

I am struggling with Ant these days, trying to make it driver my WebDriver tests. So far I got to the following build.xml ( blatantly copied from somewhere ) Now, when I run ant everything gets build fine, but the test does not run and I am getting the NoClassDefFoundError. org/apache/http/HttpHost...
tom

1

596

Views

### I try to create a build in ant were it create a html report which will start my .class file

Hello I try to create a build in ant were it create a html report which will start my .class file from eclips ' ' I get the error : ' Buildfile: D:\Automation\eclipse\MyWork\OpenCart\Build.xml init: [delete] Deleting directory D:\Automation\eclipse\MyWork\build [mkdir] Created dir: D:\Automation\ec...
Dima Alexei

1

80

Views

### Building an Ant JAR

Downloaded Ant and set it up successfully, however when I run from command line I see the following: C:\>ant Buildfile: build.xml does not exist! Build failed http://pastebin.com/pkHiPnHi I want to build a JAR file and then invoke that file. Do I just need to bring the build.xml file, containing my...
David

2

2.7k

Views

### Ant target to run Windows BAT including changing directory

I have a Windows BAT file that looks like this: Z: tool.exe c:\mypath\to\input c:\mypath\to\output \flag1 flag2 That is, tool.exe resides on a mapped network drive. The tool requires that the EXE is run from its own directory (Z: in this case). The BAT works fine when run via double-click or in a CM...
Michael Easter

1

209

Views

### Modify Manifest.mf classpath using Ant

I need help to modify the classpath in my JAR manifest.mf file. Here's my scenario: I am trying to make Netbeans build multiple JAR files for this project. I managed to create an Ant target that build the various JAR files. I used ant-contrib's for task and Netbeans built-in -pre-jar target: The JAR...
phrfpeixoto

1

306

Views

### Converting Ant module to Maven, what is the best practices? [duplicate]

This question already has an answer here: Migrating complex project from Ant to Maven - How to handle unusual folder structures? 2 answers Many tools and ways are used to convert from ant to maven but what was the best for this migration ? Any help is appreciated.
user3237201

1