AW: XML version of WHATSNEW

2006-09-21 Thread Jan.Materne
>>> I could make up something ad-hoc myself[1], but wanted to ask
whether 
>>> anybody around here knows an existing DTD/Schema that would lend 
>>> itself to changelog style documents.  Somebody must have created 
>>> something like this before.
>> 
>> 
>> I've toyed with it in sanbdox/antlibs/gendoc. There's a 
>> whatsnew.xml/.xsl. --DD
>
>
>I would suggest just using an ATOM document for things like this.


Or we use the changes style from Maven:


  
Args4J changes
Kohsuke Kawaguchi
Jan Materne
  
  

  Fixed a packaging error where APT
service entry was in args4j.jar


  add a changes document
(this)
  add a starter class
  a short manual
  args4j is running on Gump
  allow to specify the
console width for wrapping the usage message



  initial release

  


http://maven.apache.org/plugins/maven-changes-plugin/usage.html


Jan

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



svn commit: r448811 - in /ant/antlibs/dotnet/trunk/src/tests/antunit: old-core-test.xml old-core.xml

2006-09-21 Thread bodewig
Author: bodewig
Date: Thu Sep 21 21:35:49 2006
New Revision: 448811

URL: http://svn.apache.org/viewvc?view=rev&rev=448811
Log:
rename to match naming convention of AntUnit tests

Added:
ant/antlibs/dotnet/trunk/src/tests/antunit/old-core-test.xml
  - copied unchanged from r447130, 
ant/antlibs/dotnet/trunk/src/tests/antunit/old-core.xml
Removed:
ant/antlibs/dotnet/trunk/src/tests/antunit/old-core.xml


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



Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-21 Thread Paul King

Kevin Jackson wrote:

Kevin, anything in particular you don't like about Groovy?


Hi Paul,

Nice to 'chat' to you :)

My major problem with groovy was it's instability - every time I
looked at it previously, something was mentioned as still being
unstable etc.


Yes, it has had an interesting history with a few road bumps.



def scanner = ant.fileScanner {
   fileset(dir: properties['src.dir']) {
include(name: '**/*.xml')
   }
}


ok, so we have a chance to make a 'new' language and we can already
see what 'works' or doesn't work - we are making it for the JVM and we
want this to be adopted by non-Java programmers as well as Java people
- why carry all those braces?  Perl had them for no particular reason,
and practically every new dynamic language has dropped them (for good
reason) - so why did groovy choose to keep them?  I'd actually be
interested to know if it's simply because Java programmers are used to
braces?


Well, I wasn't involved at the time when many of these things were
set in concrete. One of the goals though was to be a scripting language
friendly to Java developers.


also def is being used here to define a new procedure or is it
assigning a block of code to a varaible?


def is being used to declare an untyped variable. You can either have
your compile-time checked typing as in Java or leave out the type and
replace it with def to indicate dynamic typing.
(It can also be used to define methods but that is not what is being
used here. The perhaps unusual feature being used here is builder
capability which lets you define your own DSLs. In this case, each
set of braces indicates another level of nesting as you would have
in XML in your ant build file.)


Having just checked out the groovy site for the first time in years (I
admit I've not bothered keeping up with it as it seemed to be taking a
long time to get to a release), I notice this:\

def map = [name:"Gromit", likes:"cheese", id:1234]

Ouch!  map is a functional term, in groovy though map means
associative array/plist/dictionary/HashMap.

When I read groovy has native support for maps, I though cool!

list = [1,2,3].map( i : i*2) (or similar)


Maps are the same as in Java with some syntactic sugar.
You can use closures with lists:

list = [1,2,3].collect{ i -> i * 2 }
assert list == [2,4,6]

And similar things with maps, e.g.:

daylengths = [:] // empty map 'daylengths'
['Tuesday', 'Wednesday', 'Thursday'].each{
   day -> daylengths[day] = day.length()
} // fill 3 day, daylength entries into map
println daylengths.findAll{ key -> key =~ 'T.*y' }

Will print the map entries with keys matching the
regex 'T.*y', i.e.:

{Tuesday=7, Thursday=8}


Well anyway, that's just a couple of reasons why I'm not as keen on
groovy as other people are - that said, I'll have to download the
latest version and play with it to re-evaluate it - after all if
Manning are publishing a book, perhaps it's now ready for prime-time
:)


I certainly think it is getting close. There are still plenty of
things to do and still things under minor change and still heaps
of marketing to be done if Groovy is to approach the success of Ruby
let alone Java but it isn't too bad.


Thanks for the feedback (I'm an old curmudgeon too and groovy just
sounds wrong as a name ;)


Well, when we come up with the Groovy replacement, we can call it Crusty! ;)


Kev




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



svn commit: r448810 - /ant/antlibs/common/trunk/build.xml

2006-09-21 Thread bodewig
Author: bodewig
Date: Thu Sep 21 21:35:00 2006
New Revision: 448810

URL: http://svn.apache.org/viewvc?view=rev&rev=448810
Log:
Match what Matt has done in core

Modified:
ant/antlibs/common/trunk/build.xml

