[PATCH] Add missing exec features to SSHExec: error, errorproperty, resultproperty

2013-06-17 Thread Gilbert Rebhan
Just uploaded a patch for 
https://issues.apache.org/bugzilla/show_bug.cgi?id=48478,
which provides the following enhancements :
+ errorProperty
+ errorFile
+ appenderr
+ suppressSystemErr
+ resultProperty

Regards, Gilbert Rebhan

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[Ant Manual] Wrong link for jruby.jar

2011-08-14 Thread Gilbert Rebhan
The ant manual :
http://ant.apache.org/manual/install.html#librarydependencies
has the wrong link for jruby.jar :
http://jruby.sourceforge.net/

When using that link you will be redirected to the right
site, but it should be corrected to :
http://www.jruby.org/


Gilbert


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[Announce] Flaka 1.2.2 released

2011-06-14 Thread Gilbert Rebhan
June 13th, 2011 - The Flaka project is pleased to announce the
release of Flaka 1.2.2.

What's new ?
Flaka 1.2.2 is a maintenance release, that tackles some
minor issues :
 to overwrite userproperties
EL functions matches() and glob() added
Work to allow users to plug in their
own EL functions is underway..

Flaka is an extension for Ant that runs with Ant versions 1.7.x and
1.8.x. A main project goal of Flaka is the simplification of writing
a build script.

Flaka requires:

Ant >= 1.7.x
Java >= 1.5

Flaka provides:

1. An expression language (Java Unified Expression Language) allowing
   access to data objects, many scripting parts become obsolete
2. Conditional and repetitive control structures like when, unless,
   while, for, choose, switch ..
3. Exception handling
4. Additional types, tasks and macros
5. A comprehensive documentation

Flaka appetizer:





 
  Hello #{ project.name ? project.name : ''}!
 
 
  
   
   
file: #{f.name} last modified: #{ format('%tD',f.mtime) }
   
  
 


[fl:logo] 
[fl:logo] :   Hello World!   :
[fl:logo] 
[echo]file: demo.xml last modified: 06/13/11
[echo]
[echo]file: build.xml last modified: 05/13/11
[echo]
[echo]file: foobar.xml last modified: 06/09/11
[echo]
BUILD SUCCESSFUL

Flaka's Google Project Page is
http://code.google.com/p/flaka

Manual + Javadoc
http://code.google.com/p/flaka/wiki/Manual

Jar ready to be used - no additional dependencies required
http://flaka.googlecode.com/files/ant-flaka-1.02.02.jar

Jar requires additional dependencies
http://flaka.googlecode.com/files/ant-flaka-bare-1.02.02.jar

Development Package (rebuild from scratch)
http://flaka.googlecode.com/files/flaka-1.02.02.zip

Javadocs
http://flaka.googlecode.com/files/flaka-javadoc-1.02.02.zip

Sources
http://flaka.googlecode.com/files/flaka-sources-1.02.02.zip

Issues should be reported to
http://code.google.com/p/flaka/issues/list

More information on Flaka at
http://code.google.com/p/flaka
http://workbench.haefelinger.it/flaka

Enjoy !!
Wolfgang Haefelinger
Gilbert Rebhan


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: [PATCH] Ant faq.xml

2011-03-30 Thread Gilbert Rebhan
 Original Message  
Subject: Re: [PATCH] Ant faq.xml
From: Stefan Bodewig 
To: dev@ant.apache.org
Date: Wed Mar 30 2011 17:54:47 GMT+0200 (CET)

> On 2011-03-24, Gilbert Rebhan wrote:
> 
>> Patchfile, see attached file : patchfile.txt

> For some reasons my MUA doesn't see the contents of attachments when
> sent to Apache lists.

So is there a better way to send patches ?
i just followed the instructions under =
http://ant.apache.org/faq.html#adding-faqs

> One thing that makes me suspicious is that my reconstructed
> patchfile.txt didn't close the CDATA section you opened for the example.

