Hi,
I'm currently using ANT for building my Java project on a Windows XP machine.
In my build.xml file I've defined 3 task and I would like that,in case of fail,a default task be executed before closing the building and exiting (like a recovery procedure). I would like to know if it's possible.
thanks
...
is it possible to configure the ANT to pause the building process untill a file is created (with relative timeout)?
...
Hello I am completly new to eclipse, liferay and ANT. I tried to set up a development environment and just finished the ext-anvironment (I also executed ant clean start).
Now I've to execute "ant build-ext", following this tutorial: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Setting%20up%20the%20Extension%20Environment
...
Does anyone know of a way to use the mxmlc task of the Flex Ant tasks with a user-definable list of source path or library paths? The idea is that the user can define an arbitrary list of source paths and/or library (swc) paths into an Ant properties file and the build file takes these values and evaluates them for use in the mxmlc task....
Hey folks,
I'm using ant+ivy+nexus to build and publish my java OSGi projects (just good old jars if you're unfamiliar with OSGi). After the usual mind-melting period one has when engaging with new tech I've got a mostly functional system. But, I now have two dimensions of artifact variation: snapshot/release and main/test.
The main/t...
My ActionScript project builds with several compile-time specified constants. They are all Booleans, and only one of them is true at any given time. The rest must be false.
When I represented my build process in a bash script, I could loop through the names of all these constants, set one of them to be true and the rest to be false, the...
A guy at work needs to import an existing Java webapp into Eclipse. When he imports it from the Ant buildfile it creates a normal Java project instead of a web project. I think he also said it doesn't import the struts and faces? Something like that.
Is there a way to create a web project in Eclipse EE from an Ant buildfile? If so, ...
I want to use sonar for analysis but i can't get any data in localhost:9000
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4....
I'm on a project where we use NetBeans (6.8). We use several different web services, which we have added as web service references, and Netbeans auto-generates the Ant wsimport scripts for us. Very handy, with one drawback: The web service clients are recompiled every time ant is invoked. This slows down the build process considerably an...
I am currently working on a project with both java and C# codes within. Java takes the major role in this project. However, C# still takes a small part in it.
I am using Ant to build the projects, and would very much like to use it to build C# too. I have learned that it's possible to build C# under Ant with the help of Mono. Can anybod...
Using Ant, I want to copy a list of files from one project to another, where each project has the same directory structure. Is there a way to get the following to work?
<project name="WordSlug" default="pull" basedir=".">
<description>
WordSlug: pull needed files
</description>
<property name="prontiso_home" location="../...
I have a value in a properties file that I want to increment while the build is running. The goal is to copy a set of files and append a number to the front of each in order to maintain the order in which they were copied into the directory. I am using the <propertyfile> task as follows:
<propertyfile file="jsfiles.properties">
<...
I'd like to have Ant automatically include or import resources matching a particular pattern, but I'm really struggling with the syntax. Here's what I've tried:
<import>
<fileset dir="${basedir}" includes="*-graph.xml" />
</import>
However, I just get the error message
import requires file attribute or at least one nested resourc...
I don't want to force people into using a specific IDE for development, so our projects look basically like this:
SomeProject
src
lib
build.xml
No IDE specific files whatsoever.
However, many people prefer Eclipse and it is their valid complain that it is annoyingly difficult to set up an Eclipse project from an Ant build file if ...
I've a root directory and it contains many directories,in turn each sub-directory contains many directories and so on.For example if "A" is a root directory it contains sub-directories "A.a","A.b",so on... and each directory("A.a","A.b",etc) contains many directories.I want to copy the inner directories of "A.a" , "A.b" ,etc.. to other ...
I have an SQL script and want to apply it witn ANT task.
This script clears out schema, creates new tables and views.
The ANT defined task as follows:
<sql driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://host:3306/smth"
userid="smth"
password="smth"
expandProperties="false"
autocommit="true" ...
I'm writing an ANT task in Java.
In my build.xml I specify parameters, which should be read from my java class. Problems occur, when I use special characters, like german umlauts (Ö,Ä,Ü) in these parameters. In my java task they appear as ?-characters (using System.out.print from within eclipse).
All my files are encoded as UTF-8. and...
I would like to know about the debugging capabilities of ANT using eclipse. Basically
I have an ANT build script written by a colleague and I wanted to step
through each target to see what are the various tasks that are beings
called.
...
When specifing a dependancies using ant ivy, is there a way to exclude a particular package?
eg: I am putting a dependency to MyJar.jar
it has packages
com.test.one
com.test.one.first
com.test.one.second
com.test.two
etc.
i want to exclude the package com.text.one.first
if there is a way, how can i do that?
...
I am generating multiple XSD schemas into java objects, and i need to specify the root package. but the package attribute is not recognized by Ant... (don't know why...)
what should i do?
thanks!
...