ant

What needs to be in a .war file to deploy a Flex application?

I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand what the .war file has to contain in order to deploy and run. I've found through tria...

Can an Ant build script to reference the Eclipse plugin folder without full path details?

I could use the following: <fileset dir="C:\Program Files\eclipse\plugins\myplugin"> <include name="extraStuff.jar" /> </fileset> But that breaks the build file on someone else's PC who did not install eclipse into the default folder. In my case I can't use basedir without hard folder references. Is there a 'shortcut' to the ecl...

How do I separate some properties from the main MSBuild file

Ages ago when I was a java developer I could make separate ant scripts that I would call from my main ant script. I would put properties unique to each environment where my main script would run. I want to do the same thing in MSBuild but I can't find out how to chain MSBuild scripts together. ...

Building with ant : dynamic build options?

With multiple developers working on the same Tomcat application, I'd like to tell the application to install to a different path, based on the current user and revision control client/view. So, if Bob is building, the app should be installed in Bob's test environment, maybe /bob1 or something like that. Bob might have several revision ...

Webservice with castor Serialzer

Does anyone know how to generate an axis webservice with castor serializer / deserializer? Current situation: axis webservice has to be build from wsdl with xsd and castor serialization build process has to be automated with an ant script the standard way is to create webservice sources with wsdl2java and then replace the pojos with t...

Copy an Ant argument list into a property

In Ant is there any way to do something like this: <arguments id="arg-list"> <arg value="arg1" /> <arg value="arg2" /> </arguments> <property name="prop1" refid="arg-list" /> I'm trying to write a macro for psexec and I'm looking for a nice way to pass in the argument list. I know that you can do something similar with class...

Can I find and import files into an ant-buildscript at runtime?

I want to create an ant-buildscript, that includes some files as a sort of plugin. So if I want to activate a feature in a project - say pmd-checking - I copy a pmd.xml in a directory and the build.xml get on the start the idea, that pmd.xml exists and imports it, so that new targets can be available to the build. But the import-task c...

Groovy in Ant build.xml (with Java classes)

I have to include Groovy classes into existing Java apps , and include Groovy into Ant build.xml file. What is the best way to configure Ant build.xml for it? Thanks Tatyana I was suggested to update my question, but I am not exactly sure what it means. Tatyana Urs Reupke wrote: Please update your question to help future answers bec...

Eclipse 3.4 ant task hangs

When I launch ant script from Eclipse 3.4.x it print output to console until certain stage. After that it often hangs (wait forever). Last lines that I see at the screen (console) - partial output from my obfuscator. Under Eclipse 3.3.2 everything works fine (the same project, workspace, settings, JVM etc.). Does anybody have the same ...

EMMA won't cover one of my projects

Hi, I have an issue with EMMA where it is correctly covering all my various Java projects except one. I am puzzled as to why this occurs as the ANT script appears to be correct. The following expected output is given: [echo] c:\cc_local_home\emmadata\ProjectName [instr] processing instrumentation path ... [instr] instrumentation path ...

How to (ignore|keep going) a gant-build in case of compile errors?

Does anybody know how I can run a gant build which ignores build errors? Something like ant and make are doing with the '-k' or '-keep-going' switch. Thx ...

How to move only the current file with Eclipse and/or Ant?

I am working on a small team of web application developers. We edit JSPs in Eclipse on our own machines and then move them over to a shared application server to test the changes. I have an Ant script that will take ALL the JSPs on my machine and move them over to the application server, but will only overwrite JSPs if the ones on my m...

Ant -> Nant -> Visual Studio 2005 Build

I am working on a big C++ project. It is building using single Ant script which makes possible to compile the same source targeting more than one platform and compiler. But, I have to work only for Windows platform and Visual Studio 2005 C++ compiler. It would be really nice if I could write code and compile in Visual Studio, instead of...

Using Ant with FlexBuilder

Hey guys, I need to run some precompile steps before I build my project using FlexBuilder. I assume I will need to use ANT to do this. Any tutorials that anyone knows of that can help me along my path? I know next to nothing about ANT and Eclipse (FlexBuilder). Thanks! ...

Problem running a Jar file

I've compiled a java project into a Jar file, and am having issues running it. When I run: java -jar myJar.jar I get the following error Could not find the main class: myClass The class file is not in the root directory of the jar so I've tried changing the path of the main class to match the path to the class file and I get the s...

How is FlexBuilder compiling my app?

I'd like to see the command-line arguments that FlexBuilder is using to compile my application. This is so that I can build them into the ANT script I'm working on. Is there any way to view the command line compilation step? The reason I'm asking for this is that when I compile my app using Ant/Flex SDK vs. FlexBuilder my app behaves di...

Setting a Coverage Threshold using Emma and Ant

I'm using Emma in my ant build to perform coverage reporting. For those that have used Emma, is there a way to get the build to fail if the line coverage (or any type of coverage stat) does not meet a particular threshold? e.g. if the line coverage is not 100% ...

How to use size of file inside Ant target

I'm currently in the process of replacing my homebrewn build script by an Ant build script. Now I need to replace various tokens by the size of a specific file. I know how to get the size in bytes via the <length> task and store in in a property, but I need the size in kilobytes and megabytes too. How can I access the file size in othe...

Looking for example xml to generate a Findbugs report using ANT to analyse multiple jars?

How do I setup an Ant task to generate a Findbugs report when the source folder has many jars in it? I'm looking for a worked example of the ant task required to output the fancy HTML from a folder containing multiple jars ...

Maven or Ivy for Managing Dependencies from Ant?

Hi, I was wondering about the best way to manage projects dependencies from ant. What are the pros and cons of the Maven Ant task and of Ivy? ...