To my shame i must confess i forgot the closing
]]>
in my patchfile :-(
My editor didn't mark it as error..
Sorry for that.

>I've tried to reproduce the patchfile from the
> raw email's content, you may want to double check whether what is
> visible on the Ant site now really is what you intended to see.

Thanks a lot Stefan, it's exactly what i wanted to put into the FAQ !


Regards, Gilbert


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[Announce] Flaka 1.02.01 released

2011-03-24 Thread Gilbert Rebhan
March 23th, 2011 - The Flaka project is pleased to announce the
release of Flaka 1.02.01, the third release of Flaka.

What's new ?
Flaka 1.02.01 is a maintenance release.
Distribution jar has been rebuilt with Ant 1.8
No changes in source code, but build.xml has been extended to
assure that Ant 1.8.x is used for distribution build.

Flaka is an extension for Ant that runs with Ant versions 1.7.x and
1.8.x. A main project goal of Flaka is the simplification of writing
a build script.


Flaka requires:

Ant >= 1.7.x
Java >= 1.5


Flaka provides:

1. An expression language (Java Unified Expression Language) allowing
   access to data objects, makes many scripting parts in ant scripts
   unnecessary
2. Conditional and repetitive control structures like when, unless,
   while, for, choose, switch ..
3. Exception handling
4. Additional types, tasks and macros
5. A comprehensive documentation


Flaka appetizer:


  
Hello #{ project.name ? project.name : ''}!
  
  

  
;; report basename and modification time
file #{f.name} last modified: #{ f.mtime }
  

  



Flaka's Google Project Page is
http://code.google.com/p/flaka

Manual
http://flaka.googlecode.com/files/flaka.pdf

Jar ready to be used - no additional dependencies required
http://flaka.googlecode.com/files/ant-flaka-1.02.01.jar

Jar requires additional dependencies
http://code.google.com/p/flaka/downloads/ant-flaka-bare-1.02.01.jar

Development Package (rebuild from scratch)
http://flaka.googlecode.com/files/flaka-1.02.01.zip

Javadocs
http://flaka.googlecode.com/files/flaka-javadoc-1.02.01.zip

Sources
http://flaka.googlecode.com/files/flaka-sources-1.02.01.zip

Issues should be reported to
http://code.google.com/p/flaka/issues/list

More information on Flaka at
http://code.google.com/p/flaka
http://workbench.haefelinger.it/flaka


Regards,
Wolfgang Häfelinger
Gilbert Rebhan


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[PATCH] Ant faq.xml

2011-03-24 Thread Gilbert Rebhan

Second try, fixed a typo..

Patch contains a solution for nested Properties / Properties
dereferencing with Ant Plugin Flaka (http://code.google.com/p/flaka/)

How do i..
How can I do something like  (double expanding the property)?

Patchfile, see attached file : patchfile.txt


Regards, Gilbert
--- faq.xml.orig2011-03-23 22:45:07.621396271 +0100
+++ faq.xml 2011-03-23 22:51:23.511342304 +0100
@@ -768,6 +768,22 @@
 
 
  ${${var}} = foo.value ]]>
+ With http://code.google.com/p/flaka/";>Flaka (external 
Ant Plugin) you could
+ do the dereferencing with #{${anotherprop}} - not just
+ in flaka tasks, but all tasks after installing flaka's property 
handler'.
+ 
+ With http://code.google.com/p/flaka/";>Flaka (external 
Ant Plugin) you could
+ do the dereferencing with #{${anotherprop}} - not just
+ in flaka tasks, but all tasks after installing flaka's property 
handler.
+ 

[PATCH] Ant FAQ.xml

2011-03-23 Thread Gilbert Rebhan
Patch contains a solution for nested Properties / Properties
dereferencing with Ant Plugin Flaka (http://code.google.com/p/flaka/)

How do i..
How can I do something like  (double expanding the property)?

Patchfile, see attached file : patchfile.txt


Regards, Gilbert
--- faq.xml.orig2011-03-23 22:45:07.621396271 +0100
+++ faq.xml 2011-03-23 22:51:23.511342304 +0100
@@ -768,6 +768,22 @@
 
 
  ${${var}} = foo.value ]]>
