ant

How to not increment the build.number in Ant?

I have many targets in my build.xml for Ant. Generally I am running two via a shell script, one to construct the application and one for cleaning up. The shell script checks the exit status of the construction to see if it should clean up or leave the clutter behind so I can determine what went wrong and fix it. So went all is going w...

Generating jax-ws client using eclipse plugin

I'm using eclipse (eclipse-jee-galileo-win32). I generated ws clients by using eclipse build in plug-in (right click on wsdl -> web services -> generate client) and they working fine. For a automatic builds I need ant scripts that will generate such client's code automatically. I tried using wsimport (of glassfish and jdk6), but I've got...

NullPointerException in com.sun.tools.jxc.SchemaGenTask

Given this ant script: <?xml version="1.0" encoding="UTF-8"?> <project name="projectname" default="generate-schema" basedir="."> <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask"> <classpath> <fileset dir="../BuildJars/lib" includes="*.jar" /> </classpath> </taskdef> <target ...

Getting ant to log to file as well as screen/terminal

I've searched these forums as well as the internet and could not find a clear answer. I'm executing an ant task. I would like the output to get put to the screen as well as a log file ... how can I do this? ...

Setting up new project in Eclipse

So I set up a new project into Eclipse and created a build.xml that creates a war file. The problem that I am having is that the only files that are included in the war are what's in the WEB-INF. How do you include my web folder into the war? Project src web WEB-INF ...

How to assemble a multi-project ant build system

At my new gig, they use Ant and cannot be persuaded to move to Maven. I've looked everywhere for a decent example of how a multi-project ant build system should be assembled. The apache site falls short. I'm looking specifically for best practices to: Automatically build local projects that are dependencies of a project Share artifac...

Building an AIR application with ANT

I keep getting "Java Heap Space" error. What is the JVM Memory requirements to build AIR apps with ant? ...

Ant and Flex-4 problem, MXMLC.jar not found !

Hi all, I updated a flex application from flex 3.5 to flex 4.0. We are using ant for compiling our project and we have a mxmlc task to handle the flex part. After the upgrade, our mxmlc task broke. Here is the task definition: <taskdef resource="flexTasks.tasks"> <classpath> <pathelement path="${FLEX_HOME}/ant/lib...

Ant build classpath jar generates "error in opening zip file"

Hey folks, I have a project built in eclipse with a dependencies on 3rd party jars. I'm trying to generate a suitable build file for ant - using eclipses built-in export->ant buildfile feature as a starting block. When I run the build target I get the following error: [javac] error: error reading /base/repo/FabTrace/lib/apache/geronim...

ojspc always returns 0 on errors

In my Ant build.xml file, I am trying to compile JSPs using ojspc. The files are being compiled, however, the build process is still running to completion when the JSP compilation has errors. This is part of my build.xml: <java fork="true" jar="${env.ORACLE_HOME}\j2ee\home\ojspc.jar" resultproperty="result"> <jvmarg value="-Djava.co...

Hudson CI project doesn't run NetBeans JUnit tests of dependent projects

I have a set of NetBeans java projects with dependencies between them. I added the project at the top of the dependency tree to Hudson for continuous integration. Everything works fine, except that the unit tests of dependent projects don't get run by Hudson. This is because the ant scripts that NetBeans creates has dependent projects se...

Maven deploy:deploy-file not found due to version/timestamp appended to jar

I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please. I have 2 projects; 1) Ant based and 2) the other Maven based that consumes the jars of the other project via Archiva. I've added a target to the Ant project to deploy snapshots on every successful build during our iteration. The problem is the...

Ant: foreach loop

I'm trying to use the foreach loop in an Ant script but I get the message: Problem: failed to create task or type foreach Cause: The name is undefined. I don't understand why this doesn't work. It is not a 3rd party library. It is a standard task that would be part of the latest version of Ant (1.8). <target name="parse"> <echo messa...

How to get boolean results of regex match in Ant?

Is there a way in Ant to just use regex to search through a file for a line and get a boolean result if there is a match or not? I want to look through a log file for an error line. If the error line exists, I want to perform some additional steps. In the worst case, I could use the Script tag but would like to avoid it if Ant has a w...

How to specify lib folder for JARs when using Android-generated ant build file ?

Im using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff. When I run: ant -lib lib debug the project builds just fine, but this should really be inside the build f...

Problem on creating font using a custom ant task, which extends LWUIT's FontTask.

Hi. I am new to LWUIT and j2me, and I am building a j2me application for showing Japanese text vertically. The phonetic symbol part of the text should be shown in relatively small font size (about half the size of the text), small Kanas need to be shown as normal ones, and some 'vertical only' characters need to be put into the Private ...

Ant error when trying to build file, can't find tools.jar ??

When I run ant it says: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: build.xml does not exist! Build failed What package can I use to download the file required > C:\Program Files\Java\jre6\lib\tools.jar I just downloaded this one: jre-6u19-windows-i586-s.exe but unfortu...

class weblogic.management.WeblogicMBean not found

Hi all I meet this problem when I try to run Junit test case in fork mode (starting each test in a separate JVM) using Build ant file. [junit] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/management/WebLogicMBean [junit] at java.lang.ClassLoader.defineClass1(Native Method) [junit] at java.lang.ClassLoader.defineC...

Compile classfile issue in Spring 3

I have used spring framework 3 for my application. Everything is ok while developed in Netbeans But i need a custom build and done for the same The build created without any issue, but i got the following error The error occurred while calling the following method @RequestMapping(value = "/security/login", method = RequestMethod....

Is there a SVN Maven?

Is there something for maven like http://subclipse.tigris.org/svnant.html ? Something to automate your project updates without having to click update? ...