ant-contrib requires ant.jar but including it breaks javac

2006-02-17 Thread Mehdi.Rakhshani
I started using foreach from ant-contrib. It seems to require ant.jar to be in classpath. However, when I put it in the classpath, ant cannot compile any java code (I can manually compile of course and it works fine, removing foreach and compiling java code through ant works fine also). C

RE: ant-contrib requires ant.jar but including it breaks javac

2006-02-17 Thread Mehdi.Rakhshani
By copying ant-contrib.jar to ANT_HOME and removing it (and ant.jar) from classpath the problem went away. Thanks for the suggestion. Any idea why having it the other way causes a problem though? Thanks, Mehdi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

How to access command line arguments passed to Ant. How to search Ant manual.

2006-03-06 Thread Mehdi.Rakhshani
I went through as much of the Ant manual as I could and did not find any information that tells me how to use a command line argument that was passed to Ant (I am sure it is there and I missed it). 1- Is there a way to search the Ant manual? 2- If I call Ant with "target argumen

RE: How to access command line arguments passed to Ant. How to search Ant manual

2006-03-08 Thread Mehdi.Rakhshani
I have a .bat file that starts Ant with the parameters that the user specifies. The reason I want to use the argument instead of using -D is that different targets have different parameters passed to them. For example, if I am building my test tool, the second parameter should be the server name, i

RE: Need to change .xsd file name extension to .map

2006-03-13 Thread Mehdi.Rakhshani
Found the answer: mapper -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 1:52 PM To: user@ant.apache.org Subject: Need to change .xsd file name extension to .map PathConvert seems to work only on the file path and not the name and extensi

Need to change .xsd file name extension to .map

2006-03-13 Thread Mehdi.Rakhshani
PathConvert seems to work only on the file path and not the name and extension. Basename suffix=".xsd" let's me remove the .xsd extension of each file, but how do I add .map to each one? Note that I am not actually renaming files, I want a property or file set or pattern set with the file names wit

Dependset not being able to use file names generated by filelist and pathconvert

2006-03-21 Thread Mehdi.Rakhshani
Sorry for the long append. In order to avoid listing file names multiple times I create a list of file names using a property and use filelist and pathconvert to create new lists. However, dependset does not seem to be able to use the result. Below is a modified copy of the relevant parts o