ant

Sample Ant project with all the 'features' of Maven?

The past week or two I've been studying Maven, and I like it, but there are just a few things that I require Ant tasks for, rather than Maven's complicated and scarcely-documented POM file. However, I believe Maven has a great folder structure going for it, and I like that it natively supports tests, packages the project into a jar by de...

Inserting CLOB data with ANT

Hello, I am trying to use Ant to initialize my Oracle database by using Ant. I followed this guide: http://www.roseindia.net/tutorials/ant/AntScripttoInsertDatainMysqlTable.shtml and that works but I was wondering if anyone knows how to insert CLOB data into Oracle tables using Ant. Thanks in advance. ...

Ant dirset that includes the root directory

How can I define a dirset in Ant, which includes two directories: the project's base directory, and a subdirectory "test"? It looks like you can't specifically include the root directory of the dirset, using either "/", ".", or "". For example, this includes "./test", but not ".": <dirset dir="." id="myDirs"> <include name="." /> ...

Is it possible to replace text in properties in Ant's build.xml?

I have a property, app.version, which is set to 1.2.0 (and, of course, always changing) and need to create zip file with name "something-ver-1_2_0". Is this possible? ...

Is there any way to specify a bootstrap target in an ANT build file?

In my Ant build file, I'm using an encrypted property which I'm reading off a text file. I need to decrypt this in sort of a bootstrap target during my build process. How do I do this? As an example, here are the contents of the files. myFile.txt: ENCRYPTED=encryptedtext build.xml: <project name="myProject" default="all"> <property...

Ant-Ivy-Scala Template: any suggestions on improvements?

I just created a template project for Scala using Ant and Apache Ivy. I want to get the communitie's input on any improvements to the Template so it can be improved. The Environment effectively consists of 3 files: build.xml ivy.xml ivysettings.xml running ant init will create all needed directories. I was wondering if there are an...

what is ivy? and how it is related to ant?

I have seen many ivy files in my application's build projects. What is Ivy, and its relation with ant? ...

Strange Ivy Error Message

Hi, I'm using ant with maven to build a multi module project. Until now everything worked fine but now ivy complains that it finds a"bad module". java.text.ParseException: inconsistent module descriptor file found in 'XYZ.ivy.xml': bad module found in XYZ.ivy.xml: expected='true' found='null'; I don't know what ivy want's to tell m...

ANT: How to "add" path elements from one path into a second path ?

I have an ANT build xml file which includes a path declaration with numerous path elements. I would like to declare a second path that "includes" somehow all the elements from the former path into its own. That would then allow me to just the later path rather than requiring me to include both when paths are required. Without copying al...

building java project using ANT utility

I am using an ANT script to build the jars of the projects that I have in my eclipse workspace. The command that I use is ant -f <build_file.xml> I want to build the projects using the ant script only (at the moment I am using eclipse for the this). Can anyone help me out? ...

ANT + not replacing variables from a file list

This should be a simple one. I had another codebase that this worked but for some reason it wont work here at all. My file will.txt is unmodified. Here is an exerp from my ant build file .. Any ideas Ive wasted hours already banging my head trying to get it to work. <loadfile property="config.update.list" srcFile="config....

Splitting Ant files - extrapolating into smaller ones? Is there a clean way or bestpractice?

I'm re-working an ant build file that we've been using on our project for a long time. It's starting to get large and unwieldy with lots of targets and properties. I want to extrapolate and break it down into smaller files. Since I'm fairly new to ant, I'm wondering what's the most commonly used way of splitting build.xml files into ...

Sample EJB 3.0 MDB on Weblogic with Ant script

I'm struggling to find a simple example that builds and deploys a message driven bean onto Oracle Middleware 11g (i.e., Weblogic). I'm using dependency injection. It seems there should be a simple Ant task provided by Oracle to simply compile and deploy the MDB. import javax.jms.MessageListener; @MessageDriven(messageListenerInterfac...

JAVA_HOME variable under OSX... what is it exactly?

I've been trying to build evaldictator on OSX. Unfortunately I have little to no idea of what ant or scons actually do. My main question is when I do something like export JAVA_HOME='/lab/speech/java/jdk1.5.0_06' what am I doing. Thanks in advance ...

replaceregexp to trim not working properly in Netbeans

I'm trying to to a trim to some values using replaceregexp. Everything looks great when I try it in software like EditPad Pro. Here's a sample of what I want to accomplish: mf.version.impl = 2.01.00 mf.version.spec= 2.01.00 Notice the extra spaces after the last digit. Then I'm using this pattern: [0-9]+.[0-9]+.[0-9]+[ ]* But...

JAVA_HOME gets mangled by Maven

I'm retrofitting bunch of existing Java projects with unified Maven build. Since each project is mature and has established Ant based build all I'm using maven-antrun-plugin to execute existing build.xml as follows: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execut...

Ant: How to strip the basedir from an absolute path to get a relative path?

In the build.xml of my project I have a property defined: <property name="somedir.dir" location="my_project/some_dir"/> The value of "${somedir.dir}" will be an absolute path: "/home/myuser/my_project/some_dir". But what I need is just the relative path "./my_project/some_dir" without the ${basedir} value "/home/myuser". How can I ach...

Having a developer-specific configuration for Apache Ivy

I'm using Apache Ivy to manage dependencies in the project with several developers. They will share most of the Ivy configuration, but some pieces (like corporate proxy username and password) should be developer-specific. I've created a reference file for everyone to place in the ~/.ivy2/ivysettings.xml (this is where developer could spe...

Ant: Create directory containing file if it doesn't already exist?

Basically, I get a path like "C:\test\subfolder1\subfolder2\subfolder3\myfile.txt", but it's possible that subfolders 1-3 don't exist already, which means I'd get an exception if I try to write to the file. Is there a way to create the directory structure the target file is in, either by using some task that creates the structure when i...

wsdl2Java fails from Headless Ant

We are working in RAD (7.0.0.x) for development to Websphere 6.1. In our ant script we have the following: <!-- *************************************************** --> <!-- ** Generate WebService Client classes --> <!-- *************************************************** --> <target name="-generate-classes" if="ejbmod...