It would help to actually send the new file as well... josh On Thu, 2001-08-23 at 18:57, josh lucas wrote: > So, I have been trying to make sense of the current Alexandria proper > code base and trust me, it wasn't easy. So, I've written a new JxrTask > which doesn't have anything to do with Castor-related API's or xml > description of project files. I realize this isn't exactly compatible > with the existing AlexandriaTask but I think that's ok. > > Unfortunately, some of my code changes will break what is there. I > don't really know what to do about this because Alexandria itself has > been dead for quite a bit and the only 'stuff' going on right now is > Gump. Because of that, I'm not sure how to handle this or actually who > I'm really sending this into since I've sent in other Alexandria-related > patches which haven't been committed. I have a feeling that Sam doesn't > feel comfortable committing there and that's fine. So what do we do ? > > Anyways, here are my patches, including a patch to the build.xml to show > how easy running the task is. > > One caveat of the task is that it is made more for individual projects > to run as opposed to a large group of projects. The reason for this is > because now that the xml files are taken out of play, we don't have > access to the src directories of all the projects. I don't necessarily > think that it is a bad thing since you could just output all of the html > files to a central location and have the same effect. > > > josh > > > --=-L3lTi4R2GXKGGk/drkY9 > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED]
/* * * Copyright (c) 1998 The Java Apache Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. Every modification must be notified to the Java Apache Project * and redistribution of the modified code without prior notification * is not permitted in any form. * * 4. All advertising materials mentioning features or use of this * software must display the following acknowledgment: * "This product includes software developed by the Java Apache Project * (http://java.apache.org/)." * * 5. The names "Alexandria", "Apache Alexandria" and "Apache Alexandria * Project" must not be used to endorse or promote products * derived from this software without prior written permission. * * 6. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by the Java Apache Project * (http://java.apache.org/)." * * THIS SOFTWARE IS PROVIDED BY THE JAVA APACHE PROJECT "AS IS" AND ANY * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JAVA APACHE PROJECT OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * License version 1.0 * */ package org.apache.alexandria.jxr; import org.apache.alexandria.jxr.pacman.*; //Ant imports import org.apache.tools.ant.*; import org.apache.tools.ant.taskdefs.*; /** * * @author <a href="mailto:[EMAIL PROTECTED]">Josh Lucas</a> * An Ant task which will create an html-based version of Java source code */ public class JxrTask extends Task { /** * the starting directory housing the .java files */ private String startDir; /** * the destination directory */ private String destDir; /** * the location of the folder.gif */ private String imageFolder; /** * the location of the file.gif */ private String imageFile; public void execute() throws BuildException { try { PackageManager pkgmgr = PackageManager.getInstance(); pkgmgr.setTask( this ); pkgmgr.process( startDir ); new JXR( startDir, destDir); new DirectoryIndexer(destDir, destDir, imageFolder, imageFile, DirectoryIndexer.MODE_JAVA); } catch (Exception ex) { throw new BuildException(ex); } } public void setImageFile( String imageFile ) { this.imageFile = imageFile; } public void setImageFolder( String imageFolder ) { this.imageFolder = imageFolder; } public void setStartDir( String startDir ) { this.startDir = startDir; } public void setDestDir( String destDir ) { this.destDir = destDir; } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
