Re: Problem with junit in ant with jdk 1.4.1

2002-12-11 Thread Stefan Bodewig
On 09 Dec 2002, Stefan Bodewig [EMAIL PROTECTED] wrote: 1.5.2 might be a different issue. I'll look into porting this specific fix over to the 1.5 branch - unless it is too big, we may get it out faster that way. I've done so. A current build of the 1.5 branch can be found at

Tools for code Java code reporting

2002-12-11 Thread Suresh Babu Koya
Are there any any tools(Ant tasks) already developed for generating reports for Java code under open source. /Suresh

Scripting with global collection of sub-projects basedirs

2002-12-11 Thread Kyrre Lugg
I wish to create a collection of sub-project basedirs (instead of separate propertiesd). Then I wish to iterate through that collection and call a specific target of the sub-projects. The collection should be globally available in the top level build file. I suppose I must use the script task,

Re: AW: Command line arguements..

2002-12-11 Thread Ram Krish
Hi Jan Materne, i successfully built my project using the BT batch file whatever you said.However i dont understand how to do same thing with the XML buildfile.Please explain me in detail.. Thanks, Ram --- [EMAIL PROTECTED] wrote: project name=master target name=Project1

AW: AW: Command line arguements..

2002-12-11 Thread Jan . Materne
The buildfile does the same as the batch file. But while you can give targets to the batchfile like build.bat Project1 build deploy this canĀ“t be done in buildfile, because there is not target 'build'. That is defined in project1.xml. If your subproject have both 'build' and 'deploy' targets

VssCreate does not build project recursively.

2002-12-11 Thread Yaron Ruckenstein
Hi, Is there a way to make the VssCreate task to create parent directories when necessary ? (like the mkdir task does). If not, It can be done by breaking the original path, and build it project by project. Is there a natural way to do it in Ant ? Thanks, Yaron -- To unsubscribe, e-mail:

RE: Problem with junit in ant with jdk 1.4.1

2002-12-11 Thread Dominique Devienne
Hi Stefan, When I follow that link, the HTML page that lists the directory truncates all filenames so they all end up with the same prefix. I have to hover all links and look at the actual link in the status bar the bottom of IE... Maybe it's just my browser and/or medium size font setting, but

RE: Scripting with global collection of sub-projects basedirs

2002-12-11 Thread Dominique Devienne
Maybe you should consider the subant task posted in BugZilla. Sounds like it does what you want already. --DD -Original Message- From: Kyrre Lugg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 5:54 AM To: [EMAIL PROTECTED] Subject: Scripting with global collection of

Re: Problem with junit in ant with jdk 1.4.1

2002-12-11 Thread Stefan Bodewig
On Wed, 11 Dec 2002, Dominique Devienne [EMAIL PROTECTED] wrote: When I follow that link, the HTML page that lists the directory truncates all filenames so they all end up with the same prefix. True. I don't think I know enough .htaccess magic to fix it, though. Stefan -- To unsubscribe,

Efficient method to build JARs

2002-12-11 Thread Aaron Kelley
Is there an efficient way to build JARs (so it loads all the dependencies and not every class file)? I see that there is a ClassFileSet, but it cannot pull required classes from JAR files. Also, I could not really get it to work and there seems to be a lack of documentation for it. Secondly, I

RE: Efficient method to build JARs

2002-12-11 Thread Dominique Devienne
I fail to see how any tool could *guess* which classes you'll dynamically load from your code, except if you have a very controlled way of specifying the list of such classes (their names I guess). Packaging more classes than needed is better than not finding them at runtime once deployed. Or I'm

Re: Tools for code Java code reporting

