Re: file permission rights under Windows

2001-12-06 Thread Stefan Bodewig
On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote: how can I change the permissions of a Windows file ? There is no built-in task to do that, but people have sent custom tasks to ant-dev, you may find one in the archives. I've been told that there is an executable named attrib that

Re: Build Fails on HP-UX

2001-12-06 Thread Stefan Bodewig
On Wed, 5 Dec 2001, Steve Brenneis [EMAIL PROTECTED] wrote: package org.apache.tools.ant.taskdefs.optional.depend.constantpool does not exist Hmm, did you get any error messages while untarring the source archive (the file names for the files inside this package exceed the magical 100

Re: Quoting issue

2001-12-06 Thread Stefan Bodewig
On Wed, 5 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: Thanks Frank Tried the following, but still got the same error as in my prior email. exec dir=${afi.packaging.work} executable=signtool failonerror=true arg

Re: Copy directories

2001-12-06 Thread Stefan Bodewig
On Wed, 5 Dec 2001, Feliks Shvartsburd [EMAIL PROTECTED] wrote: How do you recursively copy set of dirs and subdirs to target? thanks copy Any problems with it? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: copy task with excludes

2001-12-06 Thread Stefan Bodewig
On Wed, 5 Dec 2001, Anthony Rodriguez [EMAIL PROTECTED] wrote: Here is some of my build.xml file: !-- Copying java to cabinet -- copy todir=${noc}\${label}\java fileset dir=${stage.trustlib} excludes=test/**/ /copy copy todir=${noc}\${label}\daemons\code

Re: file permission rights under Windows

2001-12-06 Thread detlef . brendle
thanks stefan, I will have a look in the archives. and no theres no reason why I cant use exec. but I didnt know that there is a chance to do this with exec. Quoting Stefan Bodewig [EMAIL PROTECTED]: On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote: how can I change the

Check for environment variable existence

2001-12-06 Thread Hannes van der Merwe
In my build script I setup a property with a specific classpath. Now if the environment variable: CLASSPATH, is set before hand I need to include this existing classpath into the specific classpath setup in the build script. What is the best way to check if the environment variable: CLASSPATH is

Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] wrote: What is the best way to check if the environment variable: CLASSPATH is set or not? property environment=env / now either env.CLASSPATH exists or it doesn't and you can use if/unless attributes based on it. Stefan -- To

RE: Check for environment variable existence

2001-12-06 Thread Hannes van der Merwe
Maybe it is a stupid question, but how should I do that? -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:39 PM To: [EMAIL PROTECTED] Subject: Re: Check for environment variable existence On Thu, 6 Dec 2001, Hannes van der Merwe

Re: Check for environment variable existence

2001-12-06 Thread Erik Hatcher
Also, keep in mind that when running Ant through the wrapper scripts that your environment classpath is already available and used by Ant and all tasks that it runs in its own VM. Perhaps you should discuss more about what you are planning on doing with the CLASSPATH from the environment,

Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] wrote: Maybe it is a stupid question, but how should I do that? Probably more a sign of a flawed documentation (patches are always welcome). First, define the classpath that you want to use and don't care for the environment variable.

Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Erik Hatcher [EMAIL PROTECTED] wrote: Ant provides system properties to you, and you will have ${java.class.path} available already if needed. But this will contain classes that are not in the CLASSPATH environment (all stuff from ANT_HOME/lib). Stefan -- To unsubscribe,

RE: file permission rights under Windows

2001-12-06 Thread Timothy Spear
Use exec to call Attrib. The available attributes are hidden (h), readonly (r), system (s), archive (a). Anyway to set the flag state attrib +r filename. to remove attrib -r filename. to see all current flags attrib Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: Check for environment variable existence

