ant

Using Maven from Ant

Are there ant plugins that wrap maven so that I can make use of its dependency management features to download jars for me and place them in my ant build's lib folder? My specific problem is that I'm using the Crap4j plugin for Hudson, but it doesn't, as of yet, support Maven. Since it's a small project, maven is overkill, but I don't ...

Ant build consoles get clobbered by dependent projects in Eclipse

I have a set of dependent projects in Eclipse, each with its own Ant build script. If I make a change in multiple projects, then select "Build All" (Ctrl+B), each Ant build is invoked in the correct order. But if there is an error in one project, Eclipse still tries to build the other projects also, and in the process clobbers the Ant co...

Building RAD7 project from command line.

Hey We have existing projects set with compilation dependencies in a RAD7 IDE. Is it possible to create automated build script from the existing project structure? We have IBM portal projects and regular WEB and enterprise projects. Maven and Ant are possible solutions but can we use these tools to build existing projects from command l...

Read a non xml file from an Ant task?

XmlProperty is perfect to read an xml well formed file (from an Ant task)? But how to read a non XML one? More precisely, How To Read a pattern from a non XML file ? ...

How to avoid copying 40M of java lib's within a WAR when the WAR's size is 41M?

At the moment my build process consists of repackaging the war file with all required java libraries under WEB-INF/lib and then copying the war file to development/demo/production server to be redeployed by tomcat. The packaged war file's size is about 41M and it has at the moment something like 40M of external java libraries. There ha...

Getting Ant <javac> to recognise a classpath

I have an Apache Ant build file with a <javac> command that requires four specific JARs to be on the build classpath. I've tried to do this: <project basedir=".." default="build_to_jar" name="Transnet Spectrum Analyzer"> <property environment="env"/> <property name="src" value="src"/> <property name="libsrc" value="library_s...

Apache Ant Build command "Access Denied"

Hey! I am trying to get ant installed and actually already did following this instructions however, I get this error: Buildfile: build.xml does not exist! Build failed which it says there I might get so I just tried executing the next command it says I should(since I'm under Windows it's this one): build -Ddist.dir=<C:\Ant> dist an...

Building Flex Project with RSLs and ANT

Hi, Can someone give me a code example of how to build a flex project with ANT using framework RSL's? This is what im currently using but the file SWF generated is way to big; <target name="main"> <mxmlc file="${SRC_DIR}/myApp.mxml" output="${DEPLOY_DIR}/myApp.swf" actionscript-file-en...

Default element for Ant's macrodef?

I would like to create a macro as such: <macrodef name="testing"> <element name="test" implicit="yes"/> <sequential> <test/> </sequential> </macrodef> And then use it: <testing> <echo message="hello world"/> </testing> However, I would like to specify a default for the implicit element... something like: <macrodef name...

running junits and cobertura with maven.

...

Enter multiline value using Ant's input task

Anyone know how I can enter a multiline value in an Ant script? I'm prompting the user for a Subversion commit comment using the input task, and I'd like to be able to support multiple lines of text. I'm running the standalone version of Ant at the Windows command prompt. I thought I might be able to do a search and replace for \n, but...

Maven vs. Ant

If there is Maven does it at all make sense to learn and use Ant? ...

Can't access env vars from ANT after OS upgrade

A server was upgraded from Windows 2000 to Windows 2003 and now I can't access environment variables from Ant build scripts. I can still access them fine from a command line, but ${env.JAVA_HOME} for instance fails. How can I fix this without rewriting ~100 build scripts that work on all other servers to be customized for this server? ...

Why doesn't my Ant master build file work properly?

We have a bunch of Ant scripts, one for each of our subprojects. In the end we want to run all of these from a master build script and do some other housecleaning to package the whole project. Each of the individual Ant scripts is named ant.xml and is in the subdirectory of its project. Each uses an Ant import to import an ant-commons.xm...

Using Ant to ensure a properties file only contains unique entries

Is there a way in Ant which can check that a specified properties file only contains unique keys? A build failure would be the required behaviour if any duplicates are found. ...

flex compiler error (warning) message in flex ant task

I have following warnings if I compile our flex project with the ant task from the flex sdk. Does anyone have an idea where this comes from and why this happens and if I can safely ignore it? (The swf file itself seems to get created without an actual error) [mxmlc] The args attribute is deprecated. Please use nested arg elements. [mxml...

Classpath validation in ant

I have a <path id="..."> in my build.xml. Before invoking the compiler I want to verify that every jar/directory on the classpath exists and print a warning with the missing ones. Does anybody know an existing solution or do I need to write my own task for that? OK, I decided to go for a custom task. Here it is, in case anybody eve...

Why do I get the error "Only antlib URIs can be located from the URI alone,not the URI" when trying to run hibernate tools in my build.xml

I'm trying to run hibernate tools in an ant build to generate ddl from my JPA annotations. Ant dies on the taskdef tag. I've tried with ant 1.7, 1.6.5, and 1.6 to no avail. I've tried both in eclipse and outside. I've tried including all the hbn jars in the hibernate-tools path and not. Note that I based my build file on this post: ...

Ant (or NAnt) in Lisp

In his article The Nature of Lisp, Slava Akhmechet introduces people to lisp by using Ant/NAnt as an example. Is there an implementation of Ant/NAnt in lisp? Where you can use actual lisp code, instead of xml, for defining things? I've had to deal with creating additions to NAnt, and have long for a way to bypass the xml system in the ...

Findbugs filter file for ignoring JUnits

Hi guys, I need to set up a filter file for my findbugs ant script that scans only the src/* files and not the test/* files. What is the syntax for checking all classes while ignoring any filename or package name with 'test' in the name? Thanks ...