ant

Dynamically generate JAR files based on package name with ANT

My current build file has the following repetitive tasks: <jar jarfile="${build.lib}/${prefix}-foo.jar"> <fileset dir="${build.classes}"> <include name="com/a/c/foo/**"/> </fileset> </jar> <jar jarfile="${build.lib}/${prefix}-bar.jar"> <fileset dir="${build.classes}"> <include name="com/a/c/bar/**"/> </fileset...

Creating javadoc with tags using ant

Hi. I have commented my java source code with javadoc using tags like {@see myPackage.MyClass}. I have to generate javadoc with ant from terminal but I have got this warning: [javadoc] src/calendar/annotation/DataType.java:11: warning - Tag @see cannot be used in inline documentation. It can only be used in the following types of docu...

Building Flex charts with an ant task.

Using the Flex ant task to build our application results in the "Flex Data Visualization Trial" watermark being displayed in our charts. We have professional licenses for flex builder but do not know how to tell the ant task about these. Any help would be awesome. ...

Ant meta build

In ant, is there a way to combine multiple ant builds to deploy to a meta-project. For example I have workspace/project1/build.xml workspace/project2/build.xml and I want to make workspace/build.xml that will run specific targets in project1 and project2. ...

define ant property from environment with default value

Hello Friends, I would like my build script to act property for release and development environments. For this I would like to defined a property in ant, call it (for ex.) fileTargetName fileTargetName will get it's value from the environment variable RELEASE_VER if it's available, if it is not available it will get the default value ...

ant javac problem

compiling with javac ant task giving me errors that doesn't exists.. [javac] D:\mySrc\xx.java:1: illegal character: \65279 [javac] package com.x.y; and there is no problem with the class xx.java here is my compile target: <javac srcdir="${src}/src" destdir="${bin...

Java builder with proper dependency handling

Hello SO, After a recent juggling with our ant scripts I've started to wonder if something better is possible. I need a builder that will know to recompile all required .java files for me. For ex. for this structure public class A { ] public class B extends A {} public class C { B b; } For: Compile('C') Will know to compile A,...

Ant classpath Order

How do I set the classpath order in ant? Specifically, When I am trying to run my ant build, I need it to pick up a class in a jar (jaxws-api.jar) instead of the same class which is in the jre. I am currently setting the classpath to explicitly include those jars however it seems to still pick up the jre first. What I am looking for i...

URLConnection FileNotFoundException for non-standard HTTP port sources

I was trying to use the Apache Ant coretask Get to get a list of WSDLs generated by another team in our company. They have them hosted on a weblogic 9.x server on http://....com:7925/services/. I am able to get to the page through a browser, but the get task gives me a FileNotFoundException when trying to copy the page to a local file ...

How to pull out a substring in Ant

Is there a way to pull a substring from an Ant property and place that substring into it's own property? ...

Compiling GWT code with a large number of parameters -- char limit on CreateProcess?

Hello all, I am trying to run an ant build script that compiles GWT. This script includes a large number of libraries, each with a relatively long path. My GWT code only touches some of these libraries; however, it is convenient to include all of the libaries from the lib directory that I use for this and all of the other applications...

Ant is using wrong java version

I'm using ant 1.7.0 and installed java 1.6 which is in JAVA_HOME. I want to build a project using java 1.5 so I've exported JAVA_HOME to my java 1.5 directory. java -version says 1.5 When I run ant it uses java 1.6 Any help? Thanks ...

where the heck is org.hibernate.tool.ant.HibernateToolTask?

Where the heck do I get org.hibernate.tool.ant.HibernateToolTask ? I can't seem to find a .jar file that contains it. ...

stumbling blocks galore while trying to run org.hibernate.tool.ant.EnversHibernateToolTask

I'm trying to run org.hibernate.tool.ant.EnversHibernateToolTask as suggested in the rather terse guide to Envers (2nd line of table, Documentation has a link to a PDF). Here's my ant task tweaked so it successfully finds org.hibernate.tool.ant.EnversHibernateToolTask and org.hibernate.tool.ant.HibernateToolTask; now it can't find org.ap...

a Good Example of ant best practices

I have read lots of articles on Ant that explain all sorts of options, and I've read much of the documentation for Ant, but I don't really know the "right" way to do many things. Can anyone recommend a Good Example illustrating how to use Ant? Something that is not too complicated but also not too simple. I found this one by Doug Sparli...

Run some or all sections of an ant file

Is there a way to specify an ANT file to run only one/some/all of its sections? ...

ant's java task can't find a jar in the jre/lib/ext directory

I put "stax-utils.jar" in the extensions directory ([JAVA_HOME]/jre/lib/ext), but ant's java task can't find it, giving: java.lang.NoClassDefFoundError: javanet/staxutils/IndentingXMLStreamWriter Strangely, it works for compilation: ant's javac task can find it. The problem is only with running code, with ant's java task... If I us...

How do I configure JUnit Ant task to only produce output on failures?

I am configuring JUnit in Ant so that unit tests will be run on each build. I would like the output of failing tests to be printed in the Ant console output whenever they are run. I don't need to see any output from succeeding tests. Here is the relevant bit of my build.xml file: <junit> <classpath> <pathelement path="${bui...

Configure Eclipse to run my FlexUnit tests automatically

I'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work. I found an example with JUnit here : http://misko.hevery.com/2009/05/07/configure-your-ide-to-run-your-tests-automatically/ How would you do it? Is it possible to run FlexUnit tests without Flash Player? ...

compile j2me using ant

i am created a j2me project with this article(http://www.securitypronews.com/it/applicationdevelopment/spn-19-20030611J2MEUsingAntwithJ2ME.html) and now i have problem in add resources(same as images) and librabris (same as jar as zip files) . i am copied resources in "res" folder that is points in the this article but when i extract jar...