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 can I build up an AntBuilder call programmatically in Groovy?

Lets say I have this Groovy code: ant.exec(executable:"cmd",osfamily:"windows",dir:bin) { arg(value: "/c") arg(value: "add-user.bat") arg(value: user) arg(value: pw) arg(value: "--silent") …
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
0
votes
0 answers

Ant script reply to prompt

I'm new to ant scripts and what I needed in my .xml is a reply to a prompt. Basically when deploying a prompt that takes Y/N input needs an answer for deployment to continue. So in my ant script how would i get it to reply with Y? This script in…
Smil
  • 46
  • 7
0
votes
1 answer

Problems with Ant build.xml configuration to work with external Libraries and Java property files

I have a problem with Ant Build Tool. First, below you can see my project structure: and the content of my build.xml file is:
Cedric Achi
  • 78
  • 1
  • 7
0
votes
1 answer

Ant script javac command converted to a groovy script AntBuilder.javac

Hi im new in the jenkins/ant/groovy world and google couldnt help me to solve my problem. My task is to get rid of ant scripts in the build process (with jenkins) and include them into the jenkins job (Execute system Groovy script). The bold…
Denyo
  • 115
  • 1
  • 13
0
votes
1 answer

how to give user input to build.xml using ANT

I have several properties file in my resources folder. Based on user input, I need to build a JAR with Apache ANT and place it and the corresponding property file separately in the output folder. I am very new to ANT and have no idea on how to…
jack
  • 43
  • 11
0
votes
0 answers

Eclipse Ant Builder: no console output

I have a problem getting the Eclipse Ant Builder (Project > Properties > Builders > New > Ant Builder) to work correctly with the console view. After a restart of Eclipse, the output of the Ant Builder is never captured in the console. The builder…
Dave
  • 420
  • 1
  • 3
  • 14
0
votes
1 answer

Groovy Attach multiple files with AntBuilder mail

I've got the below code. My problem is I want to send zero (or more) files, and I'm not sure how to do it. Ant requires you to set a base directory for your fileset, but for this method I don't know what that would be. How can I add an arbitrary…
Steve
  • 4,457
  • 12
  • 48
  • 89
0
votes
0 answers

Creating Build file for Jar - Java 6

I'm make my program as .jar file and giving it to the user. In case of any update in any program file, I need to provide the user with Ant build file. So, is it enough if I provide the AntBuild file, created via Export-> General ->Ant buildFiles?…
Harbinger
  • 762
  • 2
  • 14
  • 36
0
votes
0 answers

How can I include two languages in build.xml of Apache ant builder

I want my ant builder to build both Scala and Java. How can I include both the languages in my lang field and includes field? What delimiter needs to be used? The target currently looks like this: [Here…
Core_Dumped
  • 4,577
  • 11
  • 47
  • 71
0
votes
3 answers

Error with target in building by build.xml

I have opened a project which has build.xml and ivy.xml in eclipse env. after I applied Run As..>Ant Built by right click build.xml, I faced this error: BUILD FAILED Target "retrieve" does not exist in the project "aaa". It is used from target…
BlueGirl
  • 491
  • 2
  • 9
  • 29
0
votes
1 answer

Execute play from Ant script

I'm looking for a way to run play dist through an Ant build script. I've looked into using the exec task but it is not working for me. Here is what I tried:
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
0
votes
1 answer

Build failed while executing Ant script

I have an ant script:
Nipun
  • 2,217
  • 5
  • 23
  • 38
0
votes
2 answers

Groovy AntBuilder Execute task in Background

Could use your help: Trying to execute an ant task in Groovy so that it doesn't wait for the response from the script (i.e. run in background) I've tried the following two ways with no success //Cannot find script ant.exec(failonerror: "true",…
abeauchamp
  • 825
  • 2
  • 18
  • 29
0
votes
2 answers

Android ANT Build - Lots of Mopub errors

I'm trying to create a script to automate the signed exportation of my android apps (to avoid manual work when I release an update to all my apps). I've followed this tutorial:…
Dandy
  • 303
  • 5
  • 14
0
votes
1 answer

Where is the documentation for Gradle's AntBuilder?

I'm porting an Ant build.xml to Gradle. I wanted to use Gradle's AntBuilder to do something like task mytask << { ant { jar(..) { ... } } } I am having some trouble with the syntax and can't figure out where AntBuilder is documented. The…
buzz3791
  • 1,683
  • 2
  • 20
  • 38