I want to set a path variable cp to one of two values depending on the value of an property.
E.g. the following is what I'm trying to achieve, but I'm not sure about how to get it working properly...
<if>
<contains string="${jboss.home}" substring="jboss-4.2.3.GA"></contains>
<then>
<echo message="Using JBoss 4.2.3 clas...
I have a bunch of modules which I'd like to all have their own ant build files. However, modules have dependencies on other modules. What's the best way to define dependencies between build files?
I've looked at the <import>, <ant>, and <antcall> tasks, but it seems like maybe there's a better way to do this.
...
I am looking to obfuscate our Java web app code within our existing Ant build script, but am running into problems around unit testing. I am obfuscating the code right after it has been compiled, before it is jar-ed and before the unit tests are ran.
However, if I obfuscate my production code and not my test code, all my tests fail b...
I'm trying to build a web application which takes it's class files from multiple locations. These locations can contain the same class files. I need to be able to specify a priority so that some locations take priority over others when copying the classes across.
We have separate ant scripts which build the WAR file. This build is to...
I have switched to JUnit4.4 from JUnit3.8. I run my tests using ant, all my tests run successfully but test utility classes fail with "No runnable methods" error. The pattern I am using is to include all classes with name *Test* under test folder.
I understand that the runner can't find any method annotated with @Test attribute. But the...
In ant you can do something like:
<property name="version" value="${some.fake.version}"
<shellscript shell="bash" dir="${build.dir}">
echo "some shell cmds"
df -h
ls *
svn export http://svn.org/somedir
</shellscript>
Okay, that shell script doesn't do anything, I know, but how would I the property "version"...
I have to execute several command line executables in Windows through Java. Rather than using Runtime.exec, I thought of using Ant Tasks to do these invocations, hoping it would be a better way.
Is there any other better approach or any popular library to do this?
...
I have a standard project layout for a java project:
project /
src /
source_file_1.java
...
source_file_N.java
build /
classes /
source_file_X.class
...
jar /
MyJar.jar
lib /
SomeLibrary.jar
SomeOtherLibrary.jar
As far...
We have at work a Hudson machine that acts as a build server for a Java Swing Project.
The build process is based on Ant scripts (and not Maven).
Has anyone integrated tests from QuickTest Professional is such configuration?
In other words: Is it possible to execute qtp tests automatically via Ant?
...
Our software is written in Java and comprise many (7) projects.
These projects are Netbeans ant projects.
I'm considering to converting them to maven2.
Where can I find some hints for doing such thing?
...
I am trying to get ant4eclipse to work and I have used ant a bit, but not much above a simple scripting language. We have multiple source folders in our Eclipse projects so the example in the ant4eclipse documentation needs adapting:
Currently I have the following:
<target name="build">
<!-- resolve the eclipse output location -->
...
Hi,
I'm doing a project at uni and would like to create zip files which name (just a build number) increments after each successful build.
What's the easiest way to do this? Is it a case of having to write a custom task or is there some built in functionality that will allow me to do this, simply and easily?
I did have a look at the Z...
If my ivysettings.xml file includes:
<url name="com.springsource.repository.bundles.external">
<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]...
I have a war file (actually not my own, it's Apache ODE 1.2) that fails to deploy into WAS 6.1 because of a classloader issue - and a specific incompatibility with wsdl4j.
If I manually edit the classloader for ODE and create a shared-library for wsdl4j1.6.1 it's all fine.
However, the client has come back stating this is not acceptable...
Working with Ant's regular expressions system seems to give me no end of trouble. With enough work I can usually get it to work (and understand what I was doing wrong earlier). But not this time. I have a simple target wherein I want to extract the first element out of a property that contains one or more comma separated words, like this...
I mean that of the built-in ECMA objects: String, Number, Object, Function, RegExp, Error, Boolean, etc..
...
I've been trying to understand what Ant is used for but i still don't get it.
Can someone give me one use case for which Ant is used for, something I can try to see why Ant is useful and what kind of things I can use it for?
I do Java development in Eclipse and I'm just getting started with servlets and Google Web Toolkit.
...
I am having a problem running Ant with JDK 1.6 on Mac OS X. Even though Java application versions is set to Java SE 6 in OS X's Java Preference, executing java -version in Terminal also shows java version "1.6.0_07", Ant still seems to use JDK 1.5 to be using JDK 1.5 as it does not see JDK 1.6 classes when compiling my code.
I understan...
I want to install SMSlib (http://smslib.org/) in installation instruction (http://code.google.com/p/smslib/wiki/Installation).
In here I must install Apache Ant, but I didn't understand how to do that.
I already download Apache Ant 1.7.1 , read manual (http://ant.apache.org/manual/index.html)
In here I must have RPM version from jpac...
I use in a project checkstyle and I have defined a SuppressionFilter in my checkstyle-configuration. I use Apache ant to make automatic builds via Continuous Integration.
My problems comes from the following situation: I don't want to fill to much files into the project-basedir, so the checkstyle.xml and the suppressions.xml are both in...