+ With http://code.google.com/p/flaka/";>Flaka (external 
Ant Plugin) you could
+ do the dereferencing with #{${anotherprop}} - not just
+ in flaka tasks, but all tasks after installing flaka's property 
handler'.
+ 

Re: How to fail if property expansion failed...

2010-10-22 Thread Gilbert Rebhan
 Original Message  
Subject: Re: How to fail if property expansion failed...
From: mattf 
To: dev@ant.apache.org
Date: 22.10.2010 23:39

> 
> I was hoping to avoid introducing additional requirements, such as antcontrib
> or Ivy.
[..]

> Yes, sort of; a library property is a list of jars, a library-list names
> those properties by name; and is passed to classpath after expansion to the
> actual jars, and relative names expanded.  If the expansion fails, then the
> origin list named an undeclared property, and the name-form (${name}) is
> passed to classpath, indicating failure.  Now, I want ant to fail when
> failure is indicated.

use fail combined with a nested condition, something like=


 
  
   
  
 



Regards, Gilbert




-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[Manual] Wrong link#librarydependencies

2010-09-15 Thread Gilbert Rebhan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

http://ant.apache.org/manual/install.html#librarydependencies
has a wrong link for judoscript =

site has  => http://www.judoscript.com/index.html
should be => http://judoscript.org/home.html


Regards, Gilbert
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMkSEMAAoJEBycTG/fVWe8nTMH/38rWVxsdaRTtziXOjGecRrb
8T84NRb0xN/Li+if6blPCgzTX81TNhFUVl6q0Csu6aGho/ztKrgyGt2d6yMJQVBf
DkjySA4F7vwjX7dnuwIxaseteHd7WBJg8I0f8pxFrHK5u96i1N2jVFXnuNOg+8Xh
8/XE4l+792wAcayVa/T+C+yy6vATjFEznW+l0mxcryiyDcxRDreTiqOnx0T9gdC+
El268PHbriIRbM0BRzzrAWb3lZ71hjYeZu1YOhUyZ4L2USZYWq40BEdqnfuv6IVQ
zizhWKtl3sVdNvs0T4w45jpGzwVe6r4VxevIy6svunoZzwvgOPESDnC2eCl5e5M=
=l7FN
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: ant+soap+ssl

2010-03-17 Thread Gilbert Rebhan
 Original Message  
Subject: Re: ant+soap+ssl
From: Antoine Levy-Lambert 
To: a...@schillbaer.de
Date: 16.03.2010 02:12

> > Hi,
> >
> > in fact there is a document at this location
> >
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.javadoc.doc/web/mbeanDocs/DataPowerMgrMBeanDescriptor.html
> > showing the MBean API.

Thanks Paul and Antoine for all the hints,tips and sugestions !!
Didn't know about that MBean api, in fact i never heard of DataPower
before ;-) IBM bought it just some years ago and now starts
to push it

Still searching for the right tools i'm curious about
the lack of examples in that direction (ant+soap+ssl..)


Regards, Gilbert

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: ant+soap+ssl

2010-03-15 Thread Gilbert Rebhan
 Original Message  
Subject: Re: ant+soap+ssl
From: Paul King 
To: Ant Developers List 
Date: 15.03.2010 22:29

> 
> I'd probably use Groovy or whatever your favorite JVM scripting language
> is.
> Groovy-WS is the library you would need. It uses Apache CXF under the
> covers.
> If you have trouble getting started I can try to find one of my existing
> examples that does something similar.
> 
> Cheers, Paul.

Hi, Paul

