Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 81424 invoked from network); 24 Feb 2001 01:34:30 -0000 Received: from tan7.ncr.com (HELO susdayte08.daytonoh.ncr.com) (192.127.94.7) by h31.sny.collab.net with SMTP; 24 Feb 2001 01:34:30 -0000 Received: by susdayte08.daytonoh.ncr.com with Internet Mail Service (5.5.2650.21) id <14X877V8>; Fri, 23 Feb 2001 20:34:09 -0500 Message-ID: From: "Goli, Srikanth" To: ant-user@jakarta.apache.org, ant-dev@jakarta.apache.org Subject: EJBJar task bug.. Date: Fri, 23 Feb 2001 20:34:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Everybody.. There seems to be a bug in ejbjar task (using weblogic) to build a jar file from my beans. When I have some white spaces in destdir attribute in weblogic task, the task fails. This task works perfectly well if I don't have whitespaces. I am not a windows guy. I hate to say, I have a requirement to have my application classes in Program Files. I tried to debug and noticed the parent process is forking another process with the folling command. [java] Forking java -classpath "C:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\Program Files\test\build" weblogic.ejbc -noexit C:\Program Files\test\test-generic.jar C:\Program Files\test\test.jar [java] weblogic.utils.compiler.ToolFailureException: ERROR: You must specify a source ejb-jar file ending with the suffix .jar for weblogic.ejbc [java] at weblogic.ejbc.validateToolInputs(ejbc.java:183) [java] at weblogic.ejbc.runBody(ejbc.java:289) [java] at weblogic.utils.compiler.Tool.run(Tool.java:80) [java] at weblogic.ejbc.main(ejbc.java:353) [java] Java Result: 1 In Java the whitespace is an argument separator. This command definitely fails. I understand, the command generation from WeblogicDeploymentTool is wrong. The generated command should be as the following command java -classpath "C:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\Program Files\test\build" weblogic.ejbc -noexit "C:\Program Files\test\test-generic.jar" "C:\Program Files\test\test.jar" Both the arguments for ejbc compiler should be in the quotes. Here is my sample project file that has a property called destdir that points to Program Files\test. When I run ant, my jar building task fails. If this destdir points to non-whitespace directory it works fine. Please let me know if there is any work around for this problem.. Thanks in advance Srikanth Goli Srikanth.Goli@ncr.com (An Ant Lover)