Questions tagged [build.xml]

An Apache Ant file providing the targets (goals), tasks, source location, build properties, possible tasks and other information required to build the project.

An Apache Ant build.xml provides the source location, build properties, possible tasks and other information required to build the project.

This file defines targets (goals that may depend on other targets), tasks (something that could be done to achieve the goal) and properties (some values defined in one place that can be accessed in multiple places).

Build.xml can contain references to additional xml or plain text (properties) files. These dependencies may be mandatory or optional.

410 questions
76
votes
7 answers

Any way to generate ant build.xml file automatically from Eclipse?

From Eclipse, I found I can easily export an Ant build file for my project. It provides references to 3rd party libraries and some base targets. I'm using it from my global build file. The only thing that bothers me about this, is that if something…
Joanis
  • 1,669
  • 3
  • 20
  • 32
46
votes
2 answers

Where are classpath, path and pathelement documented in Ant version 1.8.0?

I'm looking over the documentation that comes with Apache Ant version 1.8.0 and can't find where classpath, path and pathelement are documented. I've found a page that describes path like structures but it doesn't list the valid attributes or nested…
Robert Menteer
  • 2,132
  • 2
  • 17
  • 14
39
votes
2 answers

How to recompile with -Xlint:unchecked in Ant build task?

When I run the "compile" target of my Ant "build.xml" file, then I get the following message: Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. My compile target is the following: …
Benny Code
  • 51,456
  • 28
  • 233
  • 198
27
votes
10 answers

ant build : unable to locate tools.jar. Expected find it in C:\Program Files\Java\jre7\lib\tools.jar

I know that this question is popular, but no one of solutions can help me. I used this, this, this and this solutions, but no one help me. I want to implement uiautomator Tests and need to build my build.xml with ant, but get this strange error. I…
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
26
votes
4 answers

How to import existing Ant build.xml into IntelliJ IDEA

I have an existing project that uses an Ant build.xml file to maintain the location of dependency jars. In Eclipse it's very easy to import from an existing Ant file. I have searched online and looked through all of the "new project" options in…
Mike S
  • 11,329
  • 6
  • 41
  • 76
23
votes
6 answers

Using Android build.xml in eclipse?

I have an android project which has an Ant buildfile. It works great via the command-line: rascher@coltrane:~/git/$ ant Buildfile: build.xml [setup] Android SDK Tools Revision 8 [setup] Project Target: Android 2.1-update1 [setup] API…
poundifdef
  • 18,726
  • 23
  • 95
  • 134
18
votes
1 answer

Target overriding in Ant

Is there a possibility to literally override a target or emulate this somehow? So, when I call It will act like this: