Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 3902 invoked from network); 12 Oct 2000 07:58:15 -0000 Received: from unknown (HELO mail.epost.de) (64.39.38.70) by locus.apache.org with SMTP; 12 Oct 2000 07:58:15 -0000 Received: from ns2000 (149.225.101.202) by mail.epost.de (5.1.051) id 39DCCA3900030701 for ant-dev@jakarta.apache.org; Thu, 12 Oct 2000 09:57:57 +0200 Message-ID: <006601c03422$5b1be0e0$e511e195@ns2000> From: "Nico Seessle" To: References: <635802DA64D4D31190D500508B9B04104E0F47@dcsrv0> Subject: Re: [PATCH] New task Date: Thu, 12 Oct 2000 09:54:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Jose Alberto Fernandez" To: Sent: Wednesday, October 11, 2000 9:01 PM Subject: RE: [PATCH] New task > Nico, please do not misunderstand me. I am all for having the scripting > tasks. The only thing I was commenting about was on having to use scripting > just to be able to find the value of a property. That is where I disagree > scriptig must be the required tool. > > I am also not sure, whether the current Gives you (the first one is a bit ugly, but this may be my fault or can be fixed...): C:\VAMOS50\SourceExt\test>ant -buildfile test9.xml Buildfile: test9.xml default: prop.name: ${prop.name} BUILD FAILED test9.xml:13: Unknown Database specified (null) Unknown Database specified (null) at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:74) at java.lang.reflect.Method.invoke(Native Method) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:21 6) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1216) at org.mozilla.javascript.gen.c1.call(:8) at org.mozilla.javascript.gen.c1.exec() at org.mozilla.javascript.Context.evaluateReader(Context.java:741) at org.mozilla.javascript.Context.evaluateString(Context.java:705) at com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine .java:82) at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:112) at com.ibm.bsf.BSFManager.exec(BSFManager.java:482) at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:110 ) at org.apache.tools.ant.Target.execute(Target.java:142) at org.apache.tools.ant.Project.runTarget(Project.java:818) at org.apache.tools.ant.Project.executeTarget(Project.java:532) at org.apache.tools.ant.Project.executeTargets(Project.java:506) at org.apache.tools.ant.Main.runBuild(Main.java:400) at org.apache.tools.ant.Main.main(Main.java:130) Total time: 1 second Unknown Database specified (null) C:\VAMOS50\SourceExt\test>ant -buildfile test9.xml -Dprop.name=oracle Buildfile: test9.xml default: prop.name: oracle Oracle: true Informix: ${runOnInformix} Sybase: ${runOnSybase} BUILD SUCCESSFUL Total time: 1 second C:\VAMOS50\SourceExt\test>ant -buildfile test9.xml -Dprop.name=sybase Buildfile: test9.xml default: prop.name: sybase Oracle: ${runOnOracle} Informix: ${runOnInformix} Sybase: true BUILD SUCCESSFUL Total time: 1 second C:\VAMOS50\SourceExt\test>ant -buildfile test9.xml -Dprop.name=informix Buildfile: test9.xml default: prop.name: informix Oracle: ${runOnOracle} Informix: true Sybase: ${runOnSybase} BUILD SUCCESSFUL Total time: 1 second