ant

Getting the list of files changed from a commit in perforce

Hi, Is there a way, in Hudson, of getting the list of files from a p4 change list and passing it to an ant build script ? ...

using JSBuilder2.jar in Maven2 Web Application

Hi Folks, I have started playing with Maven2 and I'm attempting to port one of my projects from ant to maven. I have managed to build ear file, use jaxb and other bits, but there is one thing left I don't know how to approach. I have WAR module, with ExtJS code, and I'm using JSBuilder to create and package the code nicely. This is don...

ant zip; exclude all sub-directories and files

When creating a zip from ant, how can I exclude all sub directories and files from a given directory? I have tried the following but it doesn't seem to prevent them from being included in the zip <target name="zip"> <zip destfile="C:\Projects\example\builds\.zip" excludes="C:\Projects\example\logs\**\*.*"> ... ...

Eclipse ==> Ant plugin ?

Can anybody please tell me how i can add the ant plugin to eclipse? Thanks ...

Why do I have to enter data twice for exec in ant scripts?

In the following ant build.xml snippet, I am performing an rsync operation. The rsync command prompts for a password. The problem is, when it prompts for the password, I enter it once, hit enter, and nothing happens. So I type it again (second time) and hit enter, then it works. It's strange to me that I have to enter it twice and I ...

How to get Ant in Apache to copy files every build

Hi, I'm using Eclipse and Ant in my development environment. I've come across a problem Here's part of my build.xml <target name="deploy" depends="dist" description="deploy jar files"> <!-- Deploy jar files on local Tomcat --> <echo>Deploying in ${tomcat_home}/webapps</echo> <echo>Copying JSP files from ${build_dir} to ${to...

Execute Ant for web-applications in Intellij Idea

When I trying to run Ant — he show me an alert with “Project JDK not specified”. How I can use Ant in Intellij Idea for web-applications without JDK? ...

ANT_HOME is set incorrectly or ant could not be located.

I'm trying to build a project in Ant, using BuildFile (build.xml). Although ANT_HOME environment variable clearly exists and is set to the path where "ant.bat" is located, it always displays this error message. How to configure Ant properly to compile builds in Windows? Thanks ...

Ant compile error using Java

I'm trying to use Ant, and I get this error when I type "ant" into the command line for my compile target: [javac] C:\development\src\j3\textprocess\build.xml:15: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds Did I not set something up correctly? Here is my build.x...

ant java execution hangs after complete

In Liferay ext build-parent.xml there is a target build-webxml that executes java. Unfortunately this target does not complete for some reason. I debugged the code and main method finishes. But still the echo directly after the java is not executed. It just hangs in the end When I Ctrl+c then it prints out [java] Java Result: 1 [ec...

Creation of InstallAnywhere installer inside of Hudson CI

My company is trying to automate the creation of a nightly installer with Hudson. Our license to install anywhere is running on a separate server. We have an ANT build script set up to call the InstallAnywhere jar file which creates the installer automatically, and that works great when ran from the command prompt. However when we t...

List of common environment variables for cross-platform, Apache Ant, builds

Does anyone have a list, or even better a target that normalizes, the environment variables that are common on Linux, Windows, and OSX that would enable cross-platform, consistent Apache Ant builds? For example: On OSX, you can specify env.HOME and perform file operations, like loading a property file, from the user's home directory, /...

Schema export with hibernate annotations

I'm using hibernate annotations and i want to export my database schema. Similar to the schemaexporttask with hbm xml files. ...

Files inside WAR appear double

I'm using ANT to build the WAR file for my Java web app. However, when I look inside the WAR file I see every file appear twice (not the folders, just the files). When I extract the WAR file there are no errors and the file structure appears to be correct, no double files. If I then compess the extracted file back into a ZIP file the arc...

Getting Error running javac.exe compiler message, while using Ant in Eclipse

When I run my Ant build in Eclipse, I'm getting the following error message and the Ant build fails. Error Message: Error running javac.exe compiler Line where the build stops: <javac destdir="${classes.home}" debug="on" fork="true" memoryinitialsize="512M" memorymaximumsize="1G"> <classpath refid="classpath"/> <src pa...

Dynamically finding build files with <ant> task

Hi all, I am trying to build subprojects from my main Ant build script.. The build files are located in plugings/<pluginName>/build.xml I want to do something effectively like <ant antfile="plugins/*/build.xml" ...> It should dynamically find build files in the plugin directory. Haven't been able to get it to work yet with filese...

Ant build fails with no visible errors

EDIT: I ended up setting up the whole project in Eclipse and was able to get it to build. I'm not sure why this problem occurred and hopefully I'll never have to find out. I'm having a problem where my build is reporting "BUILD FAILED" without reporting any errors. I'm building a large application of a lot of old code which I now have...

Replace comma-separated dir list with ant's patternset or fileset

In ant target I get a property, containing the list of directories to be included in further action (copying, filtering, etc.). It look like this: directories=dir1, dir2, dir3 I need a way to convert this list to a fileset that selects all files in these directories. I know I can use a script to generate pattern strings and then use ...

Hudson and UCM ClearCase

I have recently put one of our projects on Hudson using the UCM ClearCase plugin. Hudson works well until a configuration changes and then it hangs at update. In ClearCase the user is prompted and asked if they would like to continue (yes/no) when theres a change so im guessing this is where Hudson is hanging. I have configured Hudson t...

A zip file cannot include itself - Ant build error.

I have error at the first line of the following code while building with Ant builder, <war warfile="${wartemp.dir}/${name}.war" basedir="${wartemp.dir}" webxml="${wartemp.dir}/WEB-INF/web.xml"> <include name="*"/> <include name="scripts/**"/> <include name="styles/**"/> <include name="imag...