2001-12-06 Thread Erik Hatcher
And tools.jar as well, which is not in ANT_HOME/lib, of course. Yup, I knew that and should have noted that too when I mentioned it. - Original Message - From: Stefan Bodewig [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 7:11 AM Subject: Re: Check for

Missing top level dir in jar file

2001-12-06 Thread Roger Marlow
Hello, Using the jar task in ant.1.4.1 I am missing the top level dir from the paths in the jar. For example if I have files and dirs like this:- . ./base ./base/sub ./base/sub/file1.class ./base/sub/file2.class Then in . I run jar cf ajar.jar base then jar tf ajar.jar we see :- META-INF/

RE: Missing top level dir in jar file

2001-12-06 Thread Marko Srdanovic
Try: jar jarfile=ajar.jar basedir=. includes=base/ You might have to play with the excludes directive also. -Original Message- From: Roger Marlow [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:00 AM To: [EMAIL PROTECTED] Subject: Missing top level dir in jar file

Re: Missing top level dir in jar file

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Marko Srdanovic [EMAIL PROTECTED] wrote: Try: jar jarfile=ajar.jar basedir=. includes=base/ this would only include the directory base and nothing else, it should probably be jar jarfile=ajar.jar basedir=. includes=base/**/ Stefan -- To unsubscribe, e-mail:

Re: Bug in jar

2001-12-06 Thread Stefan Bodewig
Hi KC, I'm taking the time to revisit some old bug reports that I'm not sure whether they have been resolved. On Sat, 10 Mar 2001, KC Baltz [EMAIL PROTECTED] wrote: If you specify a manifest file, but do it using the wrong case, the jar task will succeed, but the manifest file will not be

RE: Missing top level dir in jar file

2001-12-06 Thread Marko Srdanovic
Oops, that's what you get when you don't test things first - Thanks! ;-) -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Re: Missing top level dir in jar file On Thu, 6 Dec 2001, Marko

Re: Missing top level dir in jar file

2001-12-06 Thread Roger Marlow
Try: jar jarfile=ajar.jar basedir=. includes=base/ this would only include the directory base and nothing else, it should probably be jar jarfile=ajar.jar basedir=. includes=base/**/ Unfortunately that just looks for the files under base. There's only a directory there, so it

Re: Missing top level dir in jar file

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Roger Marlow [EMAIL PROTECTED] wrote: Try: jar jarfile=ajar.jar basedir=. includes=base/ this would only include the directory base and nothing else, it should probably be jar jarfile=ajar.jar basedir=. includes=base/**/ Unfortunately that just looks for

RE: Missing top level dir in jar file

2001-12-06 Thread Matt Lyon
Hi, A quick question on recursion. Just out of curiosity, is there any difference between ** and **/* in Pattern Sets? I always observe the latter convention for recursive pattern set and file set matching in my build files. Matt -Original Message- From: Stefan Bodewig [mailto:[EMAIL

build file gallery for new ant users?

2001-12-06 Thread Chappell, Simon P
Just a thought ... Is there such a thing (or should there be such a thing) as a gallery of sample build files for those new to ant? I found a few examples in articles and was able to jumpstart from that, but seeing some of the questions on this list, it seems that more real, genuine, working

Re: build file gallery for new ant users?

2001-12-06 Thread Franck Routier
Hi, I find Tomcat's example very useful and well documented as a jumpstart... http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html Of course, a sample gallery would be great ! Franck At 10:52 06.12.2001 -0600, you wrote: Just a thought ... Is there such a thing (or should

Re: Quoting issue

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: After changing my nshome to c\:/Progra~1/Netscape/Users/default in my user.properties , changed the property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my build.xml and using arg value instead this is what I get

Re: Missing top level dir in jar file

2001-12-06 Thread Roger Marlow
Try: jar jarfile=ajar.jar basedir=. includes=base/ this would only include the directory base and nothing else, it should probably be jar jarfile=ajar.jar basedir=. includes=base/**/ Unfortunately that just looks for the files under base. and recursively below

manifest class path

2001-12-06 Thread Nathan Coast
Hi, the jar task seems to be messing up the classpath entry in my manifest file (splits it onto two lines as below). Class-Path: lib/fop.zip lib/commons-collections.zip lib/commons-digest er.zip lib/commons-beanutils.zip lib/core.zip anyone else seeing this problem? is there a workaround?

RE: build file gallery for new ant users?

2001-12-06 Thread Chappell, Simon P
Yes, it certainly is a wonderful build file, but I suspect that a few smaller ones might be more helpful to a new user. I am teaching a friend of mine how to use ant and I think that a huge build file would overwhelm him right now. Would it just be more helpful to post commented build files to

RE: build file gallery for new ant users?

2001-12-06 Thread Ylan Segal
Search the archives.. there was some talk last week (or maybee a week before that, I don't know, times flies) about a project on sourceforge to do just that. Ylan. Is there such a thing (or should there be such a thing) as a gallery of sample build files for those new to ant? I found a few

Re: build file gallery for new ant users?

2001-12-06 Thread Dean Hiller
I think that would be great also. I have been using a generic build file that so far has worked on every project I have used it on and only change some property values and I am up and running in 5 seconds. Dean Chappell, Simon P wrote: Just a thought ... Is there such a thing (or should

Re: Quoting issue

2001-12-06 Thread Diane Holt
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: After changing my nshome to c\:/Progra~1/Netscape/Users/default in my user.properties , changed the property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my build.xml

RE: build file gallery for new ant users?

2001-12-06 Thread Chappell, Simon P
As I remember the exchange it was more about creating a generic build file. That might well be a worthy and useful project, but I'm more interested in short, specific, commented, build files that are suitable for beginners. -Original Message- From: Ylan Segal [mailto:[EMAIL PROTECTED]]

RE: manifest class path

2001-12-06 Thread Tobin Paterson
Hi, I found it too. Bug 4682 covers it. Use the zip task and create the META-INF dir by hand. Cheers Tobin. -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 09:20 To: Ant User (E-mail) Subject: manifest class path Hi,

Re: file permission rights under Windows

2001-12-06 Thread Steve Loughran
readers might be interested to know that a java api do this sort of thing was promised, then pulled, from java 1.4: http://developer.java.sun.com/developer/bugParade/bugs/4313887.html ...you are free to vote on the issue if you feel it is important, though Sun's development process is most

RE: Quoting issue

2001-12-06 Thread Shvartsburd, Feliks
Ed could you send me that file please. I would like to see what is going on there. Thanks --felix -Original Message- From: Ed Mangual [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:04 AM To: 'Ant Users List' Subject: RE: Quoting issue I still have the same problem

newbie issue

2001-12-06 Thread shawn
Hi just installed the downloaded and installed the binary version on my windows 2000 server box. I set my path to point to the corresponding bin directory and ANT_HOME environment variable to the ant root directory as directed. When I try to run ant -v at the command prompt it tells me that

Re: newbie issue

2001-12-06 Thread Magesh Umasankar
From: shawn [EMAIL PROTECTED] variable to the ant root directory as directed. When I try to run ant -v at the command prompt it tells me that ant is not recognized as an internal or external command, operable program or batch file. What is the value of your PATH variable?

Re: newbie issue

2001-12-06 Thread shawn
C:\ant\bootstrap\bin; This is after I compiled the source When I unzipped the binary version it was: C:\ant\bin; Shawn Hickey Chief Architect [EMAIL PROTECTED] Direct: 707-869-1108(Direct) 707-328-0714(mobile) Creative Explosions, Inc. (Corporate Office) 5770-A Croy Road, Morgan Hill,

Re: newbie issue

2001-12-06 Thread Magesh Umasankar
From: shawn [EMAIL PROTECTED] C:\ant\bootstrap\bin; Hmm... Try inserting debug messages in ant.bat. Also try 'CD'ing into the bin directory where ant.bat is and then run it. Though this shouldn't be needed, it will help you debug the problem better. Magesh -- To

Re: newbie issue

2001-12-06 Thread shawn
Thanks Magesh. It's strange. When a cd into the bin directory and run 'ant' or 'ant.bat' it tells me and was unexpected at this time. If I can Shawn Hickey Chief Architect [EMAIL PROTECTED] Direct: 707-869-1108(Direct) 707-328-0714(mobile) Creative Explosions, Inc. (Corporate Office) 5770-A

fork option for jar task?

2001-12-06 Thread Scott Ellsworth
Over on the cruise control list, it has been noted that Sun's tools are rather bad about releasing resources. As best as I can tell, jar stabbed me in the back this morning. There is a fork option for javac that seems to fix the problem for it, but there is no corresponding one for jar. Any

Re: newbie issue

2001-12-06 Thread Magesh Umasankar
I can't reproduce the exact problem as I don't run Win2K, but try removing the statements in ant.bat that begin with rem because of the and was unexpected at this time. that you receive. Also change the first line to @echo on, spice up the file with some echo statements to find out

Re: newbie issue

2001-12-06 Thread shawn
great. I'll try that. Thanks! Shawn Hickey Chief Architect [EMAIL PROTECTED] Direct: 707-869-1108(Direct) 707-328-0714(mobile) Creative Explosions, Inc. (Corporate Office) 5770-A Croy Road, Morgan Hill, CA 95037 ph: 408-782-6263 fax: 408-782-6253 ONIN24 Broadband Media Control Software Suite

Re: build file gallery for new ant users?

2001-12-06 Thread Rolf Katzenberger
Hello Simon, On Thu, 6 Dec 2001 11:38:40 -0600, Chappell, Simon P [EMAIL PROTECTED] wrote: As I remember the exchange it was more about creating a generic build file. That might well be a worthy and useful project, but I'm more interested in short, specific, commented, build files that are

Cannot user classic compiler...

2001-12-06 Thread Doug McNeil
Hi, I have a newbie question that I do not see on the FAQ. While trying to compile a java directory I receive: ...Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory. The environment is Solaris and jdk

Re: Cannot user classic compiler...

2001-12-06 Thread Sebastien Boving
Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar). Let me know if that solves it. Doug McNeil wrote: Hi, I have a newbie question that I do not see on the FAQ. While trying to compile a java directory I receive: ...Cannot use classic compiler, as it is not available A

RE: build file gallery for new ant users?

2001-12-06 Thread Ylan Segal
Rolf, I just downloaded the best practices from the mentioned link.. I like them!. I think this is a very good start and I have some input I want to pass to you as well (If you are interested, of course). Where is the conversation for this taking place? In this list? In the sourceforge forums?

RE: build file gallery for new ant users?

2001-12-06 Thread Chappell, Simon P
Wonderful. I'll take a closer look and get back to you. -Original Message- From: Rolf Katzenberger [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 2:06 PM To: Ant Users List Subject: Re: build file gallery for new ant users? Hello Simon, On Thu, 6 Dec 2001 11:38:40 -0600,

RE: copy task with excludes

2001-12-06 Thread Anthony Rodriguez
No it's not a case-sensitive issue. I am trying to copy from c:\ant_Build\StageTrustlib\ to the java dir in the cabinet. There are some class files and two dirs, com and test, under StageTrustlib. I want to copy everything under StageTrustlib excpet that test dir. As for the other copy tasks,

Re: Cannot user classic compiler...

2001-12-06 Thread Doug McNeil
Sebastien Boving wrote: Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar). Let me know if that solves it. Doug McNeil wrote: Hi, I have a newbie question that I do not see on the FAQ. While trying to compile a java directory I receive: ...Cannot use classic compiler, as it

Re: manifest class path

2001-12-06 Thread Peter Donald
On Fri, 7 Dec 2001 04:20, Nathan Coast wrote: Hi, the jar task seems to be messing up the classpath entry in my manifest file (splits it onto two lines as below). Class-Path: lib/fop.zip lib/commons-collections.zip lib/commons-digest er.zip lib/commons-beanutils.zip lib/core.zip anyone

Setting envrionment variables from within build.xml

2001-12-06 Thread Ron Coutts
I was wondering if there's any way in Ant to set an environment variable once before a series of exec tasks. Consider the snippet of build.xml below that is used to set the environment variable 'CL' before executing the command line compiler 'msdev.exe'. This XML works, but is an error prone

RE: manifest class path

2001-12-06 Thread Tobin Paterson
There's a problem somewhere because Jars created with it don't deploy in WLS6.1 -Original Message- From: Peter Donald [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 14:25 To: Ant Users List Subject: Re: manifest class path On Fri, 7 Dec 2001 04:20, Nathan Coast

Re: Setting envrionment variables from within build.xml

2001-12-06 Thread Jill Stephenson
How about looking at the problem another way and extracting out the common code into a subtarget to which you can pass a parameter using the antcall task. Something along the lines of the following ... target name=BuildEnvironmentPkg.make exec executable=msdev.exe env key=CL

RE: Setting envrionment variables from within build.xml

2001-12-06 Thread Ron Coutts
Thanks Jill, that was helpful. I had been wondering if there was a way for a target to call another target, besides using the 'depends' attribute. I did find a trick that uses a target's 'depends' to set properties before calling the task that executes 'msdev.exe'. Have a look at the chunk

RE: Setting envrionment variables from within build.xml

2001-12-06 Thread Ma, Jian
there's a target called antcall which does that. JianChuck Ma KMV LLC 1620 Montgomery St. Suite 140 San Francisco, CA 94111 415-352-1157(w) -Original Message- From: Ron Coutts [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 4:48 PM To: Ant Users List Subject: RE: Setting

Problem building Taglibs....

2001-12-06 Thread julien-martin
Hello, I am trying to build the Taglibs and I always get the following error: [style] java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory However, this class is not part of any of the xalan.jar distributions so why does it keep asking me for this class? The problem

Tar task weird behavior on Linux

2001-12-06 Thread Maciej Zawadzki
Hello, I am experiencing some weird behavior with the tar task on Linux. When I run an Ant script with the fragment below, the .gz file that is created contains a .tar[1] file rather than a .tar file. This only happens if I execute the ant script on Linux, it works fine on Windows 2000.

Re: newbie issue

2001-12-06 Thread Magesh Umasankar
Try running ant in debug mode: ant -debug converter It will help you understand what is going wrong. It seems like your build script is passing some arguments to the java task that java doesn't like. Cheers, Magesh - Original Message - From: shawn [EMAIL PROTECTED] To: Ant Users

RE: Missing top level dir in jar file

2001-12-06 Thread Diane Holt
--- Matt Lyon [EMAIL PROTECTED] wrote: A quick question on recursion. Just out of curiosity, is there any difference between ** and **/* in Pattern Sets? See the Example patterns table in the Directory-based Tasks section of the user manual. Diane = ([EMAIL PROTECTED])

Re: Cannot user classic compiler...

2001-12-06 Thread Doug McNeil
Doug McNeil wrote: Sebastien Boving wrote: Try to remove ant-1.4.jar from your jdk (jre/lib/ext/ant-*.jar). Let me know if that solves it. Doug McNeil wrote: Hi, I have a newbie question that I do not see on the FAQ. While trying to compile a java directory I receive: ...Cannot

Re: fork option for jar task?

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Scott Ellsworth [EMAIL PROTECTED] wrote: Over on the cruise control list, it has been noted that Sun's tools are rather bad about releasing resources. As best as I can tell, jar stabbed me in the back this morning. We don't use command line jar for the jar task, but a

Re: regexp file mapper question - inline replacing

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Tim Dawson [EMAIL PROTECTED] wrote: Or is the capability I'm looking for simply not present? I'm afraid the answer is yes. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Problem building Taglibs....

2001-12-06 Thread Stefan Bodewig
On Fri, 7 Dec 2001, [EMAIL PROTECTED] wrote: However, this class is not part of any of the xalan.jar distributions so why does it keep asking me for this class? Did you tell it to use Xalan? If you are using Xalan-2, you should set the processor to trax, not xalan. Stefan -- To

How can you MAP more than once !

2001-12-06 Thread Hannes van der Merwe
I'm using the pathconvert target to map substrings in a path to other substrings, of course. How can I execute one mapping more than once or in other words: If I want to replace let say ':' with ' ', how can I map it for every occurence of ':' ? Cheers. Hannes van der Merwe Momentum Employment