ant

What Toolchains Support Passing in a Nodeset to an XSLT Transformation as a Parameter?

This is a followup to an answer on a previous question I had about XSLT. To recap, I didn't realize that without EXSLT, XSLT wouldn't let you dynamically create an xpath expression with string values. One of the suggested workarounds was to query the input document's DOM before you execute the transform, and pass the node-set into...

copying stored procedures each into its own file using ant

I want to be able to have an ant task which would connect to a remote oracle instance and copy the stored procedures each into its own file. I know I can have an ant sql task which will do SELECT object_type, object_name, dbms_metadata.get_ddl(object_type, object_name) object_ddl FROM user_objects WHERE OBJECT_TYPE in ('INDEX', 'TRI...

How to report TODOs etc. with CruiseConrol?

In one project the use of //TODO, //XXX and //FIXME tags is very common. The problem is that nobody has an overview of all TODO lines. Only Eclipse shows all tasks in one view. I would like to display all TODOs with its filename in our daily build report created by CruiseControl. How can this achieved easily? ...

Why does ANT tell me that JAVA_HOME is wrong when it is not?

I get the error: C:\dev\ws\springapp\build.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre6" But I have clearly set my JAVA_HOME to be C:\Program Files\Java\jdk1.6.0_14 Where is ANT getting this va...

ant build and deploy question

I have a question about something I encountered today at work. I have two projects that are built with ant build script. Lets call them projectA and projectB. ProjectA builds projectA.jar, and projectB builds projectB.war, and projectB.ear. ProjectB.war includes projectA.jar in the web-inf lib directory. In projectB there is ...

Ant - Java command - IllegalAccessException

I need to run java class using ant. But when i run a class file, it throws IllegalAccessException. this is my ant code: <target name="test"> <java classname="A" classpath="."> </java> </target> I got this exception when i run this target script. [java] java.lang.IllegalAccessException: Class org.apache.tools.ant.taskdefs.Ex...

Ant - copy only file not directory

I need to copy all files in a folder except directory in that folder using Ant script. Im using below script to do that. <copy todir="targetsir"> <fileset dir="srcdir"> <include name="**/*.*"/> </fileset> </copy> But it copies all files and directory in that folder. how to restrict/filter directory in that folder? thanks, ...

Flash AS3 with HG version number?

I'm using ant, hg, and the linux Flash as3 libraries to compile. I would like to include some sort of version info automatically, for debugging purposes. ...

Scala build tool and test framework that play nice together?

Here are my goals: 1. Run my tests in Eclipse and see the pretty green or red bar. 2. Run my tests on the command line with a build tool. I'm leaning towards specs and sbt, but I can't get them to work. I have no desire to pick up Maven. My question is which one of the follow sets works best? sbt and scalatest sbt and specs ant and sc...

Spurious ^G (BELL) characters in JUnit log making CruiseControl barf

I have a CruiseControl build server running a large number of projects. On one of them I have recently noticed that only one of the two test suites are present in the build report (but failures in the other one still cause the build to fail). Further investigation showed that the XML output file of JUnit generated by ant's xmlformatter ...

what is this ANT build ?

I am new to jav/Eclipse. I installed eclipse and working on a JAVA 1.4 file using it as an IDE. I made my code changes and saved it and wanted to Run (cntr F11) or debub (F11) every time i am getting select what to run Ant Build Ant Build.. what is this Ant Build ? How to rectify /connect/ Ant Build? Ant ...

Ivy failed to resolve dependency : What to check, what to do ?

Hi everyone, I'm using Ivy to resolve dependency in my very small project. It's the first time I'm doing that and it's more to learn as my project is very small. I had a problem 5 minutes ago, when trying to download log4j. My configuration is very basic, I have an ant task : <target name="resolve" description="--> retrieve dependenc...

Problems with setting the classpath in ant

Hi, I'm having problems getting my Java program to run (it uses some third party .jar s). I can compile it fine but when I call my run target in ant it says it can't find the class that I told it run in the classpath. Here's what my build.xml looks like: <project basedir="." default="build"> <property name="build" value="build" /> <prop...

Docbook, Images, ANT

Hello! :-) I'm trying to convert a DocBook XML - File via XSLT to HTML. The XML - File contains an image and this is were i get the following error. build-html: [xslt] Transforming into C:\dev\DocBook\DocBookmitXML\output [xslt] Processing C:\dev\DocBook\DocBookmitXML\src\BurndownChart.jpg to C:\dev\DocBook\DocBookmitXML\outp...

Maven Antrun and Dependencies

(See edits below.) The reason I can't just use the classpath, is because I need to manage some non-java libraries, and I'm compiling a non-java project. I'm trying to use maven dependencies in an antrun call, following the documentation on the maven site: http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html At...

Apache Ivy multiple resolvers

Trying to get IvyRoundUp packager repository and cukes maven repository to work with chain resolvers in apache ivy using the following <settings defaultResolver="roundup"/> <resolvers> <chain name="resolvers"> <url name="cukes" m2compatible="true"> <artifact pattern="http://cukes.info/maven...

ant - not recognized as an internal

Hi all, I have installed ant(apache-ant-1.7.0). But when i run the ant command in dos command prompt, it says ‘ant’ is not recognized as an internal or external command, operable program or batch file. where i'm going wrong. ...

Is it possible to exclude some targets from Ant targets while executing the script?

In ant if want to execute more than one target, we can do it like this, ant target1 target2 target3 Other way could be, create target4 like <target name="target4" depends="target1,target2,target3" /> but the problem is, one of my target definition is: <target name="buildApp" depends="init,copy-all-requiredfiles-local,wait-to-merge...

Ant - using vssadd to add multiple file

Hi, I'm trying to use vssadd task to add a tree of source files to a recent created project on VSS. But it happens to be adding only the folder tree, all files missing. <vsscp vsspath="$/DEV/APL_${version}" ssdir="${vssapl}" serverPath="${vsssvr}"/> The vssadd task displays the name of the folders it's creating: ......

How to display progress of Ant build?

When running an Ant script with the -logfile logFile option, is it possible to still print out some very basic progress information? I would be delighted even with something as basic as printing '.' to standard out for every new target hit. I've found the splash ant task which seems to be along the right lines, only I'm looking for some...