Re: svn commit: r617356 - /ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java

2008-02-01 Thread Stefan Bodewig
[EMAIL PROTECTED] writes:

> +/**
> + * Asserts that a condition is true.
> + * @param condition which condition to check
> + * @param errormessage  errormessage to throw if a condition failed
> + */
> +public void assertConfig(boolean condition, String errormessage) {
> +if (condition) {
> +errors.add(errormessage);
> +}
> +}

You mean if (!condition), don't you?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: svn commit: r617356 - /ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java

2008-02-01 Thread Jan.Materne
Thanks for pointing out the difference between code and doc.
Some confusion while translating from german to english ;)

Jan
 

-Ursprüngliche Nachricht-
Von: Stefan Bodewig [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 1. Februar 2008 11:19
An: dev@ant.apache.org
Betreff: Re: svn commit: r617356 - 
/ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java

[EMAIL PROTECTED] writes:

> +/**
> + * Asserts that a condition is true.
> + * @param condition which condition to check
> + * @param errormessage  errormessage to throw if a condition failed
> + */
> +public void assertConfig(boolean condition, String errormessage) {
> +if (condition) {
> +errors.add(errormessage);
> +}
> +}

You mean if (!condition), don't you?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r617460 - /ant/core/trunk/docs/manual/CoreTypes/resources.html

2008-02-01 Thread Matt Benson
Thanks!  I've made a couple of tweaks and moved the
restrict example to restrict from sort.  ;)

-Matt

--- [EMAIL PROTECTED] wrote:

> Author: jhm
> Date: Fri Feb  1 02:47:14 2008
> New Revision: 617460
> 
> URL:
> http://svn.apache.org/viewvc?rev=617460&view=rev
> Log:
> Examples for 
> *   
> * resource selectors
> 
> Modified:
>
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> 
> Modified:
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> URL:
>
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/resources.html?rev=617460&r1=617459&r2=617460&view=diff
>
==
> ---
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> (original)
> +++
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> Fri Feb  1 02:47:14 2008
> @@ -792,7 +792,38 @@
>   Because the resource comparators used
> (
>   and ) are in an
> internal antlib
>   their namespace must be set explicitly.
> -
> +  
> +
> +  
> +
rsel="antlib:org.apache.tools.ant.types.resources.selectors">
> + name="copyFromPath">
> + name="todir"/>
> + name="refid"/>
> + name="nested-resource-selectors"
> optional="yes"
> implicit="true"/>
> +
> + taskname="copyFromPath"/>
> + taskname="copyFromPath">
> +
> + refid="@{refid}"/>
> +
> +   
> 
> +
> +
> +
> +
> +
> +
> + refid="classpath"
> todir="todir">
> + name="log4j.properties"/>
> + name="default.properties"/>
> +
> + 
> +  
> +  Creates the todir directory and
> copies (if present) the
> + files log4j.properties and
> default.properties
> + from the Classpath (already used while
> compiling).
> +  
> +
>  
>  
>  
> @@ -920,6 +951,29 @@
>No, default
> true
>  
>
> +  
> +  Example
> +  
> +
> +
> +
> +
> +
> +
> +
> +
> + refid="A"/> refid="B"/>
> + id="intersect"> refid="A"/> refid="B"/>
> + id="difference"> refid="A"/> refid="B"/>
> +
> +  A: ${toString:A}= a;b
> +  B: ${toString:B}= b;c
> +
> +  union : ${toString:union}   = a;b;c
> +  intersect : ${toString:intersect}   = b
> +  difference: ${toString:difference}  = a;c
> +
> +  
>  
>  
>  
> 
> 
> 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EasyAnt] first proof of concept

2008-02-01 Thread Xavier Hanin
Hi,

Some time ago I've launched a discussion about a new Ant+Ivy based build
system, that I called EasyAnt. Based on the discussion we've had so far,
I've developed a small proof of concept, which is available here:
http://people.apache.org/~xavier/easyant-POC-0.1.zip

If you have some time, please have a look, there's a README file at the root
of the main directory in the zip, explaining how to try it, and how it
works.

I'd appreciate to get some feedback on the concepts developed, and
especially those requiring changes in Ant: mainly use and extends mode for
Import and the phase concept (explained in the README and more extensively
in the todo.txt).

Xavier
PS: don't pay too much attention to the code itself, it's rather ugly and
undocumented, but it's just a POC :-)
-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/