ant

How to change Ant script with EMMA code-coverage so it can find runtime coverage data?

I have following script: <?xml version="1.0" encoding="UTF-8"?> <taskdef resource="emma_ant.properties"> <classpath> <pathelement location="lib/emma.jar" /> <pathelement location="lib/emma_ant.jar" /> </classpath> </taskdef> <target name="compile"> <mkdir dir="build"/> <!-- vytvori adresar bu...

Execute Ant action always and independently from target

Hello all! Is there a way to specify actions like <copy> in an Ant buildfile that get executed every time the build file gets read by ant (regardless of the target which is called)? The background is: I want a *.properties-file to be automatically created from a template when it's not present. I know, I could specify a target which doe...

Can we have Build Automatically option for ANT Build Scripts ?

Eclipse IDE (3.4) contains an option to build the code automatically in the following tab Project ---> Build Automatically. When we select this option , we need not build the project manually. It happens Automatically. Actually I see this working for builtin eclipse build tool. Is there any possibility that , we can make it to (Build A...

Running P2 Ant tasks outside Eclipse

Hi everyone ! I got ant script running fine inside Eclipse Here is a piece of it : <p2.composite.repository failOnExists="true"> <repository location="file:/${basedir}/compRepo" name="Repository description goes here" /> <add> <repository location="http://url/Eclipse/repo/Galileo-3.5.1/" /> ...

Build different products out of common base (Java)

I'm looking for a way of packaging different products out of a common base. This could be, for example, for packaging a light version of a product or a specially customized edition. The differences between my different products are mainly the following: Producing different configuration files (text files) out of a single one (could b...

XMLTask 1.16: Does it work with Ant so far?

I'm trying to use XMLTask 1.16, but, unfortunately, I got error, java.lang.UnsupportedClassVersionError: Bad version number in .class file, all the time. But if I switch back to XMLTask 1.15, it work fine. Does anyone know how to make XMLTask 1.16 work with Ant. ...

AS3 Code generation from a wsdl

As part of a nightly build i want to automate the generation of action script classes like Flex does but in an automated fashion. So I'm looking for an equivalent tool to flex builder 3's Import Web Service functionality, but accesable to a Hudson nightly build using ant. Any idea's on tools to achive this. ...

Question about apache ivy dependency revision

hi, i want to achieve the following task: I want to configure ivy so that it fetches a war file from my maven repository. I have another project which will be deployed before doing this task so basicly it is guranteed that there is a folder with several files including the war. if i use the following example configuration everything wor...

How can I turn off the majority of hbm2ddl's output in the console in Ant?

By default, hbm2ddl spits a ton of output to the console when executing the ant task. I'd like to turn this completely off and simply look at the schema file if something has gone wrong. Anyone know how to do that? ...

What is wrong with my ant configuration?

I installed Ant on a Fedora 5 machine using yum, but Ant does not launch. I get this error message: [bash]# ant Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher at java.net.URLClassLoader$1.run(URLClassLo...

Importing eclipse projects using Ant

Hello there, I currently use an Ant script to download several Java projects (projects divided as modules) from a svn repository and generate a single war file. But now there is a need to use those scripts to download these projects directly to an eclipse workspace. Even after the build.xml is executed successfully, these projects are...

Problem with ant file

Hi guys, I have this build.xml file http://gist.github.com/315109 . Every task runs smoothly, but test. I don't know why I'm getting (if I run ant with -v) something like this: [junit] The ' characters around the executable and arguments are [junit] not part of the command. EDIT: As pointed out, seems like that messag...

Is it possible to modify source code with ant?

I would like to do conditional compilation in a program of mine. I know that if you declare a public static final boolean the compiler will ignore the branch that is not traversed. Is it possible to have an ant target change a variable before building the program? For example if I have: final public static boolean windows = false; ...

How to parse a xml by ANT

trying to build a project set file and checkout these projects: <psf> <project ref="version,url,name"/> <project ref="version,url,name"/> <project ref="version,url,name"/> </psf> now I need extract url and name from each project tag. I used <xmlproperty file="example.psf" collapseAttributes="true" /> but when I <echo>$psf.p...

Compiling Issues For Java 7 In NetBeans

So I have Java 7 (64bit Windows build 84) and NetBeans 6.8. I want to use the new invokedynamic stuff in Java 7 and compile from NetBeans but I can't figure out how to get NetBeans to run the program with the right options except when I build it (run fails, build works). The code needs to be compiled with the option -XDinvokedynamic and...

Groovy + Antbuilder: How to use Grape to with taskdef?

This is related to . I'm trying to dynamically add the maven-ant-tasks jars with Grape, simulating this: <taskdef uri="antlib:org.apache.maven.artifact.ant" resource="org/apache/maven/artifact/ant/antlib.xml" classpathref="ant.classpath" /> I've tried to use Grape.grab() to make maven-ant-tasks available to An...

Run AsUnit runner from Ant

How can you run AsUnit test runner from Ant? I'm on the Mac OS so I use: open -a "flash player" tests.swf How can I make this cross platform? ...

How to add hbm2java task to Ant in Neatbeans

I'm trying to generate POJO's from mapping xml files. I read something about adding an ant task, to do it easily. I've added this xml below to my project's build-impl.xml in Netbeans, but nothing happens: <target name="codegen"> <echo>Zippzip</echo> <taskdef name="hbm2java" classname="net.sf.hibernate.tool.hbm2jav...

RESTful httpclient for Ant

I need a RESTful httpclient for Ant. None of the contrib related tasks seem to work anymore.. Hasn't anyone bridged Commons-HTTPClient and Ant yet? ...

ANT Target with property part of the name attribute

I want to define a target using a property as part of its name attribute, but the property doesn't seem to resolve. <property name="foo" value="FOO" /> <target name="${foo}.init.win32" /> <antcall target="${foo}.init.win32" /> The error I get is: Target "FOO.init.win32.x86" does not exist in the project. I guess ANT doesn't allow t...