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

How to build a build.xml file to run a bat file or shell script

I have a bat file and shell script which performs the same operation. Now i have create a ant build.xml file which would execute the shell script or bat file. How should i write my build.xml or how should i configure it ?
kittudk
  • 55
  • 3
  • 14
0
votes
4 answers

Parsing xml property to ant-build.xml file

I have a xml file "versionreferance.xml". below is the coding
Ankit Sharma
  • 5,191
  • 2
  • 23
  • 29
0
votes
1 answer

Is this a valid path?

I have an Ant Build script to build my project. It is so large that it takes 40 minutes to run. Instead of running it 40 minutes and failing, I'd thought I'd ask the StackOverflow community first. Is the following legal?
Stephen D
  • 2,836
  • 4
  • 27
  • 40
0
votes
1 answer

Groovy: Antbuilder fileset is not created (launched from Jenkins)

I have following code in my script: def ant_fs = (new AntBuilder()) def fs = ant_fs.fileset( dir: ) fs.each{ println( "Fileset item: $it" ) } When I launch it from Maven (mvn ... in command line) or from Intellij IDEA I see that fileset…
zubactik
  • 1,297
  • 3
  • 19
  • 34
0
votes
1 answer

Zip specific files with AntBuilder

I need to zip a collection of files from different location into one zip, keeping their initial relations. For example, I need only a1 and b2 from the following folder structure Top -- A -- a1 -- a2 -- B -- b1 b2 and i want…
Yossale
  • 14,165
  • 22
  • 82
  • 109
0
votes
2 answers

Ant Script to Automate the build process

I Want to automate the ANT build process for deploying the applicaiton. I want to write a ANT script which will recurringly should look for the build.xml files in the folder and run them, if the sub build is failed it should skip and continue…
Azhar
  • 933
  • 1
  • 12
  • 28
0
votes
2 answers
0
votes
1 answer

ant build fails with Basedir error in windows platform

I am trying to set up my project on my laptop which runs on windows 7. I am not able to build the project, it throws an error BUILD FAILED C:\Projects\apsrtc-oprs\src\build.xml:118: Basedir…
Srikanth Sridhar
  • 2,317
  • 7
  • 30
  • 50
0
votes
2 answers

gradle - multiple module project - ant wrong execution dir

I've a multiple module projecy managed by gradle. The directory structure is as follows: monitoring client server When I invoke 'gradle war' on monitoring level I obtain the following exeception: "monitoring/js does not exist." Which comes from…
Opal
  • 81,889
  • 28
  • 189
  • 210
0
votes
1 answer

Run nested task in custom task

I have written my own ANT task to perform some function. However, I need this task to invoke a java task as a nest task. So I have the following code in my build file: I would like to run a piece of code after…
Neel
  • 2,100
  • 5
  • 24
  • 47
0
votes
1 answer

How to pass arguments to ant.java() method in Groovy

I am trying to convert an ant task to groovy. I am using the following code: def ant = new AntBuilder(); ant.java(classpath:'jar_file_path', classname:'Main', fork:'true') I also have a list of command line arguments to be passed to the…
pankajt
  • 7,642
  • 12
  • 39
  • 60
-1
votes
1 answer

How to create a build.xml file for this folder strucure

I have, build/classes - compiled java codes libs - some jar files src - java codes WebContent - all the .jsp files, WEB-INF/lib and META-INF i create some build files but they did not work. How to create a build.xml file for this…
Alex
  • 27
  • 1
  • 6
1 2 3 4
5