I tried the example in the manual:
<delete includeemptydirs="true">
<fileset dir="${DIR}" includes="**/.svn" defaultexcludes="false"/>
</delete>
(where DIR is set to some directory) and it does nothing. How can this be made to work? I'm using ant 1.7.0.
FYI: I've tried lots of different combinations of nested elements, dirset ins...
I would like to make a very simple ant script that does 1 thing, which is to bulid a jar file. But when I try to use a very simple example, it fails due to dependancies on jars that my source depends on. So, How you you specify jars that there are jars that need to be in the class path when building an Ant target.
<project name="proje...
I'm trying to exec a VS build using incredibuild within my ANT script, but For some reason the exec task fails with the following error:
'Win32' is not recognized as an internal or external command
when I use the following code:
<arg line='buildconsole solution.sln /rebuild /cfg="Release|Win32"' />
I think the ant script may be trea...
I am trying to customize my build by using a configuration file with ant. What I intend to do is that use config file which has the following pattern:
file path, pattern to match, pattern to replace
I want it such that I just add things to the configuration file and the ant build script reads up these values and makes the required chang...
I'd like to write an Ant script that calls an external utility (Inkscape, in fact) that needs a full path. Right now I have
<exec executable="${inkscape.path}">
<arg value="--file=build_exe/splash.svg" />
<arg value="--export-png=build_exe/splash.png" />
<arg value="-C" />
</exec>
On Windows, Inkscape requires absolute pat...
As part of my build process I want to validate XML files against a Schema (XSD). I'm trying to use the schemavalidate task like this:
<schemavalidate noNamespaceFile="schemas/Model.xsd" file="Model.xml"/>
This yields the following error:
[...]
BUILD FAILED
build.xml:65: The following error occurred while executing this line:
build.x...
I have the following snippet in my Ant script. It executes just fine:
<exec executable="C:\test\foo\programName.exe" />
But then when I try to execute it by setting the directory, like so:
<exec executable="programName.exe"
dir="C:\test\foo\" />
I get:
Execute failed: java.io.IOException:
Cannot run program "programName.ex...
I ask out of ignorance. It's been over two years since I heard James Duncan Davidson say that Ant needed a successor, something more like a scripting language. It seemed that Maven 1/Jelly tried to do that, and Maven 2 has tried again in its way ("or the highway"), but without overwhelming success. Ant seems still to be the default an...
I'm running CrossCheck (browserless js unit testing) as part of an ant script. I'd like ant to report failure if the CrossCheck tests fail. Here's the relevant bit from the build.xml
<target name="test" depends="concat">
<java jar="src/test/lib/crosscheck.jar" fork="true">
<arg value="src/test/webapp/js/"/>
</java>
A...
I have a problem with a build where I have to resolve non-standard artifacts through Apache Ivy.
Problem:
I have dependencies on two artifacts (a.jar and a-lib.jar).
The two dependencies come only as part of a single installer (a_installer.jar).
The installer can be downloaded, the embedded artifacts themselves not.
It's possible to ...
Some Ant targets require an URL to be defined as property (like the ivy pattern) and since the file:// protocol is different on Windows (either file:/ or file:///) and Unix (file://) it makes the entire script less portable.
Is there a nice way to handle the file protocol without messing around with properties and Ant conditions?
...
Is it possible to attach an ant execution to a specific plugin/goal ?
( I know I'm losing the declarative aspect of maven if I do that..)
...
When executing 'mvn antrun:run' my tasks are not run.. I have an echo task, but no output is shown.. When running the phases that the tasks are bound to, they do get executed..
How do I specifically execute the tasks from the commandline?
...
I am trying to open a project with the Windows version of Eclipse, but after choosing to open the build.xml file the error message says:
Problem setting the classpath of the
project from the javac classpath:
C:\project1\${env.TOMCATEB_HOME}
I tried to set TOMCATEB_HOME environment variable in the Windows control panel, pointing...
I have a sample code that was built with Netbeans.
It has a build.xml file so I downloaded ant and try to run it.
I've got this error message:
...... nbproject\build-impl.xml:76: Platform is not correctly set up
For what I can see, this is fixed by "simply" downloading Netbeans and running the sample from there, but... I don't want...
Undo is not working for me in ant editor in eclipse.
When I press Ctrl-Z nothing happens.
Is it possible to enable undo somehow or is this a bug?
I am using Eclipse 3.4.2 (Ganymede) on Windows XP Professional.
...
I'm trying to run an XSLT transformation from an ant file.
I'm using a XSLT 2.0 stylesheet with a saxon 9 parser (supporting XSLT 2.0).
The problem is that it seems that ant is always calling an XSLT 1.0 parser.
Here's my ant file :
<xslt style="stylesheet.xslt"
basedir="core/"
extension=".xml"
destdir="core/"
classpa...
My PC is currently set up as Japanese for testing purposes. If my java project has a compilation error the message is reported in Japanese.
e.g.
Compiling 1 source file to [...directory...]
[...class...].java:172: シンボルを見つけられません。
I would prefer to see the errors in english.
Without using ant the fix for this is to use
javac -J-Du...
I know how to run a single target in ANT, but it also checks the "depends" attribute and runs those before the target. Is there a way to prevent this or a way to structure my ANT file so that I can do this more easily?
...
Is there an Ant equivalent to the 'profile' concept in Maven?
I'd like to be able to specify a different set of targets to build (out of one Ant file) depending on an argument. So in Maven I can specify a profile and then activate it like so: mvn groupId:artifactId:goal -Denvironment=test
So say my build.xml contains:
<target name="...