ant

How can I include a folder into the dist JAR as part of the build process using Netbeans?

I'm using Netbeans 6.9 , and I have looked into editing the build.xml file so that I can include directories and files in the jar file that results from building the project. So my question is How do I modify the build.xml file to put other folders in the jar? I have the following directory structure for my project ProjectDir/ /imag...

ERROR: unterminated quoted string at or near

While executing below shown trigger code using ANT I am getting the error org.postgresql.util.PSQLException: ERROR: unterminated quoted string at or near "' DECLARE timeout integer" Position: 57 I am able to sucessfully execute the below code through PGADmin (Provided by postgres) and command line utility "psql" and the trigger functi...

Problem: failed to create task or type testng. Cause: The name is undefined.

Hi @all, i´ve got a little problem to run a testng test. I invoke the test with a ant task which returns following error message: BUILD FAILED /**/build.xml:136: Problem: failed to create task or type testng Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: ...

Email notification on success/failed build using ant target.

Hi all, my current code(build.xml) enables me to send email on successful build, but when failed, nothing happens. The targets are called from a build.bat file through command similar to " ........ -DrepositoryAddress=%1 -DbuildResultUUID=%2 startPublish " (for all targets, in order startActivity->startPublish->mailer->startActivity). N...

Ant copy files.

Is there any command in ant to copy files from one folder structure to another without checking the last modified date/time overwriting files. Basically I want all extra files from folder A to folder B. That is: no files of folder B are replaced but extra files of folder A comes to folder B. I saw "ant copy" and "ant move" commands, but...

Run Ant task from Maven

Hi, I'm using Ant to build a custom jar library, which then I'm using in Maven as dependency. <dependency> <groupId>test-lib</groupId> <artifactId>test-lib</artifactId> <version>1.0.0system</scope> <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/test-lib-1.0.0.jar</systemPath> </dependency> So, basically what I d...

JarBundler ant task build (OS X) which does not start in mac's /Application folder - permission denied

Hi, I have used the jarbundler ant task to create an OSX (10.6.4) XXX.app for my java app. The problem is that it starts fine in any other directory except the /Applications directory. A look at file permissions shows nothing amiss. I can get it to work by two methods - both not suitable for real deployments: Build the .app with Jar...

Flex Ant compile project

hello, i want to use Ant task to compile flex project(with many libraries, modules) i use -dump-config build.xml compiler option in flash builder to extract build config after i create this Ant task(for start, i try to compile only one mxml-module) : <project name="My App Builderrrr" basedir="." default="main"> <property name="QA_P...

Toplink Validation with Ant fails due to SessionLoaderExceptions

Hi, I'm trying to integrate toplink's session exports with my build process (Apache Ant). I've been working from the example here: http://download.oracle.com/docs/cd/E14571_01/web.1111/b32441/mw.htm My Ant init target and the session validation target are shown below: <!-- ============ init Target ============== --> <target name="init...

testng from ant: specify -server -Xms ?

I'm running testng from ant using the task. I'd really like to add the -server option to the forked jvm as well as specifying the amount of heap space. Anyone know how to do it? I don't see anything here: http://testng.org/doc/ant.html Thanks, Ben ...

Cant get Junit to work with Spring in an ANT build

I am trying to get Spring MVC and Junit working with eachother and I am having trouble configuring the build.xml file. I am fairly new at using ANT and do not really understand all the tutorials. I put the junit.jar file in the lib direcotory, but still am getting the following message from my console. test: BUILD FAILED C:\Java\mmz\WE...

Eclipse Helios Ant Editor giving errors/warnings with Ant 1.8.1

I upgraded my OS Ant version to 1.8.1 (I use Gentoo Linux if that's important). Previously I was using the OS's install of Ant 1.7.1 from within Eclipse Helios by changing the Ant Runtime to point to my Ant installation. However after upgrading to Ant 1.8.1 I'm getting errors/warnings in the Ant editor when using 1.8 features. For exa...

Diffrence in Ant and Flex builder builds ?

In my application build on Flex 3.2 SDK I am calling a swf of Application built in Flex 4 SDK. and I am using Local connection to transfer data to and fro from that swf. When I am building my flex 3 application using Flex Buulder then everthing works fine. i.e. The swf generrated runs fine and also loads(using swf loader) the Flex 4 swf...

How do you handle multiple jar versions with lots of FOSS/COTS?

We have a Java product that uses a lot of FOSS/COTS software. A number of our "externals" use the same jar product, but a different version. For example, Ant 1.6.5 and Ant 1.7.0; or multiple versions of xerces. What's I'm concerned about is that the behavior of our application may change or worse, epic fail if we change the order in whic...

using recent Rhino in ant script

I'm trying to use a recent version of Rhino in an ant tag, but it seems to be using the version of Rhino that comes bundled with the JVM instead. I've tried adjusting the classpath to specify the Rhino script jar. Currently, I've tried the following: <project default="hello" name="hello-world" basedir="."> <target name="hello"> ...

Another simple problem with integrating Junit and Ant.

I can't get my Junit tests to run from my build.xml script. I feel like I have tried everything. Here is my build.xml script. <property file="build.properties"/> <property name="src.dir" value="src"/> <property name="build.dir" value="classes"/> <property name="web.dir" value="war"/> <property name="test.dir" value="test"/> <pa...

Ant is telling me that my Junit test is successful when it clearly isnt...

I have the following build.xml file <property file="build.properties"/> <property name="src.dir" value="src"/> <property name="build.dir" value="classes"/> <property name="web.dir" value="war"/> <property name="test.dir" value="test"/> <path id="build.classpath"> <fileset dir="lib"> <include name="*.jar"/> ...

Getting directory listing from SVN for use in ANT dropdown

Hi ANT experts :-) I've done some Googling on this but I can't seem to find anything along the lines of what I'm needing. I'm using ANTForms for the GUI on our deployment. Developers can choose the build from the dynamically populated dropdown, hit ok and away it goes. The way the dropdown is dynamically populated at the moment is by...

ant copy folder from zip file

I have a zip file with the following structure apache-tomcat-6.0.26.zip apache-tomcat-6.0.26/webapps/manager I want to copy just the manager folder into another dir I tried <copy todir="${tomcat.webapp.dir}/manager/" includeEmptyDirs="true"> <zipfileset src="${tomcat.zip.file}/" > <patternset> <include name="apache-tomcat-${to...

convert ant path without assigning to immutable property

Hi, I have a situation where I have a path with a number of path segments, and, for each path segment, I need to transform that path segment (presumably using a mapper), and then pass the original path segment AND the transformed path segment to a macro. The problem is that it's not clear to me how to transform the path, without assig...