Questions tagged [ant]

3

votes
1

answer
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
0

votes
1

answer
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
0

votes
1

answer
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
0

votes
1

answer
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
0

votes
1

answer
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

votes
1

answer
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
0

votes
1

answer
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...
Florian Mac Langlade
0

votes
1

answer
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
0

votes
2

answer
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
0

votes
1

answer
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...
0

votes
1

answer
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

votes
1

answer
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
11

votes
3

answer
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
3

votes
2

answer
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
4

votes
2

answer
3.4k

Views

`create` script for Cordova Android fails to create new project - errors with java/ant configuration

I'm trying to create a new Android project using Cordova/Phonegap. I have downloaded cordova-2.9.0, and the ADT Bundle for Mac. I extracted ADT to ~/Developer/Android, and added it to my PATH: export PATH='$HOME/Development/Android/sdk/tools:$PATH' export PATH='$HOME/Development/Android/sdk/platform...
asgeo1
4

votes
2

answer
1.6k

Views

Customizing parts of Android Manifest

I am developing Android application for which I want to ship several different apks for different languages in the market (every language includes a huge bundle of files and I want to avoid creating one huge apk with all language bundles). So what I need is to customize a bit the Manifest file for e...
Boris Strandjev
3

votes
1

answer
2.6k

Views

How Ant script execute command for each file

I would like to use ant script set readonly for each file in the directory but exec doesn't allow filelist: The type doesn't support the nested 'fileset' element.
cc96ai
4

votes
1

answer
226

Views

Is exec a good programming solution to ant OutOfMemory issues?

This question requires a bit of backstory... At my company, we produce a set of PDF and HTML files. A very large set. The current build process (which I designed, in haste) is a Perl script that reads a set of files, where each file contains a new ant command to execute. It is designed terribly. Now...
GJTorikian
0

votes
1

answer
59

Views

executable jar using ant and ivy - CLASSPATH issues

I'm trying to build an executable jar file using ant managed by ivy but am stuck. Our original build-script assembles the jar file more or less okay. The dependencies are in the manifest.mf but not under Class-Path but rather Compile-Class-Path entry. I can simply set the Main-Class entry in the me...
Display name
0

votes
2

answer
487

Views

Ant JUnit Task Fails Before Running the Test

I have the following ant target: When I try to run it from the command-line, I am getting the following output: >ant run-test Buildfile: ...\build.xml [echo] 2016-03-30 20:29:29 run-test: [junit] Exception in thread 'main' java.lang.reflect.InvocationTargetException [junit] at org.apache.tools.a...
Jeff G
1

votes
2

answer
1.1k

Views

How to execute an Ant target task in build.gradle?

How can I get the task associated with an Ant target to execute from within the build.gradle file? The part in build.gradle which imports the build.xml file: def targetSdk = android.defaultConfig.targetSdkVersion.getApiLevel() ant.properties['android.version'] = 'android-$targetSdk' ant.properties[...
Jay Soyer
11

votes
5

answer
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...
Mark Brady
0

votes
2

answer
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
0

votes
2

answer
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

votes
1

answer
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
0

votes
1

answer
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
0

votes
1

answer
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

votes
1

answer
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
4

votes
3

answer
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
0

votes
3

answer
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
-1

votes
4

answer
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
0

votes
1

answer
574

Views

nested property-read in manifest

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
0

votes
2

answer
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
0

votes
1

answer
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
0

votes
1

answer
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
0

votes
1

answer
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
1

votes
2

answer
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
0

votes
1

answer
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

votes
1

answer
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
7

votes
1

answer
4k

Views

build and run android project having a subproject in command line using ant debug

I am trying to buil an android project from command line. My android project has a sub project inside my main android project. When I run the ant debug command it showing error in building classes as not found the library classes from the subproject. So I think the sub project is not included correc...
Rajeesh V