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...
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.
...
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="." />
...
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?
...
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...
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...
I have seen many ivy files in my application's build projects. What is Ivy, and its relation with ant?
...
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...
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...
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?
...
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....
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 ...
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...
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
...
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...
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...
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...
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...
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...
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...