nicolaken    2002/09/02 09:30:27

  Added:       viprom   README.txt WARNING.txt
               viprom/src/java/org/apache/alexandria/viprom Viprom.java
                        VipromResolver.java VipromSet.java
  Log:
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
  
     It's checked in to show what the Viprom is and to see the initial classes.
     Work on it is going on...
  
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
  
  This is the Alexandria sub-project that deals with the ViProM,
  The Virtual Project Model.
  
  It makes it possible to use xpath syntax to the globally merged
  project model.
  
  It's based on the ant/proposals/embed features.
  
  Revision  Changes    Path
  1.1                  jakarta-alexandria/viprom/README.txt
  
  Index: README.txt
  ===================================================================
  This is the Alexandria sub-project that deals with the ViProM,
  The Virtual Project Model.
  
  It makes it possible to use xpath syntax to the globally merged
  project model.
  
  It's based on the ant/proposals/embed features.
  
  
  
  1.1                  jakarta-alexandria/viprom/WARNING.txt
  
  Index: WARNING.txt
  ===================================================================
  *****************************  W A R N I N G  **********************************
  
  
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
     
     It's checked in to show what the Viprom is and to see the initial classes.
     Work on it is going on...   
     
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
     THIS CODE DOESN'T COMPILE.              THIS CODE DOESN'T COMPILE.
  
  
  *****************************  W A R N I N G  **********************************
  *****************************  W A R N I N G  **********************************
  
    Some user accessible points in this software package should be considered
    ALPHA. This means that the developer team is not investing 
    _any_ effort AT THIS TIME to make the CVS code work releases for these parts.
    This software will continue to be released as ALPHA for developers 
    until its code, schemas, and APIs are considered stable.
    
    The development team understands the importance of reliable
    software as well protecting user investments through the creation of
    a solid development platform that doesn't change. On the other hand, 
    the project is a pioneer in many fields. Most of the technologies 
    it uses are at a "working draft" phase only, even partially during BETA 
    stages, if the BETA cycle has proved it necessary.
    Thus, reliability cannot be guaranteed before the software achieves 
    its FINAL status.
    
    Until then, no effort will be provided to guarantee functionality
    for any parts considered ALPHA or BETA.
    
    You have been warned.
  
  *****************************  W A R N I N G  **********************************
  
  
  
  1.1                  
jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/Viprom.java
  
  Index: Viprom.java
  ===================================================================
  /*
   * $Header: 
/home/cvs/jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/Viprom.java,v
 1.1 2002/09/02 16:30:27 nicolaken Exp $
   * $Revision: 1.1 $
   * $Date: 2002/09/02 16:30:27 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  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. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Alexandria", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``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 APACHE SOFTWARE FOUNDATION 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.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.alexandria.viprom;
  
  import org.apache.tools.ant.*;
  import org.apache.tools.ant.taskdefs.optional.JXPath;
  import org.apache.tools.ant.types.*;
  
  import java.io.*;
  import java.util.*;
  
  import org.apache.commons.jxpath.*;
  
  /**
   *  Enable Viprom using JXPath dynamic properties
   *
   * @author Nicola Ken Barozzi
   */
  public class Viprom extends JXPath implements PropertyInterceptor {
  
      public static String PREFIX="viprom:";
  
      JXPathContext jxpathCtx;
          
      public Viprom() {
        super();
      }
         
      public Object getProperty( Project p, String ns, String name ) {
         
          return VipromResolver.resolve( Project p, String ns, String name );
  
      }
      
  }
  
  
  
  1.1                  
jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/VipromResolver.java
  
  Index: VipromResolver.java
  ===================================================================
  /*
   * $Header: 
/home/cvs/jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/VipromResolver.java,v
 1.1 2002/09/02 16:30:27 nicolaken Exp $
   * $Revision: 1.1 $
   * $Date: 2002/09/02 16:30:27 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  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. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Alexandria", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``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 APACHE SOFTWARE FOUNDATION 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.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.alexandria.viprom;
  
  import org.apache.tools.ant.*;
  import org.apache.tools.ant.taskdefs.optional.JXPath;
  import org.apache.tools.ant.types.*;
  
  import java.io.*;
  import java.util.*;
  
  import org.apache.commons.jxpath.*;
  
  /**
   *  Helper methods for the Viprom
   *
   * @author Nicola Ken Barozzi
   */
  public class VipromResolver {
  
      private VipromResolver() {
      }
         
      public static String resolve( Project p, String ns, String name ) {
        return name;
  
      }
      
  }
  
  
  
  1.1                  
jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/VipromSet.java
  
  Index: VipromSet.java
  ===================================================================
  /*
   * $Header: 
/home/cvs/jakarta-alexandria/viprom/src/java/org/apache/alexandria/viprom/VipromSet.java,v
 1.1 2002/09/02 16:30:27 nicolaken Exp $
   * $Revision: 1.1 $
   * $Date: 2002/09/02 16:30:27 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  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. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Alexandria", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``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 APACHE SOFTWARE FOUNDATION 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.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.tools.ant.taskdefs.optional;
  
  import org.apache.tools.ant.*;
  import org.apache.tools.ant.types.*;
  
  import java.io.*;
  import java.util.*;
  
  import org.apache.commons.jxpath.*;
  
  /**
   *  Set a Viprom property
   *
   * @author Nicola Ken Barozzi
   */
  public class VipromSet extends JXPathSet {
  
     
      public VipromSet() {
        super();
      }
  
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to