ant

How can I run perl and ruby scripts as tasks in ant?

I would like to be able to run ruby and perl scripts from build.xml in ant. ...

Android Build Application with Ant

Hi im pretty new at Ant and have been looking for alot of examples. I am pretty far now, and was successfull to get a build.xml going. Though i seem to have one thing missing. My application needs a custom Reference Library i am calling that is a jar file. But i dont know how to add it one. Any Tips, reference sites or examples you guy...

Android: Create An Device Instance and install your .APK file all in Ant

Hi, So i am again almost through getting the Ant Build for android. Here is what i want it to do. So my build.xml creates the apk file. But now I am trying to it to create an instance device and install the apk and run it. All this on the build.xml file. so when i run ant, it will do all this, build the apk, create the device emu, ins...

How to specify xml documents to transform with resource collection in ant?

I'm trying to use ant to use XSLT to preprocess three specific stylesheets in my project. The Ant documentation for the xslt task says that it should be able to accept any resource collection. Specifically, it says: Use resource collections to specify resources that the stylesheet should be applied to. Use a nested mapper and the tas...

Eclipse "Waiting for virtual machine to exit"

I'm working on a blackberry project using eclipse and bb-ant tools. I've created a build.xml file to perform the build. Everytime I try to run an Ant build, eclipse pops up the progress dialog and it hangs stating "Waiting for virtual machine to exit." I downloaded an open source Blackberry project that has an ant build and it is show...

Related to Build.xml in ANT

What is the use of TargetNameSpace ATTRIBUTE IN ant?? please do help me its urgent ...

Jetty ant task hangs in build

I have a problem when I run Jetty task with my war file. Here is my output: [jetty] Configuring Jetty for project: Guardian [jetty] 2010-08-23 18:53:09.062:INFO::Logging to STDERR via org.mortbay.log.StdErrLog [jetty] [jetty] Configuring Jetty for web application: project [jetty] Webapp source directory = C:\Projects\GUARDIAN\build\d...

ant execute not working

I have the following ant snippet <macrodef name="webapp.start"> <attribute name="name" /> <sequential> <!--deploy--> <antcall target="webapp.@{name}" /> <!--start server--> <antcall target="tomcat-server-start" /> <!--go to URL--> <exec executable="firefox" os="Linux" > ...

Undercover code coverage with ant and scalatest

After a lot of trying and searching around, I still could not get undercover to work with ant and scalatest. although there is no error, The report always shows 0% eventhough I have test cases. Below is the relevant part of my build.xml <target name="instrumentClasses" depends="test"> <taskdef resource="undercover-ant.properties" classp...

Why javac task does not creates classes

I have an ant task that contains javac task inside. It reports about error in one of the classes, but the build doesn't fail, because it has failonerror="false". I suppose to see class files in the end of build, but I don't see it. Can anybody tell me why? Properties used: checkout.path=work/workingcopy classpath.path=work/build/classe...

Strip Newline Character from command line output in Ant

Hello, I am writing an ant build script that does a sshexec and returns the output of the command ran into the outputproperty attribute. The value of the outputproperty has a newline character on the end of them. Anyway I can strip that newline character from the output? Regards, Stephen ...

is it possible to send JUnit test report by email?

Hello, with ant it is possible to run JUnit tests and generate test reports in several formats: text, HTML, XML .. and it is recurrent to send test results by email to the responsible, so my question: is it possible to use the xml file generated by Junit in order to send a summary(Html) of the test execution? or is there another better s...

How to automatically test if offline mode is working in web application

I have mobile web application that has offline capabilities (via HTML5). I'm currently building automatic build & testing for it (ant, JsTestDriver etc.), until I hit a wall. How can I test if the web application has working offline mode? This is specially painful since if tested by hand; iPhone practically needs full reset between test...

Ant xmltask error

We are packaging an EAR file in our ANT script. The target uses xmltask - all of a sudden we are getting this error: [xmltask] java.io.IOException: Server returned HTTP response code: 502 for URL: http://java.sun.com/dtd/application_1_3.dtd Any ideas why? We can wget the mentioned dtd file from the build server so I'm guessing thi...

Is there an ANT task for watching a directory for changes?

It sounds a little far fetched to me, but is there an ANT task for watching a directory for changes and then running a particular ANT class when the directory changes? ...

Ant propertyset inheritance with nested tasks

I have a set of nested Ant build files, and I need to control which properties are inherited by each "sub" task. I'm trying to define these as propertysets (to keep the code manageable) but these are not inherited by subtasks, unlike properties. The example below demonstrates the problem, foo.* get copied into the middle project but not...

Build Failed while compiling Android program

when i compile simple android application using command line. following Error occur ../>ant debug Buildfile: build.xml [setup] Android SDK Tools Revision 6 [setup] Project Target: Android 1.6 [setup] API level: 4 [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions. [set...

Make Ant use a different build class in different situations?

We use Ant to build a Java web application. The application will compile and run on both Tomcat 6 and Tomcat 5.5. However, the build process is slightly different depending on which version of Tomcat you have installed: 5.5 keeps jar files that the build needs in $CATALINA_HOME/common/lib and $CATALINA_HOME/server/lib, while 6.0 keeps th...

problems with the build.xml

well, i don´t understand this problem because i defined the attribute src.dir and when i compiled the project,show me this message. C:\Archivos de programa\Apache Software Foundation\Tomcat 5.5\webapps\branch_try_htmlModulo2\build.xml:71: Compile failed; see the compiler error output for details. somebody help me please, i need to fix ...

ant install to deploy Tomcat webapp failing with permission problem

I've been following along the very good Tomcat6 Application Developers Guide. I've grabbed their build.xml which contains the handy ant task called install that uses the catalina-ant.jar task deploy. <target name="install" depends="compile" description="Install application to servlet container"> <deploy url="${manager.url}" ...