ant

Ant filter fileset which is referenced by refid

I have a fileset (which is returned from the maven ant task), and it contains all jars I need to repack. This fileset is referenced by a refid. I only want to include our own jars, so I would like to filter that. But ant doesn't support any further attributes or nested tags if a refid is used. Example: fileset is: org.foo.1.jar, org.f...

How do you build an EAR with policy files included using WLS Ant Tasks?

I've been working with JAX-WS with Weblogic Server, using their Ant tasks to build EAR files that can be deployed on the server. I've gotten basic SOAP calls to work with JAX-WS, but now I'm trying to add some message-level security via WS-Security. According to the documentation, there are two ways of adding security policies to web s...

How to include additional compiler arguments when using mxmlc ant task?

Flex Builder allows additional compiler arguments to be set in the compiler options, under properties. It sets the argument; -services ".../services-config.xml" Is there a way to set the same argument when using the ant task mxmlc? Cheers, Mike ...

What is build automation software (for example, Ant)?

I see reference of ant a lot but I don't get exactly what its meant to do? from what i've heard its supposed to compile your projects but can't i just do that by clicking Run->Run in eclipse? Edit : I guess I should rephrase my question. I already know that ant is a 'build automation software', my question is, what exactly is build auto...

Ant: How do I fix a WrappedRuntimeException when using <xslt> task?

I tried to use the xslt task in Ant to modify a Hibernate mapping file (*.hbm.xml) using XSLT. However I kept on getting an com.sun.org.apache.xml.internal.utils.WrappedRuntimeException. If I take out the !DOCTYPE declaration in the source xml file, the following target runs without any error. Could someone please tell me what I'm doing...

Netbeans 6.5: Change an environment variable during run/debug/test?

Up until Netbeans 6.1, I was using the following recipe to change the PATH environment variable during run/debug/test tasks: in the build.xml file I included: <property environment="env"/> <target name="-init-macrodef-java"> <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1&quot;&gt; <at...

Automated Script for testing Network Connectivity in Linux

I have got a requirement to test network connectivity to around 30 servers with different ports as part of some new firewall rules implementation. After the rules are in place i need to check whether the connectivity is succesfull or not, and i need to test the same rules from 3 servers. SO i am looking at some way i can automate this. C...

synchronising / maintaining ant and eclipse classpaths

I'd be interested to find out about any automated processes that people have for ensuring that the project classpaths for the ant and eclipse configurations are in synch. In my case, I want the classpath defined in the ant build file to be the master configuration, since its used for our production builds. As part of the build i'd like t...

How can I replace Ant with Maven?

What are the minimum steps I should follow to replace Ant with Maven? ...

Python build/release system

I started using Pyant recenently to do various build/release tasks but have recently discovered that development for this project has ended. I did some research and can't seem to find any other Python build scripts that are comparable. Just wondering if anyone can recommend one? I basically need it to do what ANT does - do SVN updates, ...

Ant task for modern multithreaded archivators (7zip, winrar etc.)

We are using Ant Zip task, which is a bit of moral obsolete (low processing speed for big files). Can anyone point me out to mature ant task ready for production using that supports multithreaded for compression/decompression? First of all I wish to increase speed of processing archive files. I found 7ZIP Ant task, but it looks a bit ...

How to reference an external library in an Ant build and general Ant help?

Hi, We have an ant build script for a project we're developing for a PDA. In eclipse we have a load of referenced libraries and I know how to get them to work when we run the jar on the PDA because we have a .lnk file where you can add the external libraries simply by adding the following: 512#"\J9\PPRO11\bin\j9.exe" -jcl:ppro11 -cp "...

Run, The Command Line and that Path Variable

Hi, I'm having a very weird issue with the command line and running Ant. I point the path variable at the location of my Ant bin directory (C:\Ant\bin) and when i go into a command window and type PATH it shows the location in it. But when I go to run Ant by typing "ant" it does nothing and states that it isn't recognized. But when I g...

How to "dynamically" generate a fileset?

How to dynamically generate a fileset based on user input? Given this directories : root --dir1 ----filesA.txt ----subdir1_1 --dir2 ----filesB.xml --dir3 ----filesC.java ----subdir3_1 --dir4 ----filesD.txt ----subdir4_1 ------subdir4_1_1 and that command-line call : ant -Ddirectory="dir1 dir3" <target name="zip"> <zip destfile="$...

FindBugs not accepting bcel.jar in ANT script

I installed findbugs into my ant lib directory and added the following code into my main ANT script: <target name="findbugs" depends="init"> <findbugs home="C:\\findbugs\\" output="html outputFile="C:\\findbugs\\out.html" jvmargs="-Xms512M"> <sourcePath path="${messageaggregator.src}" /> <class location="${messageag...

Do you use ant's <depend> task?

The documentation for ant's task states: The performance of the depend task is dependent on a number of factors such as class relationship complexity and how many class files are out of date. The decision about whether it is cheaper to just recompile all classes or to use the depend task will depend on the size of your...

Using checkstyle with Ant during an automated eclipse build

For the last months I've been slowly improved the Eclipse automated PDE build process for our application. The first thing I tried was automating the test cases. The next step was some scripting code to generate an installer automatically, for both linux and windows. Now I want to add some static code analysis reports to the process. ...

Automate tasks in Eclipse by buttonpress

Is there an easy way (i.e. not developing a custom plug-in) to create a button to my task bar that would run a specific Ant target? It doesn't have to be native - it's ok if it escapes to the OS shell, or other magic trickery. I'm using Eclipse Ganymede on OSX. ...

How to automate build, deploy and test java web application?

For now I have a web java project which builds automatically and deployed to the JBoss by just copying ear archive to server dir (all using Ant). What I need is a mechanism how to no only automatically deploy application, but also to verify if application deployed successfully and run HttpUnit tests on it. The problem is how to autom...

Running "pure" JUnit 4 tests using ant

We have migrated to both JUnit 4 and ant 1.7 The tests runs fine in eclipse, but the annotations are ignored when running the tests using ant. According to ant's junit task http://ant.apache.org/manual/OptionalTasks/junit.html%5D">documentation. It also works with JUnit 4.0, including "pure" JUnit 4 tests using only annotations and...