Modified: ant/antlibs/common/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/antlibs/common/trunk/build.xml?view=diff&rev=448810&r1=448809&r2=448810
==
--- ant/antlibs/common/trunk/build.xml (original)
+++ ant/antlibs/common/trunk/build.xml Thu Sep 21 21:35:00 2006
@@ -179,11 +179,19 @@
 
   
+
+  
+
+
+
+
 
-  
+  
 
   
 



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



Re: svn commit: r448636 - in /ant/core/trunk: build.xml src/tests/ src/tests/antunit/ src/tests/junit/

2006-09-21 Thread Stefan Bodewig
On Thu, 21 Sep 2006, Matt Benson <[EMAIL PROTECTED]> wrote:

> To enable this, add a cut of the antunit jar to
> $ANT_HOME/lib

I've committed 1.0beta1 to lib/optional, we could use an explicit
 to load ot from there and leave $ANT_HOME/lib alone.

> and--for now--copy the junitreport xsls to src/tests/antunit .

Committed the 1.0 Beta 1 version.

I've also added a dependency on AntUnit to test-ant in Gump so we
should be running the AntUnit tests in Gump now as well.

Stefan

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



svn commit: r448804 - /ant/core/trunk/lib/optional/ant-antunit-1.0Beta1.jar

2006-09-21 Thread bodewig
Author: bodewig
Date: Thu Sep 21 21:26:02 2006
New Revision: 448804

URL: http://svn.apache.org/viewvc?view=rev&rev=448804
Log:
Add AntUnit 1.0 Beta 1

Added:
ant/core/trunk/lib/optional/ant-antunit-1.0Beta1.jar   (with props)

Added: ant/core/trunk/lib/optional/ant-antunit-1.0Beta1.jar
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/lib/optional/ant-antunit-1.0Beta1.jar?view=auto&rev=448804
==
Binary file - no diff available.

Propchange: ant/core/trunk/lib/optional/ant-antunit-1.0Beta1.jar
--
svn:mime-type = application/octet-stream



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



svn commit: r448803 - in /ant/core/trunk/src/tests/antunit: junit-frames.xsl junit-noframes.xsl

2006-09-21 Thread bodewig
Author: bodewig
Date: Thu Sep 21 21:24:42 2006
New Revision: 448803

URL: http://svn.apache.org/viewvc?view=rev&rev=448803
Log:
Add stylesheets of 1.0Beta1

Added:
ant/core/trunk/src/tests/antunit/junit-frames.xsl   (with props)
ant/core/trunk/src/tests/antunit/junit-noframes.xsl   (with props)

Added: ant/core/trunk/src/tests/antunit/junit-frames.xsl
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/junit-frames.xsl?view=auto&rev=448803
==
--- ant/core/trunk/src/tests/antunit/junit-frames.xsl (added)
+++ ant/core/trunk/src/tests/antunit/junit-frames.xsl Thu Sep 21 21:24:42 2006
@@ -0,0 +1,888 @@
+http://www.w3.org/1999/XSL/Transform"; version="1.0"
+xmlns:lxslt="http://xml.apache.org/xslt";
+xmlns:redirect="http://xml.apache.org/xalan/redirect";
+xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"
+extension-element-prefixes="redirect">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+
+  
+
+
+  
+
+  
+
+  
+
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+
+  
+
+
+  
+
+  
+
+
+  
+
+  
+
+
+  
+
+  
+
+  
+
+
+  
+
+  
+
+  
+
+  
+
+
+
+
+
+AntUnit Test Results.
+
+
+
+
+
+
+
+
+Frame Alert
+
+This document is designed to be viewed using the frames 
feature. If you see this message, you are using a non-frame-capable web client.
+
+
+
+
+
+
+
+
+body {
+font:normal 68% verdana,arial,helvetica;
+color:#00;
+}
+table tr td, table tr th {
+font-size: 68%;
+}
+table.details tr th{
+font-weight: bold;
+text-align:left;
+background:#a6caf0;
+}
+table.details tr td{
+background:#e0;
+}
+
+p {
+line-height:1.5em;
+margin-top:0.5em; margin-bottom:1.0em;
+}
+h1 {
+margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
+}
+h2 {
+margin-top: 1em; margin-bottom: 0.5em; font: bold 125% 
verdana,arial,helvetica
+}
+h3 {
+margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
+}
+h4 {
+margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+}
+h5 {
+margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+}
+h6 {
+margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+}
+.Error {
+font-weight:bold; color:red;
+}
+.Failure {
+font-weight:bold; color:purple;
+}
+.Properties {
+  text-align:right;
+}
+
+
+
+
+
+
+   
+   
+   
+   All Failures
+   
+   
+   All Errors
+   
+   
+   All Tests
+   
+   
+   
+   
+   AntUnit Test Results: 
+   
+
+
+   
+   
+   open('allprojects-frame.html','projectListFrame')
+
+
+
+
+   
+   
+   
+   
+  
+
+  
+
+  
+
+  
+  
+
+  
+
+  
+
+
+  
+
+  
+
+
+  
+
+  
+
+  
+
+
+
+
+
+
+
+
+
+
+.
+
+
+  AntUnit Test Results: 
+
+
+
+   
+var TestCases = new Array();
+var cur;
+
+   
+   Properties of " + name + "");
+  doc.write("