Andrew C. Oliver wrote: >Hi Glen, Ken specifically and All -- > >I'm trying to move the package for the RecordGenerator and come up with >some kind of generic record generation system. In doing this I >discovered the record-generator is no longer a target in the build >*gasp*. I discovered its declaration is in a directory called >tools/targets/deprecated/dev.xtarget or something to that effect. > >I copied the target for generate-records from there and recompiled the >sucker and tried running it and I got some XML errors. So I copied >tools/centipede/lib/x* into lib/common and ran it again.. I got farther >but still no dice: > >Buildfile: build.xml > >init: > [echo] >-------------------------------------------------------------- > [echo] Setting up customized ant tasks... > [echo] ... done. > [echo] >-------------------------------------------------------------- > [echo] Jakarta POI >[2001-2002] > [echo] >-------------------------------------------------------------- > [echo] Building with Ant version 1.4.1 compiled on October 11 2001 > [echo] using build file >/mnt/u02/home/andy/jakarta/jakarta-poi/build.xml > [echo] >-------------------------------------------------------------- > [delete] Deleting: >/mnt/u02/home/andy/jakarta/jakarta-poi/build/jakarta-poi/build-log.xml > >prepare: > >generate-records: > [java] > [java] (Location of error unknown)XSLT Error >(javax.xml.transform.TransformerException): >java.lang.NoSuchMethodException: For extension function, could not find >method >org.apache.xpath.axes.AttributeIterator.getType([ExpressionContext,] >#NODESET, #NUMBER). > [java] Java Result: -1 > >BUILD SUCCESSFUL > >Total time: 5 seconds > >questions: > >What other dependency am I missing? Ken, can we come up with a system >of updating to the latest centipede w/o having to edit our project >specific targets? That seems like something that would help centipede >as well. Next, anyone opposed to a lib/dev or something that will let >us put "dev" package dependencies in it? >
It seems to me all we'd need to do with centipede is to take the project.xtarget and the project-info.xml files (I think those are the only prime candidates for being overwritten by an active centipede-enabled project, right, Ken?) and move them to a special "templates" directory or some such name. Then, provide first-time install scripts to move them to the right places in the build IF they don't already exist (and if they do, ask the installer whether he/she wants to overwrite the existing files?) > > >Lastly, I think dev packages should be distributed with the source if >they are not already. It is presumed that you are interested in POI >development or at least an advanced user that might benefit from POI >development tools if you've got the source. > +1! > > >As always, thanks! > >-Andy >
