> -----Original Message----- > From: Brian Millett [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 3:11 PM > To: [EMAIL PROTECTED] > Subject: Re: cocoon with j2sdk 1.5b? > > > On Mon, 2004-02-16 at 18:55 -0600, Antonio Gallardo wrote: > > > > This is correct your current version was compiled for 1.4 and since > > 1.5 is still Beta maybe there are some issues. > > > > The problems with compiling are related to the VM checking inside > > Cocoon. I think if you want to build a test You will need to change > > some files in cocoon-2.1/tools/targets dir. See: init-build.xml on > > line 16: > > > > <!-- Detecting the current jvm --> > > <condition property="target.vm" value="1.4"> > > <equals arg1="1.4" arg2="${ant.java.version}"/> > > </condition> > > <condition property="target.vm" value="1.3"> > > <not> > > <equals arg1="1.4" arg2="${ant.java.version}"/> > > </not> > > </condition> > > > > And changes this code to work with 1.5 > > > > AFAIK one of the improvements in Ant 1.6.1 (currently in Cocoon > > 2.1.5-dev > > CVS) is that can work with 1.5. Almost this is said in the > release notes > > :-D > > > > Hope this would help and plase comment about your archievements ;-) > Ok, did this: > <!-- Detecting the current jvm --> > <condition property="target.vm" value="1.5"> > <equals arg1="1.5" arg2="${ant.java.version}"/> > </condition> > <condition property="target.vm" value="1.4"> > <not> > <equals arg1="1.5" arg2="${ant.java.version}"/> > </not> > </condition> > <condition property="target.vm" value="1.3"> > <not> > <equals arg1="1.4" arg2="${ant.java.version}"/> > </not> > </condition> > > and then got this: > > localhost: ./build.sh webapp > > Apache Cocoon Build System > -------------------------- > Buildfile: build.xml > > prepare: > ====================================================================== > Apache Cocoon 2.1.5-dev [1999-2004] > ====================================================================== > Building with Apache Ant version 1.6.1 compiled on February 12 2004 > ---------------------------------------------------------------------- > Using build file > /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build. > xml > ---------------------------------------------------------------------- > Compiler options: > - debug ......... [on] > - optimize ...... [on] > - deprecation ... [off] > ====================================================================== > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/ > cocoon-2.1.5-dev > > compile-core: > Copying 39 files to /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/ > build/cocoon-2.1.5-dev/classes > Copied 77 empty directories to 41 empty directories under > /home/bpm/ > compile_area/cvs_xml-cocoon/cocoon-2.1/build/cocoon-2.1.5-dev/classes > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/ > cocoon-2.1.5-dev/mocks > Compiling 1 source file to > /home/bpm/compile_area/cvs_xml-cocoon/cocoon- > 2.1/build/cocoon-2.1.5-dev/mocks > Compiling 561 source files to /home/bpm/compile_area/cvs_xml-cocoon/ > cocoon-2.1/build/cocoon-2.1.5-dev/classes > > compile-deprecated: > Created dir: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/ > cocoon-2.1.5-dev/deprecated > Processing: /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/src/ > deprecated/conf/deprecated.xroles > Writing: > /home/bpm/compile_area/cvs_xml-cocoon/cocoon-2.1/build/cocoon- > 2.1.5-dev/classes/org/apache/cocoon/cocoon.roles > > BUILD FAILED > java.lang.ExceptionInInitializerError > > Total time: 18 seconds > > > Is there a way to see what file it was compiling when it died? > > Thanks.
Try to start Ant with the "verbose" parameter: ant -verbose But usually Ant shows the complete error message of build failures. -- Reinhard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
