ant

Ant: make "available" throw an understandable error?

When running ant, how do I make an <available /> block throw an adequate error message? This is what I have so far: <target name="requirements"> <available classname="foo.bar.baz" property="baz.present" /> </target> <target name="directories" depends="requirements" if="baz.present"> <mkdir dir="build" /> </target> <target name="c...

Gradle directory stucture

I am working on a java Ant+Ivy based project that has the following directory structure: projectRoot/src projectRoot/classes projectRoot/conf projectRoot/webservices this works perfectly well in Ant but I am looking to migrate to Gradle. Is there a way to define a non-maven directory structure in gradle or should I be looking to mave...

java: generating a properties file that contains the svn version number

I want to generate a properties file, from my ant script, that contains the svn version number of my project. I'm 1/3 of the way done: To do this I need to: use svnversion 1a. define the svn task 1b. use <svn><wcVersion></svn> put the result in a .properties file that ends up in my build path I'm a bit lost with 1a and 2. any idea...

http post with ant for file uploading

As part of my Ant build process, I'd like to upload files to a webserver via HTTP Post. Ant only comes with an HTTP Get task. However, Ant Contrib seems to have an HTTP Post task. The problem is that it doesn't have any Basic Authentication (like get does) or any way to specify a file upload (despite what the docs say, "rawFile" is not...

eclipse serveral ant build file

Hi, currently I'm developing in eclipse 3.5 in different project web applications for tomcat 6.0.24. For each of this project I have written a ant build file to generate the war file to deploy the project to the tomcat container. So I have to run for each project the ant build file (a lot of clicks, and a waste of time). Question: Is...

Documentation of available Ant tasks for Android?

I just accidentally discovered the ant task for test coverage reports with emma. I'm now looking for a target that only invokes the unit test and generates unit testing output. Is there a list with the available ant targets somewhere, or is it possible to look them up somewhere inside the code of the SDK? ...

Ant: project dependencies in a flat project layout with ivy

Hello, I have two (Eclipse-) projects. Project A depends on project B, but the projects aren't nested i.e. project A is not a subproject of project B. Apache Ivy is responsible for the dependency management. When I run the compile task in Project A, is there any way to trigger the compile task (in project B) automatically (for example ...

Does Serena Dimensions have support for Maven Plugins or Ant Tasks?

There is a lot of contradicting statements regarding whether ANT or Maven support Dimensions (NOT PVCS). Does anyone with real hands on experience know if there exists a reliable, production grade/ready plugin or task for Dimensions? I basically just need to be able to use Maven (preferably) or Ant to grab some revision in Dimensions and...

How do I set up Scala plugin for NetBeans to copy the Scala runtime library?

Versions: NetBeans 6.8, Scala Kit 0.16.1 When I compile my project, I get the following output: init: deps-jar: Compiling 2 source files to F:\MyProgramming\NorvigSpellChecker\build\classes compile: Created dir: F:\MyProgramming\NorvigSpellChecker\dist Building jar: F:\MyProgramming\NorvigSpellChecker\dist\NorvigSpellChecker.jar Not co...

Has anyone used Ant4Eclipse with Project Lombok?

Has anyone successfully used Ant4Eclipse (http://www.ant4eclipse.org/) in combination with Project Lombok (http://projectlombok.org/)? Lombok provides annotations for removing boilerplate code; however, it doesn't appear to play nicely with Ant4Eclipse (headless compilation of Eclipse projects). For instance, the following Lombok sampl...

Error starting modern compiler

In my servlet , I m using Tomcat 5.0 and JRE is 1.5.0 but it is giving error when I click on the URL . As when I created a war file of my project and deployed in tomcat than it is working fine . It means that only problem with my eclipse configuration ERROR IS : - Apr 5, 2010 3:20:22 PM org.apache.jasper.compiler.Compiler generateCla...

CruiseControlException "log.xml does not exist" help

Hi all.... I have a project that have cruiseControl running to build our things. In my config.main I have a <onsuccess> with a <antpublisher> But when some error occur in the ANT I'm receiving a exception: exception publishing results with net.sourceforge.cruisecontrol.publishers.OnSuccessPublisher for project usforce net.sourceforge...

Installing ant; clearly misunderstanding JAVA_HOME

Hey all, I am installing ant on a Windows XP machine, and am following the instructions at Apache's manual site. It said to set JAVA_HOME, so I checked, saw there was no environment variable named JAVA_HOME, made one, and set it to "C:\Program Files\Java\jdk1.6.0_19" When I try to run ant debug, however, it tells me that JAVA_HOME is c...

What default targets do you have in your typical ant buildfile?

Do you have some predefined set of targets which all build.xml files you create contain? For example, a lot of ant manuals suggest the following list of targets: init clean compile build jar test javadoc dist deploy webapp What is the most large build file you met in your life? How many targets did it have and what are they? How ofte...

Flex unit testing with ANT vs Flash Builder 4

I have just tried setup unit testing in Flash Builder 4, and it working nicely. A setup of a parallel test source structure and using Flash Builder 4:s new TestCase and new TestSuite I was up and running with some testcases within minutes. But now I want to compile them from a ant flex task, the Flash Builder generates FlexUnitApplicat...

classpath error when executing a jar by ant

Hi I am trying to execute a jar file created using ant. But i am not able to find out why libraries are not available while executing jar. I am trying to load derby embedded database driver but some how i am not getting derby.jar in classpath. Error that i am getting is [java] Unable to load the JDBC driver org.apache.derby.jdbc.Emb...

Using ant, rename a directory without knowing the full path?

Howdy friends, Given a zipfile with an unknown directory, how can I rename or move that directory to a normalized path? <!-- Going to fetch some stuff --> <target name="get.remote"> <!-- Get the zipfile --> <get src="http://myhost.com/package.zip" dest="package.zip"/> <!-- Unzip the file --> <unzip src="packa...

Eclipse and Ant integration

Is there a way for my eclipse project to inherit the build classpath from existing Ant build.xml files? It would be nice if I didn't have to keep the eclipse project and the ant build in sync! ...

How to do clean and build in eclipse using Ant.

Hi Is it possible to do clean and build a project using ant in eclipse ...

How do I use ANT to produce a .air file?

This is a sample from my build.xml <mxmlc file="${SRC_DIR}/Main.mxml" output="${DEPLOY_DIR}/@{market}.air" locale="@{locale}" debug="false" optimize="true"> <arg value="+configname=air"/> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <library-path dir="${FLEX_HOME}/frameworks/li...