When declaring external ant tasks using taskdef, for instance ant-contrib, the proposed setup is to use the followin taskdef:
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="lib/ant-contrib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
This works when antcontrib.properties is ...
Hi,
I am configuring sql2java the first time myself. I extracted the zip-archive and imported all files into an eclipse java project. I don't know if this is correct, because when I run the ant build file through the eclipse ant function ("Run as ant build...") there is no output on the console.
I don't know where the problem is locat...
This is my first time using ant and I can't for the life of me figure out how to tell where I want it to install files. similar to ./configure --prefix=< PLACE I WANT IT INSTALLED INTO >
Running:
ant package
installs it into ./build/dist/
I've searched but can't figure out what to pass in that'll tell it where to install to. It's dr...
Hi there,
We have a project that uses Maven as its build/dependency management tool. But our code needs to be compiled at our client's site and our client demands that we deliver build scripts written for Ant.
So, we would like to keep working with Maven and automatically generate the Ant scripts when we need to deliver the code to the...
Here's the target I'm using to run my tests:
<target name="run-tests" description="run the tests" depends="compilation">
<junit>
<sysproperty key="tests.basedir" value="${SPECIAL_PATH}/unit_tests"/>
<classpath>
<pathelement location="${COMPILED_CLASSES}"/>
<pathelement loca...
Is there an ant task (similar to ftp or scp tasks) that would allow me to copy a set of files to a windows (smb) share?
Edit: I had to create a task using jcifs for this. If anyone needs it, here is the code.
Depends on jcifs and apache ioutils.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import ...
Supposing that I have a standard EAR file (and the source files that were used to generated it,) what additional processing needs to be done to convert it to an IBM WebSphere "Enhanced EAR"?
Another way to ask this question would be to ask, "What is the difference between an Enhanced EAR and a standard EAR?"
I'm very aware that there i...
I am using ant for my project and I have been trying to generate JUnit report using ant target. The problem I run in to is that at the end of the execution my TESTS-TestSuites.xml is empty. But all the other individual test xml files have data. And due to this my html reports are empty, in the sense results shows "0".
Here is my ant tar...
I first tried the spring mvc tutorial using eclipse, but got a bit frustration and just did the first few steps using netbeans.
Netbeans, using a java web template, creates folders like:
/webpages
/webpages/meta-inf/
/webpages/web-inf/
/webpages/*.jsp
/source packages
/source packages/xxxx/xxx.java
/test packages/
/libraries
/configura...
I have a legacy product, spread across dozens of repositories. I'm currently trying to refactor (and understand...) the given build process. First step was moving from the old version control system to mercurial, which was encouraging and easy.
The build process mainly uses ant build scripts (good news) but has to run 'on' the repositor...
I have some legacy code that reads a configuration file from an existing jar, like:
URL url = SomeClass.class.getResource("/configuration.properties");
// some more code here using url variable
InputStream in = url.openStream();
Obviously it worked before but when I execute this code, the URL is valid but I get an IOException on the t...
I have a set of folders with build.xml and sql scripts (one folder per database schema). I have a build.xml at the root level. I want to set the values of server, port, userid, password etc... in the root level build.xml and pass it to the build.xml in each of the folders. How can I do that?
...
Hi
Our project in eclipse approximately shows the following folders:
application
- src
- JRE System Library [1.6]
- Referenced Libraries
- lib
- rsc
In our project, we would like to use File > Export... > Executable JAR
Well that works fine, with some exception: If we want to run our application.jar, we still nee...
The project currently has only 3 modules with following dependencies:
main +-> subsystem -> shared
+-> shared
After partioning around 3.000 classes compilation takes 3 minutes instead of 30 seconds (before partioning). I would like to split the main project into further modules.
It seems that something causes eclipse to do a full...
I have a set of databases that are built using scripts that are run using ant. I have the scripts for each database in a separate directory.
root (build.xml)
- db1 (build.xml, *.sql)
- db2 (build.xml, *.sql)
...
The root build.xml has a target
...
The build.xml in each of the subfolders is essentially the same but for the data...
My goal is have my ant build script build a war file and include the jars that ivy knows this project depends on. The best code I could come up with at the moment is the following
<mkdir dir="dist/lib"/>
<ivy:retrieve pattern="dist/lib/[artifact].[ext]" sync="true"/>
<war destfile="dist/${ivy.module}.war" basedir="build" includes="**/*....
Hi All,
I'd like to create like a "fat" jar with ant where I have, not only the usual classes, manifest files, etc, but also my 'libs' folder too.
I tried with:
<jar destfile="myjar.jar" update="yes" basedir="${libs.dir}"/>
but this adds the files in 'libs' the root of the jar file where I'd like to have the libs folder itself in th...
I am trying to use ant's to run same build file with contents in different directory.
My genericantfile has , , etc...
When I try to run the build this way I get an error
Unexpected element "{}property" {antlib:org.apache.tools.ant}property
Can I use , etc... in the genericantfile
TIA
...
I have created a mail.jar file and mywar.war file. What I need to set into the manifest.mf use the mail.jar as a library?
...
I use in my project the Jetty-task to execute a webapp. Can I somehow set the working-directory used by Jetty as the servlet-container is started?
...