ant

Does the ADT plugin automatically create an ant build file?

I created an Android project a few months ago and now have to automate the build process with Hudson. The Android dev guide mentions a build.xml file that gets created when you generate a project (http://developer.android.com/guide/developing/other-ide.html) but I dont see one in my project. Will I have to create this by hand or can I ru...

How to build an android app with external libraries using ant?

I have an existing project that builds fine using my IDE. I'd like to use the "android update" command to generate an ant buildfile for this project. The buildfile is generated fine, but the build fails because it's not building with some jarfiles I have in my libs directory. I'd like to figure out the proper way to tell ant to build ...

How to build an android test app with a dependency on another app using ant?

I have a module called MyApp, and another module called MyAppTests which has a dependency on MyApp. Both modules produce APKs, one named MyApp.apk and the other MyAppTests.apk. I normally build these in IntelliJ or Eclipse, but I'd like to create an ant buildfile for them for the purpose of continuous integration. I used "android upda...

Flex ANT tasks can't find my assets

I'm attempting to compile my Flex project with an ANT build script. One of my MXML components references an external XML data file, like this: <mx:XML id="treeData" source="assets/data/help.xml" /> When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error: E...

Can't build and run an android test project created using "ant create test-project" when tested project has jars in libs directory

I have a module that builds an app called MyApp. I have another that builds some testcases for that app, called MyAppTests. They both build their own APKs, and they both work fine from within my IDE. I'd like to build them using ant so that I can take advantage of continuous integration. Building the app module works fine. I'm havin...

Passing a parameter to ant from CruiseControl Dashboard

I am working on incorporating CruiseControl into my teams build process. What we need is a way to pass a Clearcase view name into the ant script so it knows what view to use when building. Sometimes a developer needs to create a build that is used for their testing only and not on the main integration branch. Is there a way to do this...

Installer for java application

Hi, I would like to know what packages are out there that can be used to create installers to distribute applications. The target application is written in Java. The installer must be able to: be compiled via an ant script be compiled Linux (and Windows) run on Windows and Linux detect / handle previously installed versions of the ap...

how to use ant to copy a folder?

Hi, I'm trying to copy a directory with ant task. I am a newbie in ant; my current solution is: <copy todir="${release_dir}/lib"> <fileset dir="${libpath}" /> </copy> I'm wondering if there is a better and shorter way to accomplish the same thing? Thanks in advance ...

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: := . ( % ;

Can not run following SQL from ant's sql task: BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table => 'MY_QUEUE', queue_payload_type => 'sys.aq$_jms_map_message'); DBMS_AQADM.CREATE_QUEUE( queue_name => 'MY_QUEUE', queue_table => 'MY_QUEUE'); DBMS_AQADM.START_QUEUE ( queue_name => 'MY_QUEUE'); END; / There ar...

Delete generated files when original is modified with Apache Ant

I want to delete the generated files (".tmp" and ".bak") in the build directory when the source file (".xml)" is modified with Apache Ant. All files have the same name, but different extentions. I'm not able to create the fileset to do this. ...

How to get full stack traces logged when a JUnit test running in ant fails?

When a JUnit test throws a runtime exception while running in Eclipse, you can see the entire stack trace. Our build server uses ant and runs JUnit, but the printout on failure only provides the exception's message, not the entire "printStackTrace". Is there a convenient way to get this functionality? ...

How can I get JUnit test (driven from Ant script) to dump the stack of exception that causes failure?

We run JUnit test from Ant script, as follows. When the test failed, I expect it to output the stack dump of the exception that casuses the failure, but it doesn't. Is there any trick to get it dumped? <target description="Run JUnit tests" name="run-junit" depends="build-junit"> <copy file="./AegisLicense.txt" tofile="test/junit/c...

cpptask ordering of static libraries in gcc command line

How do I force cpptask to move the static libraries to the end on arg list issued to the compiler? Here is the clause I am using <cpptasks:cc description="appname" subsystem="console" objdir="obj" outfile="dist/app_test"> <compiler refid="testsslcc" /> <linkerarg value="-L${libdir}" /> <l...

How to macro-ify ant targets?

I want to be able to have different targets doing nearly the same thing, as so: ant build <- this would be a normal (default) build ant safari <- building the safari target. The targets look like this: <target name="build" depends="javac" description="GWT compile to JavaScript"> <java failonerror="true" fork="true" classname="co...

getPackage() returning null when my JUnit test is run from Ant

I'm having problems running a JUnit test. It runs fine in Eclipse, but now I'm trying to run it from the command-line using Ant. The problem is that the following code is returning null: getClass().getPackage(). I'm running my JUnit test like so: <junit fork="no" printsummary="yes" haltonfailure="no"> <classpath refid="j...

Quieting individual ant tasks

Is there a way to get individual ant tasks to run quietly? I know of the -q switch, but that applies globally. ...

How does tomcat make use of build.properties and build.xml?

I'm following a tutorial to set up a skeleton application for tomcat : http://maestric.com/doc/java/spring/setup#build_files But I don't understand how build.properties and build.xml actually works. I'm using windows XP and copied the following even though the required directory doesn't exist: appserver.home=/usr/share/tomcat5.5 apps...

Ant replace properties

Hi. I've replaced properties file for Spring ApplicationContext using Ant, properties replaced correctly, and immidiately after Ant taskCalled, only after that first ApplicationContext call will be, but application context gets old property values ...

what can Phing do that Ant can't?

I'm doing PHP development and I'm thinking of using one of these. I have both PHP and Java installed on my machine. In theory I could use any of the two. What are the compelling arguments to pick Phing over Ant? ...

Java EE deployment error

While deploying a particular project I'm getting deployment error like "module has not been deployed"... but I'm able to deploy other projects... the error shown is as follows In-place deployment at F:\onlineexam_1\build\web deploy?path=F:\onlineexam_1\build\web&name=onlineexam_1&force=true failed on GlassFish v3 Domain F:\onlineexam_1\...