Thanks for your quick reponse.
Thought of groovy already, because i'm a great fan of (j)ruby and both
have similarities, but have never tried groovy seriously before.
Also i have no further experience with webservices, i know the theory
and some basics, but have not really dealt with it.
Groovy is on my list for years, so maybe now is the time, any examples
are appreciated !


Regards, Gilbert


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



ant+soap+ssl

2010-03-15 Thread Gilbert Rebhan
Hi,

i want to access a IBM DataPower xml management interface
from within ant to send status and configuration requests
via soap messages.
Has anyone experience with such a setting ?

@IBM site only has an article that uses curl and openssl
as external commands called with exec from ant =
http://www.ibm.com/developerworks/websphere/library/techarticles/0904_rasmussen/0904_rasmussen.html
But i prefer a solution, where all tasks are running in jvm,
there are java apis for soap, f.e. JAX-WS 2.0 or Apache Axis

Are there any ant tasks in the wild for that purpose ?
Need to know which tools will do the job.
Some keywords =
http post, base64 encoding, soap, ssl, basic authentication

Any hints on that ?


Regards, Gilbert



-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Release of ant 1.8.0RC1

2010-01-12 Thread Gilbert Rebhan
Am 12.01.2010 19:14, schrieb Antoine Levy Lambert:
> Hi,
> 
> I have the pleasure to announce the release of Ant 1.8.0RC1.
> The artifacts have just been uploaded and should be available soon.
> 
> Regards,
> 
> Antoine

just tried several mirrors, but the link to release notes on
http://ant.apache.org/bindownload.cgi

/*
Currently, Apache Ant 1.8.0RC1 is the best available version, see the
release notes
*/

shows the release notes for Ant 1.7.1


Regards, Gilbert

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



[PATCH] org/apache/tools/ant/taskdefs/Manifest

2009-08-04 Thread Gilbert Rebhan

Hi,

Env = WinXP, WindowsServer 2003, jdk1.6.0_14, ant171

after switching from Sun jdk 1.5.0_11 to jdk 1.6.0_14 i noticed that
property java.vm.version has changed, so the Manifest class should use
java.runtime.version for the value of Created-By entry in MANIFEST.MF

jdk 1.5.0_11, Manifest looks like =
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
...

jdk 1.5.0_11, java.vm.version property =
1.5.0_11-b03
jdk 1.5.0_11, java.runtime.version property =
1.5.0_11-b03

jdk 1.6.0_14, Manifest looks like =
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 14.0-b16 (Sun Microsystems Inc.)
...

jdk 1.6.0_14, java.vm.version property =
14.0-b16
jdk 1.6.0_14, java.runtime.version property =
1.6.0_14-b08


--- patch attached ---

@@ -746,7 +746,7 @@
 insr = new InputStreamReader(in, "UTF-8");
 Manifest defaultManifest = new Manifest(insr);
 Attribute createdBy = new Attribute("Created-By",
-System.getProperty("java.vm.version") + " ("
+System.getProperty("java.runtime.version") + " ("
 + System.getProperty("java.vm.vendor") + ")");
 defaultManifest.getMainSection().storeAttribute(createdBy);
 return defaultManifest;



Regards, Gilbert
@@ -746,7 +746,7 @@
 insr = new InputStreamReader(in, "UTF-8");
 Manifest defaultManifest = new Manifest(insr);
 Attribute createdBy = new Attribute("Created-By",
-System.getProperty("java.vm.version") + " ("
+System.getProperty("java.runtime.version") + " ("
 + System.getProperty("java.vm.vendor") + ")");
 defaultManifest.getMainSection().storeAttribute(createdBy);
 return defaultManifest;


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Re: Ant usage

2009-07-25 Thread Gilbert Rebhan
reena321 schrieb:
> thanks for the reply,
> One more thing i wanted to know is, If i have many icons in a page and i
> want select(click) on one particular icon. How can i achive this?
> 

i believe your on the wrong path
you didn't describe in detail what you want to achieve, but i already
mentioned that ant is NO scripting language

btw questions for Ant usage should go to the antuser list,
you posted to the antdeveloper list instead ..

