Re: [build]fail message
You are so nice. :) And i have tried "ant run-tester" I find it just call java to run the class.And it's Ok. I have also tried the "ant test". It seems that it is based unit test. But it fails and i then turn off the flag to make it run regardless of fail. I find there are only three testing classes and a few testcases. Need any configuration to make the unit test success? And what's the difference between "ant run-tester" and "ant test"? Thanks again. BTW, when i run "ant test", it will fail for package missing. So i add the revelant *jar files from binary into the "javac"'s classpath parameter. It works, but of course it is the the right way :) Pls correct me. I guess maybe it results from the missing of some properties setting. 2006/10/24, Yoav Shapira <[EMAIL PROTECTED]>: Hi, On 10/22/06, Sean Qiu <[EMAIL PROTECTED]> wrote: > Required by my project, i have to put ecj*.jar in ${ant_home}/lib, i just > rename it to avoid loading it. OK, but just so you know, that's a terrible requirement by your project that will cause you many headaches. You should really try to get your project to correct this. > Is there any docs to indicate how to test the src???Thanks for your help. From the top-level build file (the one in build/build.xml), run "ant clean run-tester" Yoav ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sean Qiu
[build]fail message
) [jasper2] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) BUILD FAILED /home/qbit/harmony/workspace/tomcat2/build.xml:39: The following error occurred while executing this line: /home/qbit/harmony/workspace/tomcat2/build/build.xml:830: The following error occurred while executing this line: /home/qbit/harmony/workspace/tomcat2/build/build.xml:446: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems ()[Lorg/eclipse/jdt/core/compiler/IProblem; -- Sean Qiu
Re: [build]fail message
For the sake of my unstable network status, i could not download the required components at first. So i had to download them by hand and rename them as required.So it failed. I set a proxy and it works well. :) Thanks you all. Now i am confused by the catalina/build.xml Do I have to add the build.properties by myself ? 2006/10/19, Remy Maucherat <[EMAIL PROTECTED]>: Yoav Shapira wrote: > You have the wrong version of the Eclipse JDT jar on your classpath. It may be a good idea to package rename JDT as well (evil grin). Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sean Qiu
Re: [build]fail message
I find if run ant more than one time, it will represent "Build Success" sometimes but failed in fact. What is the classpath loading sequence? Ant do have download org.apache.jdt.* in /usr/share/java/eclipse/plugins, and in my ${eclipse_home}/plugins it contains higher version. And the build.xml say, 3.1.2 or higher version is Ok. So i think the seqence won't make any difference. It is strange that it fails for java.lang.NoSuchMethodError. Any suggestion? 2006/10/20, Sean Qiu <[EMAIL PROTECTED]>: For the sake of my unstable network status, i could not download the required components at first. So i had to download them by hand and rename them as required.So it failed. I set a proxy and it works well. :) Thanks you all. Now i am confused by the catalina/build.xml Do I have to add the build.properties by myself ? 2006/10/19, Remy Maucherat <[EMAIL PROTECTED] >: > > Yoav Shapira wrote: > > You have the wrong version of the Eclipse JDT jar on your classpath. > > It may be a good idea to package rename JDT as well (evil grin). > > Rémy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Sean Qiu -- Sean Qiu
[test]-test fails
In the directory of ${source-dir}/build when input : # ant test It will fail because cann't find org.apache.tomcat.jni.* classes both in ubuntu and in windows xp (Is this the way to run the unit test for Tomcat? If not , then how to run the unit test?) == Buildfile: build.xml test: [echo] Target: Catalina - Test ... test: [echo] Target: Catalina - Test ... flags: flags.display: [echo] --- Build environment for Catalina --- [echo] If ${property_name} is displayed, then the property is not set) [echo] --- Build options --- [echo] full.dist=${full.dist} [echo] build.sysclasspath=${build.sysclasspath} [echo] compile.debug=on [echo] compile.deprecation=off [echo] compile.optimize=off [echo] --- Ant Flags --- [echo]
Re: [build]fail message
Thanks.I have adderssed the issue. Required by my project, i have to put ecj*.jar in ${ant_home}/lib, i just rename it to avoid loading it. But ant will load all the classes in lib regardless of the jar's name. So it conflicted with the jdt compiler. Is there any docs to indicate how to test the src???Thanks for your help. 2006/10/20, Yoav Shapira <[EMAIL PROTECTED]>: Hi, You shouldn't be invoking catalina/build.xml directly. The top-level build.xml, the one you want, is in build/build.xml. It will call catalina/build.xml and others (there are at least 5 build.xml files involved in a complete Tomcat build) as needed, setting up classpaths and such. If you want to see things like the classpath order, simply run Ant with its debug and/or verbos flags. Yoav On 10/19/06, Sean Qiu <[EMAIL PROTECTED]> wrote: > For the sake of my unstable network status, i could not download the > required components at first. > So i had to download them by hand and rename them as required.So it failed. > I set a proxy and it works well. :) Thanks you all. > > Now i am confused by the catalina/build.xml > Do I have to add the build.properties by myself ? > > 2006/10/19, Remy Maucherat <[EMAIL PROTECTED]>: > > > > Yoav Shapira wrote: > > > You have the wrong version of the Eclipse JDT jar on your classpath. > > > > It may be a good idea to package rename JDT as well (evil grin). > > > > Rémy > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Sean Qiu > > ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sean Qiu