001 // Copyright 2005-2006 Ferdinand Prantl <prantl@users.sourceforge.net> 002 // Copyright 2001-2004 The Apache Software Foundation 003 // All rights reserved. 004 // 005 // Licensed under the Apache License, Version 2.0 (the "License"); 006 // you may not use this file except in compliance with the License. 007 // You may obtain a copy of the License at 008 // 009 // http://www.apache.org/licenses/LICENSE-2.0 010 // 011 // Unless required by applicable law or agreed to in writing, software 012 // distributed under the License is distributed on an "AS IS" BASIS, 013 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 // See the License for the specific language governing permissions and 015 // limitations under the License. 016 // 017 // See http://ant-eclipse.sourceforge.net for the most recent version 018 // and more information. 019 020 package prantl.ant.eclipse; 021 022 /** 023 * Describes an element <tt>classpathentry</tt> under the element classpath, 024 * specifically the kind "con". Presets the value 025 * "org.eclipse.jdt.launching.JRE_CONTAINER" for the attribute <tt>path</tt> to use the 026 * default configured JRE in Eclipse by default. An instance of this element will be 027 * created automatically with the default settings if none present. Only a single instace 028 * of this element is allowed, if ever. 029 * 030 * @since Ant-Eclipse 1.0 031 * @author Ferdinand Prantl <prantl@users.sourceforge.net> 032 */ 033 public class ClassPathEntryContainerElement extends ClassPathEntryElement { 034 035 /** 036 * Creates a new instance of the classpathentry-con element. 037 * 038 * @since Ant-Eclipse 1.0 039 */ 040 public ClassPathEntryContainerElement() { 041 setPath("org.eclipse.jdt.launching.JRE_CONTAINER"); 042 } 043 044 }