Regards, Gilbert

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Ant usage

2009-07-23 Thread Gilbert Rebhan
reena321 schrieb:
> Hello all,
> 
> I am very much interested in Ant scripting language. I want to automate
> Configuration of my project. like wise
> windows->preferences->java->buildpath-> and set some value there and many
> more of the same kind.

Ant is NO scripting language !! - but you may use several scripting
languages (all those BSF compatible ones, means JRuby, Groovy,
BeanShell, Rhino, Jython ...) within 

ant 1.7.1 bug in with antcall !?

2009-06-09 Thread Gilbert Rebhan

Hi,

after (finally) upgrading from ant 1.6.5 to ant 1.7.1 a teammate
discovered some strange behaviour =

He makes heavy use of antcall and uses the  task.
Now with ant 1.7.1 there are a lot of 0 byte lines in the logs,
his editor jumps automatically in hexmode when opening
such a logfile.

Compared to ant 1.6.5 several parts of the logs are missing - probably
overwritten by those 0 byte lines.
Whether heavy use of antcall is good or bad style, that behaviour of
 task in ant 1.7.1 is _very annoying_, as important parts of the
logs are missing now after the upgrade.

There was already a similar posting on the ant user list =
http://marc.info/?l=ant-user&m=123900769210029&w=2
but got no repsone.

So, is that a known bug among other users|developers, didn't find a
record in the bug database ?
Maybe it's already patched in repository !?
Any suggestions or workarounds ??


Regards, Gilbert



-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: AW: Dynamic property names

2008-11-04 Thread Gilbert Rebhan
Remie Bolte schrieb:
> Thanks for the input!
> 
> I found a different way to deal with the problem, without hacks :)
> Sometimes it is useful not to be able to find a solution, it allows you to
> look back a couple of steps.

hack != bad IMO
i use that term for a tricky solution or workaround when the standards
don't work as expected or lack a specific feature.

You are absolutely right, often you'll find a simple(r) solution after
taking a nap or another cup of coffee. Needing a hack is mostly an
indicator something went wrong before > Keep It Simple, Stupid (KISS)
But sometimes i need a hack to make it work.

> However, I do still have the question why double expanding is not
> implemented. Is there a conceptual issue, are there strong arguments not to
> implement it, or is it just hard to do?

One of the fundamentals in ant is the immutability of a property once set.
There are some collections of anttasks (antelope,antcontrib,antxtras)
that provide mutable properties, as there are requests by
ant users (btw. it's easy to overwrite properties with 

Re: AW: Dynamic property names

2008-11-04 Thread Gilbert Rebhan
[EMAIL PROTECTED] schrieb:
>> I saw the FAQ, but the workaround deals with making a new 
>> property, which is
>> not something that is desirable in my situation.
>> Is there a reason that double expanding is not implemented?
> 
> There is an implementation in the sandbox bundled as an AntLib.
> You could give it try:
> 
> 
> Root
> http://svn.apache.org/viewvc/ant/sandbox/antlibs/props/trunk/
> 
> Doc
> http://svn.apache.org/viewvc/ant/sandbox/antlibs/props/trunk/docs/index.
> html?view=co

There's also a hack via  task from antcontrib, see =
http://marc.info/?l=ant-user&m=121318477419672&w=2

Regards, Gilbert

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



Re: [Fwd: Strange problem with taskdef and antlib.xml]

2008-07-04 Thread Gilbert Rebhan



that runs on all machines. So finally i doubt, the
jar is corrupted. Therefore my question whether there's
a difference ...

but i'll try jar -tvf ...


jar -tvf problem.jar didn't come up with any
exception / extraordinary , just the usual listing of
all files contained in the archive.


is there a difference between jar loading
when
a) taskdef with classpath path="..."
b) taskdef with jar in %ANT_HOME%/lib


In a way, yes.  If it is in ANT_HOME/lib it will be loaded by a
different ClassLoader but should be using the same ZIP-reading
classes.


