ant

How to Create a runnable jar that uses external jar files in dynamic locations.

Hi, I've programmed an application that take about 300 kilobytes. The jar files that it uses (library) take about 10 megz. These library jar files are used in other applications I wrote and so I would like to have them located in an external central location (Meaning - A path on some hard drive in the same computer). Hopefully, the pat...

Naming of build scripts

We do our build-management with Ant, we have to build scripts, one to create a dispatchment for our customer, with hash informations, the sourcecode, installation-guide etc., the other build-file lies in the created artefact, and is the build for the customer which creates the war file from the sourcecode. for the build-file which creat...

speed up java maven compile on amazon clustering

just a wild idea. wonder is it possible to compile maven build on amazon clustering machines to speed up build processes? any reference or guide on this? reference ...

[junit] No tests found using JMock

having problems trying to run by unit test with Ant, my test class uses Jmock; @RunWith(JMock.class) and annotations to identify each test method. When i attempt to build with ant (1.7.1) i get a [junit] No tests found in MyTestClass [junit] junit.framework.AssertionFailedError: No tests found Any suggestions? ...

Ant for other ant's

I have several projects, most of them has "test" target, which run tests and store results in property 'test.faulire'. All projects located in same directory: big_project / someproject1 big_project / someproject1 / build.xml big_project / someproject2 big_project / someproject2 / build.xml So, in root of 'big_project' i want to crea...

Apache Ant: Run ant without showing the target names

Hi, When I run my build file, it always shows the target name. For example, in my build file if I have targets A,B,C. Then on when I type the command "ant A", it shows A: How do I avoid displaying the A? You help is very much appreciated. Thanks in advance. Bakhtiyar Uddin ...

Creating ANT script to deploy to glassfish, run junit tests and then un-deploy

Hey guys, I have a j2ee app which I am building with Netbeans. My task is to modify the build.xml so that after the app builds, ANT deploys the app to a server, runs Junit tasks on the app, and then un-deploys the app. So far I have the deploy and un-deploy working but I'm running into some trouble running the junit tasks. I have a c...

Netbean RCP Dependency build

Hi all, i'm using Netbean RCP to develop my desktop application. my goal is to use the "cruise control" for overnight builds. i just can't find any information of how to build all Java sources to compounded jar (consisting of all netbeans modules). i want also to be able to define that if ,for instance,case the org.openide jar is missin...

Adobe Air - packaging an air installation file with ant

I’m having problems packaging an air application with ant. Adobe references taken from: http://help.adobe.com/en_US/FlashPlatform/develop/air/building_apps/WS5b3ccc516d4fbf351e63e3d118666ade46-7f66.html I run ant using java classes inherited from org.apache.tools.ant.Task. This builds up the argument list for the adt tool e.g. Java ...

ant to maven - multiple build targets

I have an ant build that is currently being converted to maven. However, the ant build has 2 build targets - one that builds the entire app, and one that builds a jar from some of those files (only a few). In ant, it's easy to have multiple build targets to handle this, but I'm trying to determine the best way to handle this in maven. I...

Relative paths in Ant Property are not working

I'm trying to store a relative path to a file in my ant build.xml like this: <property name="foo" location="somedir/myfile" relative="true"/> According to the Ant manual for Property this is ok syntax, but when running it Ant says: property doesn't support the "relative" attribute I'm using Apache Ant version 1.7.1 compiled o...

eclipse.buildscript building a platform specific feature on the wrong platform

I have a feature and plugin called foo, and both are win32 platform specific; however, when I call the following in my ANT script on a linux, gtk, x86 system, the feature is built, but the plugin isn't (correct). <eclipse.buildScript elements="feature@foo" configInfo="${os},${ws},${arch}" buildDirectory="${edge.build.eclipse.loc}" baseL...

What's the real utility of make and ant?

While i'm developing in C/C++ and Java, i simply make a compile.bat script that does everything, that's fine for me. Why should i use make and why should i use ant? ...

Ant - append a list of file names

Greetings all, I need to write an Ant target that appends together (comma-delimited) a list of '.jar' file names from a folder into a variable, which is later used as input to an outside utility. I am running into barriers of scope and immutability. I have access to ant-contrib, but unfortunately the version I am stuck with does not hav...

Is there a way to get Hibernate's hbm2ddl Ant task to exclude specific tables?

I use Hibernate to generate my database automatically for testing, and I have some tables in my schema that contain static data that takes a very long time to import. In the past, I've used the following code in my build file to generate the database (from mapping files): <target name="schema-gen" depends="hibernate-gen"> <taskdef n...

How do I select subdirectories in ant using a FileSet?

I'm using ant 1.6.2 and am trying to set up a task that will compare a source and a target directory, identify all the subdirectories that exist in the source directory and delete liked named subdirectories in the target directory. So, say the source directory has sub directories sub1, sub2, and sub3 in it and the target directory has s...

How can I speed up Ant Compilation in FDT / Flex Builder

Is there any way to speed up MXMLC compiles using Flextasks in Ant in Eclipse. Compared to FDT and Flex Builder's in-built compilation, it is painfully slow. ...

Converting a ant fileset to a multiple arg

I have some files : dir/foo.txt dir/bar.txt dir/foobar.txt During a apply task, I want to pass the list of file as arguments: <target name="atask"> <apply executable="${cmd}" parallel="false" verbose="true"> <arg value="-in"/> <srcfile/> <arg value="dir/foo.txt"/> <arg value="dir/bar.txt"/> ...

Integrating artifacts generated by an ant target into maven build

Hi everybody. I'm trying to build apache-solr webapp (not the whole project) using maven . Also want to reuse the build.xml ant file. The directory structure is: +build +client +contrib ..... +src +webapp/src --webapp code +dist --generated artifacts by the ant script --must be copied to the webapp WEB-INF/lib --some of th...

ant keeps recompiling

Hi, I expected ant to figure out when not to recompile the files which are up to date - unfortunately it keeps happening. My build target contains only: <javac srcdir="configuration" destdir="${build_env}"> <compilerarg value="-Xlint"/> </javac> In verbose ant output I get: conf: [javac] MissingConfigurationException.java added as ...