Duplicate project name with antcall and import

2005-11-10 Thread Telang, Nandan
Hi I have an ANT script that looks something like this: . I get a "Duplicated project name in import" that says the project name of the project in bar is redefined in another file that bar imports(

Re: Logging from custom tasks

2005-11-10 Thread Jeffrey E Care
I can't remember off the top of my head about -q, but the default level is INFO which would give you ERROR, WARNING & INFO. The -v flag gives you that plus VERBOSE, while -d gives you everything. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (

Re: Logging from custom tasks

2005-11-10 Thread Dominique Devienne
normal mode ==> shows INFO and above (ERR and WARN) -v adds VERBOSE -d adds DEBUG -q logs only ERR and WARN (I think. I used it seldomly) one "best practice" is to be silent if the task does nothing, when everything's up to date for example. When it does something, log at the default level (INFO

Logging from custom tasks

2005-11-10 Thread Cena, Bernard \(IT\)
Are there any "best practices" for which logging levels to use from custom ant tasks ? The 5 levels: MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE and MSG_DEBUG are self explanatory, but I'm not certain which levels appear when ? I'm asking which levels are visible depending on options supplied to ant (

Re: Example Ant 1.6 build files for project with multiple WAR and JAR modules?

2005-11-10 Thread Steve Loughran
Lawrie Gallardo wrote: Steve Loughran wrote: As and when I complete the second edition of Java development with Ant (yes, I am behind schedule), there will be some sample stuff that does it more simply. I havent written the target to zip up all the source tree to provide an example, but I

RE: JUnit task not working

2005-11-10 Thread Jon Skeet
> When i run the ant junit task i get the following error : Have you looked at the FAQ entry about Junit? See http://ant.apache.org/faq.html#delegating-classloader Have you placed your junit jar file (not the Ant one, Junit itself) in the ant\lib directory? Jon Clearswift monitors, controls a

Re: Creating an ant task from xml fragment

2005-11-10 Thread Steve Loughran
Ashley Williams wrote: Hi, I have a fragment of ant xml and would like to create a task or target from it in my java code. For example here is the xml text:

JUnit task not working

2005-11-10 Thread Andrei
When i run the ant junit task i get the following error : C:\myproject\mytest>ant mytests Buildfile: build.xml mytests: BUILD FAILED C:\myproject\mytest\build.xml:207: Could not create task or type of type: junit. Ant could not find the task or a class this task relies upon. This is common a