So, finally i run of ideas. I'll let it rest, and tell
you again, when putting the next task into the jar,
extending the antlib.xml again.

Regards, Gilbert



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



Re: [Fwd: Strange problem with taskdef and antlib.xml]

2008-07-02 Thread Gilbert Rebhan

Stefan Bodewig schrieb:

but different physical instances of the same jar file.


yes, of course


What does jar tf your-file.jar report - make sure to use the jar
command of the same JDK that you are using to run Ant as well.


i didn't try that, but wrote a test class that uses
an InputStream as ant does, wrote a test ant script
that uses

 


that runs on all machines. So finally i doubt, the
jar is corrupted. Therefore my question whether there's
a difference ...

but i'll try jar -tvf ...


is there a difference between jar loading
when
a) taskdef with classpath path="..."
b) taskdef with jar in %ANT_HOME%/lib


In a way, yes.  If it is in ANT_HOME/lib it will be loaded by a
different ClassLoader but should be using the same ZIP-reading
classes.


In substance there should be no difference, after all it's
an InputStream

i know it's not an ant bug but a java problem, 

I hope I didn't sound like "go away".


No problem, i got the meaning :-)


as the ProjectHelper* classes only use a simple InputStream, but i
thought someone on that list could help, already came across the
same problem.


Fair enough.  I've never faced that situation myself and am running
out of ideas, sorry.


you hit the nail on the head, that's exactly how i feel ;-)


Regards, Gilbert

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



Re: [Fwd: Strange problem with taskdef and antlib.xml]

2008-07-01 Thread Gilbert Rebhan


Stefan Bodewig schrieb:

I'm even more convinced that it is something with the ZIP archive
itself.


hm ,works fine on two machines, but failed on a third one.
all run with the same version of jdk, ant and the same OS

the error message =
"Error reading project file: ... " occurs only in
ProjectHelper and ProjectHelperImpl classes in ant 1.6.5
and comes from the catch block of an InputStream

my last tests with


  
and %ANT_HOME%/lib/xxx.jar worked like a charm on the production
machine with a small test script that loads some selfwritten
tasks ?!?!?!?

completely baffled ... but i'm not allowed to try it again
with the real production scripts and

combined with %ANT_HOME%/lib/thejarthatdidntworklateley.jar

is there a difference between jar loading
when
a) taskdef with classpath path="..."
b) taskdef with jar in %ANT_HOME%/lib

why does the same jar file fails only on one machine, is there
a kind of jdk configuration when dealing with ImputStreams
or loading of jar files ?!

it did run fine on all machines before adding the new task
and extending the antlib.xml


btw. what's the meaning of =
"oversubscribed dynamic bit lengths tree" ?
simple words please ;-)


and my only response "I have no idea" we get deeply into zlib.  If you
use the serach machine that is not a verb on that phrase you will only
find references to zlib or other code using zlib internally to read a
zip archive.


i know it's not an ant bug but a java problem, as the ProjectHelper* 
classes only use a simple InputStream, but i thought someone on that 
list could help, already came across the same problem.



Regards, Gilbert





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



Re: [Fwd: Strange problem with taskdef and antlib.xml]

2008-06-27 Thread Gilbert Rebhan


Hi, Stefan

Stefan Bodewig schrieb:

Error reading project file
jar:file:/E:/SCM_Sync/tools/ant/lib/hukit13ant.jar!/de/huk/it13/ant/antl
ib.xml: oversubscribed dynamic bit lengths tree


sounds like an encoding issue, I agree.


It did always run fine without any problems. I have an eclipse
project, do the coding and then export -> jar
ok i'll write an antfile for that, if i have time too ;-) 


All editing including antlib.xml happened in my workspace.
I even saw some tabs and trailing spaces in the antlib.xml
in the working version of the jar.


whereas other scripts running with the same line

and the same jar run fine as before.


