Questions tagged [antbuilder]

Ant is a software tool for automating software build processes. ANT BELONGS TO the Apache group.

Apache Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects.

The most immediately noticeable difference between Ant and Make is that Ant uses XML to describe the build process and its dependencies, whereas Make uses Makefile format. By default the XML file is named build.xml.

Ant is an Apache project. It is open source software, and is released under the Apache License.

75 questions
20
votes
3 answers

Proguard tells me 'Please correct the above warnings first.'. How to address references of external jars?

How can I address the warnings? Log says [proguard] Note: duplicate definition of library class... ... [proguard] Note: there were 370 duplicate class definitions. [proguard] Initializing... [proguard] Warning: abc.cba..: can't find superclass…
eros
  • 4,946
  • 18
  • 53
  • 78
17
votes
2 answers

Can't build multiple Android dex files with Ant from external jars

I'm developing an Android app that requires multiple libraries (for Facebook, Google Maps v2 and Quickblox among others), resulting in a method amount overflow that goes over the 64K limit: Unable to execute dex: method ID not in [0, 0xffff]:…
dinoenri
  • 265
  • 2
  • 8
6
votes
2 answers

How to resolve 7-zip's 'Warnings: Headers Error' from .zip created by Ant build?

I have code for creating zip file in ant build script. When file is…
Prem
  • 316
  • 1
  • 5
  • 23
6
votes
1 answer

Enable verbose output from groovy's AntBuilder

Is there a way to turn debug/verbose output on for groovy's AntBuilder? In other words, I want to enable more detailed output like one would get with ant -verbose from the command line. I know about the recorder task, as described here, but this…
GreenGiant
  • 4,930
  • 1
  • 46
  • 76
3
votes
1 answer

AntBuilder (groovy) with comma separated files (FileSet "include")

I am using Groovy dsl in a Jenkins script where I am passing the "include" parameter value to Ant FileSet. def ant = new AntBuilder() def scanner = ant.fileScanner { // grab ALL files requested to be run …
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
3
votes
2 answers

Are there any tools which can automate rebuilding of the project when ever there is a change in some part of code?

I use Eclipse IDE for my java projects and there are times in which I need to change some constants and test the effect of it. But on change of the code I have to rebuild it which generally takes me 40 min and 5 more mins to start the server in…
MissingNumber
  • 1,142
  • 15
  • 29
2
votes
1 answer

Ant, Groovy, GWT Invoking GWT compile with AntBuilder

Hi I'm working my way through creating a groovy script to automate building and packaging a gwt application. AntBuilder is bundled as part of Groovy and I really like the concept. It really does help the readability of the resulting script.…
K2J
  • 2,573
  • 6
  • 27
  • 34
2
votes
1 answer

Can we use one wsimport task for multiple wsdl's in gradle without repeating the similar code?

I am writing a gradle task that does wsimport to generate the web service artifacts. The task i wrote is working perfectly fine and is shown below. task wsimport { ext.destDir = file('gen') doLast { ant { …
shashwatZing
  • 1,550
  • 1
  • 17
  • 24
2
votes
1 answer

How to convert a specific android project built with ant to gradle?

I am using this framework for one of my projects and i have problems keeping it up to date. It is a little old, uses ant to build the components and is meant for eclipse. I usually use android studio and use gradle to build from interface(not…
2
votes
1 answer

Directory turns into file after ant build. How to handle that?

The method below is supposed to read classes/files out of a certain directory. It works alright when debugging the method in eclipse. But after building it using ant the scannedDir is not a directory anymore. Does anyone know how to change it so…
nouseforaname
  • 309
  • 3
  • 11
2
votes
0 answers

ExtJS 5 Build Error (ExBuild: Failed to compress input)

I have some build errors when try to build my ExtJS application (My OS is Windows 7) app.framework.version=5.0.0.970 app.cmd.version=5.0.0.160 Building failed with an exception: "com.sencha.exceptions.ExBuild" Can you help me to solve this…
AsyncTask
  • 419
  • 1
  • 7
  • 24
2
votes
0 answers

Java - Launch4j, Build failure

I am trying to create an executable file from my project but unfortunately I have this failure: Buildfile: C:\02_DEV\R_5_2_3\DiagraDB\build.xml compile: [javac] Compiling 1 source file to C:\02_DEV\R_5_2_3\DiagraDB\bin dist: …
Huve
  • 49
  • 5
2
votes
1 answer

com.android.dex.DexException: Multiple dex files define while ant build

I know that there are a lot of posts about this exception but non of them seemed to be helpful. I have deleted all the bin and gen folders, i have removed all library dependencies and added them again but this issue still remains. This is the…
Mr T.
  • 4,278
  • 9
  • 44
  • 61
2
votes
1 answer

Reduce code repetition in Groovy closures

In a piece of Gradle build script, the amount of code i'm repeating is increasing. All tasks have a big part in common, except for a few lines: task copyZipFile() { doLast { def remoteBuildProperties = getRemoteBuildProperties(project) …
astellin
  • 433
  • 3
  • 13
2
votes
1 answer

Zip files/Directories in Groovy with AntBuilder

I am trying to zip files and directories in Groovy using AntBuilder. I have the following code: def ant = new AntBuilder() ant.zip(basedir: "./Testing", destfile:"${file}.zip",includes:file.name) This zips the file "blah.txt", but not the file "New…
Steve
  • 4,457
  • 12
  • 48
  • 89
1
2 3 4 5