ant

Ant Tasks for Symbian

Are there any tools/ ant tasks that could be integrated into the ant build file to build Symbian applications? Similar to what we have for Android (AndroidAnt), BlackBerry (BB Ant Tools), .NET (Nant) ...

Glassfish and Ant

Hi. I'm just in search how to deploy my project to the remote Glassfish v.2 server. It's easily could be done by installing Glassfish server on local computer and using as-admin tool but it's just a waste of space, time and recourses... The better way is to use jar files with defined Ant tasks(like you do with Tomcat or GAE), but as i fo...

Find working directory from Ant

Is it possible to tell which directory the user ran Ant from? For example, I might want to run only the unit tests in the current working directory, rather than all tests for the entire project. I tried this: <property environment="env" /> <echo>${env.CWD}</echo> but that doesn't work. ...

Is it possible to add a custom manifest to a Java library compiled in Netbeans 6.7.1?

I tried adding manifest.file=${src.dir}/manifest.mf to project.properties, but looking through the build-impl.xml I see that the manifest.available is usually accompanied by main.class condition, so it makes me believe that my manifest would be added only if the package has a main class, which mine, being a library, does not have. No mat...

How do I specify a file to pass to a java process run by an Ant task?

I have an Ant task to call a java process that takes a file on the command line. I can pass the file directly to the java program but I can't figure out how to make Ant take the file on the command line. Here's what I've got: <target name="FileProcessor" description="Process a specified file"> <run-standalone name="CheckClearer" ma...

Building Flexbuilder projects in ant

I'm using Flexbuilder as an IDE, and I'm working on automating the process of building my application. In the process of setting up the ant build file, I noticed that there's no way to call the project using the list of dependancies that Flex builder stores - each library or library project has to be added to the flex compiler commands...

How can I make sure all the output from ant's exec task gets printed on stdout?

The ant exec task has an output property which can be used to tell ant where the output goes. I've used it to redirect the output to a file. The thing is, if I don't do something with the output, the stuff that ant prints isn't that much of a help ( it's not the complete thing ). Is there someway of setting the output property to System...

Apache Ant command line arguments without double quotes - is it possible?

Today I had to add a task to an Apache Ant file. The command line should have been something like myprogram --param1 --param2 path\somefile 2> path\logfile The problem with this was that if I used something like the following for this <exec executable="$(myprogram)" <arg value="--param1"> <arg value="--param2"> <arg path="$(som...

How do I copy all referenced jars of an eclipse project using ant4eclipse?

I've tried like this (link): <taskdef resource="net/sf/antcontrib/antlib.xml" /> <taskdef resource="net/sf/ant4eclipse/antlib.xml" /> <target name="copy_jars"> <getEclipseClasspath workspace="${basedir}/.." projectname="MyProject" property="classpath" relative="fa...

Ant says "buildtests" does not exist, but I can't see why it is looking for "buildtests"

I am running an Ant script that is part of a tutorial at http://maestric.com/doc/java/spring/setup The error is: BUILD FAILED Target "buildtests" does not exist in the project "null". I am running Ant through eclipse. The Ant script is: <?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="build"> <property file=...

Integrating Ant-Contrib into Eclipse

I tried to integrate Ant-Contrib 1.0b3 into Eclipse by adding the ant-contrib-1.0b3.jar and the appendant jar-files from the libs-directory to the "Global Entries"-section of the Ant-Runtime-preferences page in Eclipse. For tasks that don't need the libs this works fine (such as propertyregex), but when I try to use the postMethod task ...

Appending software version to a JAR filename

I would like to append the output JAR filename of a Netbeans project with some version number: something like 1.0, 2.0b or even a Subversion revision number. I can't seem to find anything on this, though. I am also not sure if this would the responsibility of the build system (Ant) or if the IDE (Netbeans) can delegate the process. Is...

Could not load definitions from resource flexTasks.tasks. It could not be found.

I'm attempting to compile a Flex application from an ANT script, inside of Eclipse (CFBuilder, based on Eclipse), and I've run into this error: Could not load definitions from resource flexTasks.tasks. It could not be found. I haven't been able to find anything that gives directions on where this file (flexTasks.tasks) shou...

Java Content Assist / Refactoring with External Build tools

We currently build our Android (Java) projects using the built-in Eclipse build tools. Then we have a separate ANT build script for automated building, unit testing, etc. I would like to switch to using the ANT script inside Eclipse as well. What I can't figure out is how Eclipse content assist and refactoring tools will interact with s...

how i can create my own jar using eclipse or ant??

hii how can i create my own jar file for android application using eclipse or ant?? ...

Ant (1.6.5) - How to set two properties in one <condition> or <if>

I am trying to assign two different strings to two different variables dependent on two booleans in Ant. Pseudocode (ish): if(condition) if(property1 == null) property2 = string1; property3 = string2; else property2 = string2; property3 = string1; What I've tried is; <if> <and> <not><isset propert...

Easiest way to have a true "file tasks" in ANT

I am still learning how to use ANT well, and I wanted to understand if there is some reasonable way to do file tasks in it, similar to Rake and Make: http://martinfowler.com/articles/rake.html#FileTasks "With a file you are referring to actual files rather than task names. So 'build/dev/rake.html' and 'dev/rake.xml' are actual files. T...

Ant's global property WEBLOGIC_HOME in eclipse

Ant in Eclipse has the global property WEBLOGIC_HOME but while it gives a correct tooltip in the editor it doesn't work in a build script, e.g. <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask" classpath="${WEBLOGIC_HOME}\server\lib\weblogic.jar" /> gives: build failed: wsdlctask cannot be found. When I replace...

Getting around redundant dependency limitation in Ant?

The limitation I'm referring to is documented here. Essentially, in my build script if I want to do a clean, build and then another clean I'm hitting an issue because Ant considers the clean task already complete. Here is my ant; <!-- ============================================================= --> <!-- Clean up directories ...

Include ant build xml inline from jar file without unzip?

I would like to simplify my main build scripts, and I'd like to have the ability to reuse certain common ant tasks as a library, but I'd also like them to be easily available as a package. For instance, I've got a task which sets up the Flex environment variables that I need to build a variety of projects. I can (And am currently) inclu...