Forget it, it got even stranger in the meantime.
I had a deeper look at the new task from my teammate and
corrected some flaws, tuned it.

The situation now =

the myanttasks.jar with the new class and the extended
antlib.xml runs fine on my developer instance and on our
test machine, but it fails in production :-(

Now the error occurs _whenever_ the jar gets involved via
 !!

..oversubscribed dynamic bit lengths tree

Oh, boy, 3 machines =

1.mine = Win2000, jdk 1.5.0_11, ant 1.6.5
2.test = Win2003, jdk 1.5.0_11, ant 1.6.5
3.prod = Win2003, jdk 1.5.0_11, ant 1.6.5

1. + 2. run fine but 3. fails on any occasion the
jar with the anttasks gets involved.

What's new in the jarfile with the anttasks is
a new class and the antlib.xml was extended with
a new line.

The class has no flaws, the antlib.xml is that of the
old backuped version with only one line more.

Elcipse is set to UTF-8. Another editor checking the antlib.xml,
PSPad says, it's UTF-8, in Hex view there are no fishy chars


Are the other scripts using the same Java VM?  I've found Sun's JVMs
to be more forgiving than IBM's for example (Websphere challenged 8-).


yup, all of our ant scripts run with sun jdk 1.5.0_11 only


I checked the antlib.xml for non UTF-8 chars and things like that,
but didn't find any.


Is there any more information you could provide (like the actual
exception being thrown)?  It could be the ZIP reading library as
well.


no i get only the line i already posted
our server uses a class that is similar to the AntBuilder of
Cruise Control, it kicks off ant scripts; the exception
comes from ant, taskdef task i think, when he wants to read antlib.xml
via ZipInputStream or something


 suggest
problems with the archive rather than the XML file.


that was one of the bug reports i already found but it wasn't very
helpful.

I also tried a concurrent access of the jarfile, means running a class 
that opens a ZIPInputStream on the file with the anttasks then starting 
the antscript that has 

=> same behaviour, runs on two machines but fails in production

i wish i had an idea what goes on here ...

btw. what's the meaning of =
"oversubscribed dynamic bit lengths tree" ?
simple words please ;-)

Regards, Gilbert

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



[Fwd: Strange problem with taskdef and antlib.xml]

2008-06-26 Thread Gilbert Rebhan


(forwarded from the ant-user list...)


Hi,

i've written a bunch of anttasks. Those tasks are
collected in a jar. The Jar has an antlib.xml with
a mapping of the classnames to tasknames


  
  
...


The jar lies under %ANT_HOME%/lib

the taskdefs are imported via =


Yesterday a workmate added a new task and also
referenced it in the antlib.xml

From that on a strange problem appeared =

one ant script with

is started from a class like that

/*
java.io.File buildFile = new java.io.File(args[0]);
org.apache.tools.ant.Project p = new org.apache.tools.ant.Project();
p.setUserProperty("ant.file", buildFile.getAbsolutePath());
org.apache.tools.ant.DefaultLogger consoleLogger = new
org.apache.tools.ant.DefaultLogger();
consoleLogger.setErrorPrintStream(System.err);
consoleLogger.setOutputPrintStream(System.out);
consoleLogger.setMessageOutputLevel(org.apache.tools.ant.Project.MSG_INF
O);
p.addBuildListener(consoleLogger);


try {
  p.fireBuildStarted();
  p.init();

... etc.
*/

Until the new class came in it ran fine but now it produces =

Error reading project file
jar:file:/E:/SCM_Sync/tools/ant/lib/hukit13ant.jar!/de/huk/it13/ant/antl
ib.xml:
oversubscribed dynamic bit lengths tree

whereas other scripts running with the same line

and the same jar run fine as before.

I checked the antlib.xml for non UTF-8 chars and things like that, but
didn't find any. Also googling didn't bring up something helpful except
for some cryptic bugreport @ sun

Env = Windows 2000/2003, ant 1.6.5, jdk 5

any ideas ??


Regards, Gilbert



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