RE: conditional testing based on compiling

2003-10-03 Thread Anderson, Kajsa
Looking at your build.xml - the reason your tests are being run when you deploy is that deploy depends on jar, and jar depends on test... So the sequence for deploy is something like: [init] [compile] (because test depends on compile) [test] (because jar depends on test) [jar] (because deploy depen

RE: conditional testing based on compiling

2003-10-03 Thread Dan Perik
I think the "uptodate" target is what I need. I think I'll have that set a property whether anything needs compiled or not. I can use that same property to determine whether the tests need rerun, and whether the jar file needs rebuilt. Thanks! FYI my build.xml file is something like this:

RE: conditional testing based on compiling

2003-10-03 Thread Anderson, Kajsa
What are the other dependencies of "deploy"? From your description, it sounds like your build file looks something like this: ... ... ... If that's the case, and "junit" runs when you execute "deploy", it sounds like something else that "deploy" depends on has a dependency on "junit". You might

conditional testing based on compiling

2003-10-03 Thread Dan Perik
Hello, I have a build file which uses JUnit to run tests on my code after it compiles (it depends on "compile"). The build file also has a deploy target, etc., which also depends on "compile". These unit test are time consuming. There are times when it doesn't need to "compile" to "deploy". B

Re: Adding absolute filenames to a jar

2003-10-03 Thread Ondrej Lhotak
Thanks, this is exactly what I was looking for, but didn't find myself because the file attribute for fileset is not listed at in the manual at http://ant.apache.org/manual/CoreTypes/fileset.html Ondrej On Thu, Oct 02, 2003 at 05:22:21AM -0400, Erik Hatcher wrote: > Look at the file="..." attribu

Newbie question.

2003-10-03 Thread Jesús Gutiérrez Ramírez
Hi, I'm new using tomcat (over windows xp) and ANT, I was doing the example exercise http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html, using the files included. When I want to install my app on the tomcat server using the ANT INSTALL command I receive the next mes

javadoc task error

2003-10-03 Thread Vikas Phonsa
I'm using the following target to generate javadocs. As you can see, I'm first printing out all the properties that I'm supplying to the javadoc task.All values print fine and are valid directories and packages.But I get the error message: " No source files and no packages have been specified." An

Re: AW: Help Needed

2003-10-03 Thread Rajesh Krishnaswamy
Thanks Antoine, But I wasnt running a script task. I had problem with a preinstalled java version on the Linux machine and unable to specify the classpath for tools.jar. Now I am using the easier way of installing new java version and specifying classpath to its tools.jar Rajesh. --- Antoine_L

Re: Help Needed: Unable to build!

2003-10-03 Thread Rajesh Krishnaswamy
Hey Shawn, Thanks for the info. I am using one of my schools Linux system which has Java preinstalled in it. Though I could find java in /usr/bin I am still unable to find where tools.jar would be! Now I have a new java version installed and set the classpath as you said, it works fine. Rajesh.