Re: Scope of scripts -> workaround

2006-04-28 Thread Marcel Ruff
Alexey N. Solofnenko wrote: Can you use instead? See: http://ant.apache.org/manual/OptionalTasks/scriptdef.html . i have tried already with no success (probably not hard enough :-), thanks, Marcel - Alexey. Marcel Ruff wrote: After fiddling further i have found this workaround

Re: Scope of scripts -> workaround

2006-04-28 Thread Marcel Ruff
others, like this it is possible to collect precondition code at a single place. But still I'm wondering about the scope of scripts ... thanks Marcel http://www.xmlBlaster.org Marcel Ruff wrote: Hi, i have defined a javascript function in a "pre" task, but when i want to call it lat

Scope of scripts

2006-04-28 Thread Marcel Ruff
Hi, i have defined a javascript function in a "pre" task, but when i want to call it later i get: ReferenceError: "doPrecond" is not defined Here is the xml, i call it with 'ant y': - function doPrecond() { project.log("HELLO PRECOND"); } doPrecond();

Re: SystemClassLoader fails to load inside my own ant task

2006-04-21 Thread Marcel Ruff
Thanks, this did indeed work: export LOCALCLASSPATH=$CLASSPATH:$HOME/apache-ant-1.6.5/lib/ant.jar but it seems that as soon as i touch LOCALCLASSPATH i'm forced to add all needed jars of ant/lib to this LOCALCLASSPATH as well (see above example), what is the reason for this? Before the CLASSP

SystemClassLoader fails to load inside my own ant task

2006-04-19 Thread Marcel Ruff
Hi, i'm using ANT 1.6.5 on Linux (same for JDK 1.4 or 1.5). I have written an own task, inside this i use java.util.logging. When i want to load my own logging handler it fails: [xmlBlasterScript] java.lang.ClassNotFoundException: org.xmlBlaster.util.log.XbNotifyHandler [xmlBlasterScript]

SystemClassLoader fails to load inside my own ant task

2006-04-19 Thread Marcel Ruff
Hi, i'm using ANT 1.6.5 on Linux (same for JDK 1.4 or 1.5). I have written an own task, inside this i use java.util.logging. When i want to load my own logging handler it fails: [xmlBlasterScript] java.lang.ClassNotFoundException: org.xmlBlaster.util.log.XbNotifyHandler [xmlBlasterScript]