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 86695 invoked from network); 19 Apr 2000 00:20:12 -0000 Received: from unknown (HELO insession.com) (207.205.92.14) by locus.apache.org with SMTP; 19 Apr 2000 00:20:12 -0000 Received: by insession.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 872568C6.0001D19F ; Tue, 18 Apr 2000 18:19:51 -0600 X-Lotus-FromDomain: INSESSION From: John_Sisson@insession.com To: ant-dev@jakarta.apache.org Message-ID: <872568C6.0001D067.00@insession.com> Date: Wed, 19 Apr 2000 10:01:03 +1100 Subject: Re: Ant Principles Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I have only recently joined this list, so excuse me for asking stupid questions.. Why can't the file seperators in the xml file be specified using ${file.separator} instead of having a standard file separator. I have a build xml file where I do the following: I then specify file names using the shortened property name, e.g: It isn't pretty, but it is portable. I don't know how to solve the drive addressing though. I also have some feedback from my usage of ANT (over the past week) (I am using windows NT JDK1.3RC2): * I had to update bootstrap.bat so the classpath includes tools.jar. * I had to update build.bat so the classpath includes tools.jar * I couldn't get compiles to work when using a compile type of modern (no errors produced and no class files produced). * The example in the doco for the exec task doesn't work for Windows NT. For it to work, I had to specify the full name "Windows NT" as the operating system. Maybe the doco could be improved to say that the operating system you specify must be a complete string (not a substring of the operating system name). * The copyfile task didn't report an error (even with verbose on) when an invalid src file was specified. * I couldn't find any mention of what happens when a task fails and if there is a way to catch that error and perform another task (such as sending an email to someone notifying them that the build failed). Maybe there is a way to do this setting properties?? Unfortunately I don't have the time at the moment to look into the above issues. FYI.. I also started using a free obfuscator called RetroGuard (open source) and it can be called during the build process and seems to work well. I Thought that some people may want to give it a go if they haven't already. http://www.retrologic.com/ Thanks, John Sisson Insession Labs "Robin Green" on 04/19/2000 08:34:30 PM Please respond to ant-dev@jakarta.apache.org To: ant-dev@jakarta.apache.org cc: Subject: Re: Ant Principles Unfortunately, if you use platform-specific file separators, your build.xml doesn't work on all platforms. If you mandate a standard file representation for Ant, any characters you choose will probably be a pain for someone, but at least you can build cross-platform. (In the extremely unlikely case that, e.g. the path separator was ; and a filename included ;, you would use character escaping: \; ) -- Robin 260+ Open Source Java links! http://directory.mozilla.org/Computers/Programming/Languages/Java/Open_Source/ ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com