ant

Building Flex with Nant?

I'm wondering if I'm barking up the wrong tree here. Is it possible to replace an Ant build script used for building Flex projects with a Nant build script? Specifically, it doesn't seem like there are any replacements for the Ant <mxmlc>, <macrodef> and <taskdef> tasks provided with Nant or Nant-contrib. I'm not too experienced in ei...

ANT ftp task QUOT command

Is there any way to get the Ant ftp task to send a QUOT command to the server? ...

Running a .cmd file from ANT

Hi, Is it possible to run a command (.cmd file) from Ant? Would I need to write Java code for this? Thanks ...

Can ANT start restart jobs on remote servers?

Is it possible to have ANT restart your java application on a remote server from a build script? If so any pointers to where that might be defined? I'm using ant now to push the new code over to the remote server but I still have to login to actually restart the app ...

Jetty ant task configuration

Two questions on configuring the jetty ant task to get jetty to listen on a different port, I'm doing this in the jetty.xml: <Call name="addConnector"> <Arg> <New class="org.mortbay.jetty.nio.SelectChannelConnector"> <Set name="port"><SystemProperty name="jetty.port" default="9080"/></Set> </New> </Arg> ...

Ant can't find my JAR file? Trying to do an sshexec task

I'm trying to use the sshexec task for ANT on my OSX box, when I try to run it I get the error listed below. I've downloaded the jsch jar file from: http://www.jcraft.com/jsch/index.html version jsch-0.1.43.jar I placed that file into /usr/share/ant/lib and still the error occurs. any ideas? thanks <target name="testme" depends=""> <...

How to build/test Scala without IDE dependence?

I'm well into learning Scala now and enjoying it very much; I hope to start future projects in it, rather than Java. What I'm enjoying less is the (relatively) poor IDE support. I've found both IDEA and Eclipse with the Scala Plugin (including nightly builds) to be a bit unreliable or difficult to use - I want something I can always de...

ant build issues

I have a build with multiple interlinked dependencies, Several projects have common dependencies that are currently compiled more than once. I think in Ant we can tell it not to re-build something if its already just done it as part of the same task, can anyone please advise ...

Hibernate hbm2ddl ant file paths

Hello, I am having troubles with generating database schema with Hibernate Tools. This is my ant file <project name="Schema generator for MySQL database" basedir="."> <description> This file is used for running Hibernate Tools Ant task. It is used to generate database schema based on hibernate configuration </description> ...

Ant string functions?

Does Ant have any way of doing string uppercase/lowercase/captialize/uncaptialize string manipulations? I looked at PropertyRegex but I don't believe the last two are possible with that. Is that anything else? ...

How to add automatically the imports in a Java project?

Hi, I generate (from a progam java) some Java classes but actually, I don't add the import in each class. I'd like to have a kind of parser that is able to see which import needs to be added in a class. Maybe, it's possible to reuse the fonctionnality of Eclipse because it's able to do that. However, I don't know where I can find that. ...

Ant: Reverse order of a Path collection

I have a Path collection in Ant, and I need to loop through it in reverse order. I use AntContrib's for loop, like this: <for param="foo"> <path refid="bar" /> <sequential> ... </sequantial> </for> I need to loop through the elements of bar in reverse order. I can't change how the Path got created in the first place. I could alw...

How to distribute junit tests to another machine

The build.xml we have today have many targets to compile and run unit tests. The build.xml refers to many property files with relative to itself. All this works fine when build and test is done on same machine. It is pretty simple to do build get all jars and any test input files to a build_home(another machine). How to run junit on...

Is there a way to specify the location of a local jsch.jar from within build.xml?

build.xml contains <scp> and <sshexec> tasks, so I provide jsch.jar and other libraries in the same directory together with build.xml. The following taskdef: <taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" classpath="WebContent/WEB-INF/lib/jsch-0.1.43.jar" /> throws an error A class n...

Using multiple cores/processors when compiling Java

I use a desktop with eight cores to build a Java application using Ant (through a javac target). Is there a way to speed up the compilation by using more than one thread or process? I know I can run several Ant tasks in parallel, but I don't think this can be applied to a single compilation target, or does it? ...

Avoid javadoc and sources downloading, when using Maven ant Tasks

I'm developing with Maven Ant Tasks support. When asking the repository to download desired libraries, it also downloads javadoc and source for each library. Is there a way to only download library jars? Actual build.xml: <artifact:dependencies settingsFile="${maven.settingsFile}" pomRefId="projectPom" filesetId=...

Using Ivy to download/install ant-contrib, bsf, beanshell, commons-logging

I am building a project using Ant and Ivy. The build.xml file depends on ant-contrib, bean scripting framework, beanshell, and commons-logging. Ant searches for libraries in several places, including ${user.home}/.ant/lib. Is there any way in the build.xml file to have these libraries automatically download and install in the ${user.ho...

problems with xmlpoke in nant script when reading a semicolon in a string

I have a nant script that is trying to change a URL value in my web.config but Nant keeps throwing this error: '=' is an unexpected token. The expected token is ';'. Line 1, position 80. I traced it down to the semicolon in the URL of the nant script. The reason I have a semicolon in the URL in the first place is because the web.conf...

Ant build won't run in Eclipse

I have an Ant build.xml which no longer runs when launched in Eclipse. I click on the External Tools Configuration, select the Ant Build I've been running, and click Run. Nothing happens -- no console window and the build doesn't appear to launch (the classes are not compile nor is the WAR file created). I recently added a plugin (Spr...

NetBeans Build Files Are Never Correct

My current team has standardized on NetBeans for all of our Java development, and we use the NetBeans-generated ANT files as our official build process. But the files are always wrong. Various members of the team are using different versions of NetBeans, and evidently, they all generate slightly different "build-impl.xml" files. So, up...