2002-12-11 Thread Karl-Martin Skontorp
* Suresh Babu Koya ([EMAIL PROTECTED]) wrote: Are there any any tools(Ant tasks) already developed for generating reports for Java code under open source. Have you seen: - JDepend (http://www.clarkware.com/software/JDepend.html) - JavaNCSS (http://www.kclee.com/clemens/java/javancss/) -

RE: Efficient method to build JARs

2002-12-11 Thread Aaron Kelley
I don't need any tool to guess which classes I am loading dynamically. I want to define a fileset of these classes (so include all the classes in folderX as my root classes) and then have the tool load all of their dependencies (very similar to what ClassFileSet does, but I need it to actually

RE: Efficient method to build JARs

2002-12-11 Thread Dominique Devienne
Then unjar all your dependent JARs somewhere, and make classfileset work for you, or file a bug report in BugZilla if you think you've found a bug. --DD PS: Off topic, but is it OK to include part of projects classes in your own JARs, when these other projects are Open Source released under

RE: Efficient method to build JARs

2002-12-11 Thread Aaron Kelley
That's what I thought it might some down to. I was just wondering if there was a better tool out there or more documentation on the ClassFileSet. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 9:30 AM To: 'Ant Users List'

Re: Efficient method to build JARs

2002-12-11 Thread Stefan Bodewig
On Wed, 11 Dec 2002, Dominique Devienne [EMAIL PROTECTED] wrote: Off topic, but is it OK to include part of projects classes in your own JARs, when these other projects are Open Source released under various licenses? Depends on the license. Does the Apache or Jakarta license prevent that?

RE: file-set in zip has a lowercase bug?

2002-12-11 Thread Jeff Barrett
Winzip does indeed lie. Sorry about the confusion. It was in the faq and everything... dangit. -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:03 PM To: [EMAIL PROTECTED] Subject: Re: file-set in zip has a lowercase bug? Probably

uptodate question

2002-12-11 Thread Michael Nascimento Santos
Hi, I want to do a few things if my backup dir content is older than my source dir content. I am trying to use the uptodate task, with no success, like this: target name=check depends=init uptodate property=srcs.changed srcfiles dir=${basedir} / mapper type=glob

New User? -- Ant doesn't run -- Appears that OS is not finding or just not starting ant.sh from /etc/profile.d --I must be missing something simple?

2002-12-11 Thread H. Whitney Stewart
Server Config: Running on Cobalt RAQ3 also running tomcat 4.1.12, jdk 1.3.1 Installed gz file as outlined in MySQL and JSP Web Applications appendix A. 1st logged in as root 2nd copied jakarta-ant-1.5.1-bin.tar.gz to /tmp 3rd gunzip -c

RE: uptodate question

2002-12-11 Thread Dominique Devienne
I'm not too sure I follow your backup thing going on, but if your ${src} and ${bkp} variable also contain ${basedir} as a suffix, the regex won't match. Mappers are fed relative paths compared to your ${basedir} I think. Try taking this info into account and that may solve your problem. --DD

style task InvocationTargetException

2002-12-11 Thread Sonnek, Ryan
does anyone know what this error message means? using ant 1.5.1 w/ xalan2.4.1 [style] C:/brown_dev/srcroot/bcs/doc/checkstyle/checkstyle.xsl:272:65: Warning! java.lang.reflect.InvocationTargetException Cause: java.lang.reflect.InvocationTargetException Ryan -- To unsubscribe, e-mail:

RE: Where to put ant.jar?

2002-12-11 Thread Peter Lee
On 9 Dec 2002 at 14:07, Dominique Devienne wrote: Ant requires the JDK's tools.jar (1.2+) on the classpath for all tasks that wrap JDK tools (javac/javah/etc...). ant_home\bin\ant.{bat|sh} normally takes care of that. If you start Ant yourself, read the doc on how to start it yourself. I

RE: Where to put ant.jar?

2002-12-11 Thread Peter Lee
On 9 Dec 2002 at 14:07, Dominique Devienne wrote: Ant requires the JDK's tools.jar (1.2+) on the classpath for all tasks that wrap JDK tools (javac/javah/etc...). ant_home\bin\ant.{bat|sh} normally takes care of that. If you start Ant yourself, read the doc on how to start it yourself. I

Re: style task InvocationTargetException

2002-12-11 Thread Jacob Kjome
Hello Ryan, You might need to fork the VM. Is there an option for forking in the style task? If so, use it and see what happens. Jake Wednesday, December 11, 2002, 1:33:04 PM, you wrote: SR does anyone know what this error message means? SR using ant 1.5.1 w/ xalan2.4.1 SR [style]

RE: style task InvocationTargetException

2002-12-11 Thread Sonnek, Ryan
can't fork the VM with style. i've looked through the mail archive, and went through the FAQ on using the JUnit and style task w/o having optional.jar in ANT_HOME. i've had junit working fine for monthes this way, and now i'd like to add style for checkstyle. after going through the docs again,

RE: Where to put ant.jar?

2002-12-11 Thread Dominique Devienne
I recommend you read Ted Neward's white paper on understanding Class.forName() for the details of class loading in Java. Very enlightening. --DD -Original Message- From: Peter Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 1:43 PM To: Ant Users List Subject: RE: Where

Re: New User? -- Ant doesn't run -- Appears that OS is not findingor just not starting ant.sh from /etc/profile.d --I must be missing somethingsimple?

2002-12-11 Thread Conor MacNeill
H. Whitney Stewart wrote: Can not run ant from command prompt via telnet logged in as root When you say can not run ant, what exactly do you mean? What output do you see? Is the ant command not found, or does it run and fail? Also, I'd suggest not running Ant as root. Can someone please

Set a property based on directory exists

2002-12-11 Thread Nathan Christiansen
I am looking for a way to set a property based on wether a specified directory exists. Psudeocode: [If the directory /home/httpd/html exists] property name=in.test.environment value=true / /[If statement] -- Nathan Christiansen Morinda, Inc. http://www.tahitiannoni.com -- To

RE: Set a property based on directory exists

2002-12-11 Thread Dominique Devienne
available property=in.test.environment file=/home/httpd/html type=dir / -Original Message- From: Nathan Christiansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 5:07 PM To: Ant Users List Subject: Set a property based on directory exists I am

RE: Set a property based on directory exists

2002-12-11 Thread Grace Li
try this available file=/home/httpd/html type=dir property=in.test.environment/ -Original Message- From: Nathan Christiansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 6:07 PM To: Ant Users List Subject: Set a property based on directory exists I am looking for a way

RE: Set a property based on directory exists

2002-12-11 Thread Nathan Christiansen
Oh, that is what the available task is about. (How embarrassing.) Thanks. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 4:09 PM To: 'Ant Users List' Subject: RE: Set a property based on directory exists available

Re: uptodate question

2002-12-11 Thread Michael Santos
Dominique, Thanx for your answer. Let me explain my backup control logic a littlebit: I always copy all my source files to my ${bkp} dir if any of them has been touched. Before I do that, I move my old backup files to a folder named ${bkp}${DSTAMP}${TSTAMP}. So, my ${bkp} folder contains only

re[2]: New User? -- Ant doesn't run -- Appears that OS is not finding or just not starting ant.sh from /etc/profile.d --I must be missing something simple?

2002-12-11 Thread H Whitney Stewart
Conner Thank you for your quick reply. I apologize that I did not give you enough information regarding can not run It appears that the OS does not find ant bash: ant: command not found I may be asking the question in the wrong place. If so I am sorry. If you could direct me to the

Re: New User? -- Ant doesn't run

2002-12-11 Thread Conor MacNeill
H Whitney Stewart wrote: Conner Thank you for your quick reply. I apologize that I did not give you enough information regarding can not run It appears that the OS does not find ant bash: ant: command not found I may be asking the question in the wrong place. If so I am sorry. If you

Re: style task InvocationTargetException

2002-12-11 Thread Conor MacNeill
Sonnek, Ryan wrote: does anyone know what this error message means? using ant 1.5.1 w/ xalan2.4.1 [style] C:/brown_dev/srcroot/bcs/doc/checkstyle/checkstyle.xsl:272:65: Warning! java.lang.reflect.InvocationTargetException Cause: java.lang.reflect.InvocationTargetException Ryan Have you run

XDoclet error

2002-12-11 Thread Michael Santos
Hi again, I am trying to run a target in a build file that uses the ejbdoclet task from XDoclet. No matter what I do - change the classpath, JDK version etc. -, I always get: [ejbdoclet] Generating Javadoc [ejbdoclet] Javadoc execution [ejbdoclet] java.lang.VerifyError: (class:

Re: uptodate question

2002-12-11 Thread Stefan Bodewig
On Wed, 11 Dec 2002, Dominique Devienne [EMAIL PROTECTED] wrote: Mappers are fed relative paths compared to your ${basedir} I think. No, to the dir attribute of the fileset. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: uptodate question

2002-12-11 Thread Stefan Bodewig
On Wed, 11 Dec 2002, Michael Nascimento Santos [EMAIL PROTECTED] wrote: srcfiles dir=${basedir} / mapper type=glob from=${src}\*.java to=${bkp}\*.java / Does srcfiles dir=${src} / mapper type=glob from=*.java to=${bkp}\*.java / work? Stefan -- To unsubscribe,

Re: uptodate question

2002-12-11 Thread Stefan Bodewig
On 12 Dec 2002, Stefan Bodewig [EMAIL PROTECTED] wrote: On Wed, 11 Dec 2002, Dominique Devienne [EMAIL PROTECTED] wrote: Mappers are fed relative paths compared to your ${basedir} I think. No, to the dir attribute of the fileset. which has been ${basedir} in the case at hand, sorry for

question on replace

2002-12-11 Thread Mylene Reiners
Hi, To replace all instances of e.g. adapter-instance in a directory I use: replace dir=${adapterdir}/adapter token=adapter-instance value=${adapter_instance}/ Now I have an XML file from where I want to get the values. something like: XML: foobar/foo replace