oberhack    2004/02/16 13:04:03

  Modified:    ide/org.apache.avalon.ide.eclipse.launch .classpath
                        plugin.xml
               
ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch
                        MerlinLaunchShortcut.java
                        MerlinDeveloperLaunch.java
                        MerlinContainerConfigNature.java
                        MerlinLaunchConfigurationDelegate.java
               
ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/nature
                        MerlinContainerConfigNature.java
                        MerlinProjectNature.java
               
ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container
                        MerlinEmbeddedContainer.java IAvalonContainer.java
                        AvalonContainer.java MerlinExternalContainer.java
               
ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/ui
                        MerlinServerTabGroup.java
  Added:       
ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container
                        MerlinContainerEnvironment.java
  Log:
  ALv2 added
  
  Revision  Changes    Path
  1.3       +8 -0      
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/.classpath
  
  Index: .classpath
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/.classpath,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .classpath        13 Feb 2004 10:42:44 -0000      1.2
  +++ .classpath        16 Feb 2004 21:04:02 -0000      1.3
  @@ -4,5 +4,13 @@
        <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="lib" path="lib/merlin-cli-3.2.4.jar"/>
  +     <classpathentry kind="lib" path="lib/merlin-impl-3.2.4.jar"/>
  +     <classpathentry kind="lib" path="lib/merlin-api-3.2.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-framework-api-4.1.5.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-framework-impl-4.1.5.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-util-criteria-1.0.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-util-defaults-1.1.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-util-env-1.0.jar"/>
  +     <classpathentry kind="lib" path="lib/avalon-util-exception-1.0.jar"/>
        <classpathentry kind="output" path="bin"/>
   </classpath>
  
  
  
  1.4       +1 -1      
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/plugin.xml
  
  Index: plugin.xml
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/plugin.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- plugin.xml        13 Feb 2004 10:42:44 -0000      1.3
  +++ plugin.xml        16 Feb 2004 21:04:02 -0000      1.4
  @@ -2,7 +2,7 @@
   <plugin
      id="org.apache.avalon.MerlinDeveloperLaunch"
      name="MerlinDeveloper Launch"
  -   version="0.0.2"
  +   version="0.0.3"
      provider-name="Apache Software Foundation"
      class="org.apache.avalon.ide.eclipse.merlin.launch.MerlinDeveloperLaunch">
   
  
  
  
  1.3       +15 -39    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinLaunchShortcut.java
  
  Index: MerlinLaunchShortcut.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinLaunchShortcut.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MerlinLaunchShortcut.java 2 Feb 2004 20:16:30 -0000       1.2
  +++ MerlinLaunchShortcut.java 16 Feb 2004 21:04:03 -0000      1.3
  @@ -1,43 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Jakarta", "Apache
  - * Avalon", "Avalon Framework" 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 name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch;
   
  
  
  
  1.2       +15 -39    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinDeveloperLaunch.java
  
  Index: MerlinDeveloperLaunch.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinDeveloperLaunch.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinDeveloperLaunch.java        26 Jan 2004 11:27:12 -0000      1.1
  +++ MerlinDeveloperLaunch.java        16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,43 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Jakarta", "Apache
  - * Avalon", "Avalon Framework" 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 name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   
   package org.apache.avalon.ide.eclipse.merlin.launch;
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinContainerConfigNature.java
  
  Index: MerlinContainerConfigNature.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinContainerConfigNature.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinContainerConfigNature.java  26 Jan 2004 11:27:12 -0000      1.1
  +++ MerlinContainerConfigNature.java  16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch;
   
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinLaunchConfigurationDelegate.java
  
  Index: MerlinLaunchConfigurationDelegate.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/MerlinLaunchConfigurationDelegate.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinLaunchConfigurationDelegate.java    26 Jan 2004 11:27:12 -0000      1.1
  +++ MerlinLaunchConfigurationDelegate.java    16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch;
   
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/nature/MerlinContainerConfigNature.java
  
  Index: MerlinContainerConfigNature.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/nature/MerlinContainerConfigNature.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinContainerConfigNature.java  26 Jan 2004 11:27:14 -0000      1.1
  +++ MerlinContainerConfigNature.java  16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.nature;
   
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/nature/MerlinProjectNature.java
  
  Index: MerlinProjectNature.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/nature/MerlinProjectNature.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinProjectNature.java  26 Jan 2004 11:27:14 -0000      1.1
  +++ MerlinProjectNature.java  16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.nature;
   
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/MerlinEmbeddedContainer.java
  
  Index: MerlinEmbeddedContainer.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/MerlinEmbeddedContainer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MerlinEmbeddedContainer.java      26 Jan 2004 11:27:16 -0000      1.1
  +++ MerlinEmbeddedContainer.java      16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch.container;
   
  
  
  
  1.2       +15 -40    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/IAvalonContainer.java
  
  Index: IAvalonContainer.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/IAvalonContainer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IAvalonContainer.java     26 Jan 2004 11:27:16 -0000      1.1
  +++ IAvalonContainer.java     16 Feb 2004 21:04:03 -0000      1.2
  @@ -1,44 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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 acknowledgment: "This product includes software
  - * developed by the Apache Software Foundation (http://www.apache.org/)."
  - * Alternately, this acknowledgment may appear in the software itself, if and
  - * wherever such third-party acknowledgments normally appear.
  - *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" 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 name, without prior written permission of the
  - * Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch.container;
   
  
  
  
  1.3       +15 -39    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/AvalonContainer.java
  
  Index: AvalonContainer.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/AvalonContainer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AvalonContainer.java      2 Feb 2004 20:16:30 -0000       1.2
  +++ AvalonContainer.java      16 Feb 2004 21:04:03 -0000      1.3
  @@ -1,43 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Jakarta", "Apache
  - * Avalon", "Avalon Framework" 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 name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch.container;
   
  
  
  
  1.5       +15 -39    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/MerlinExternalContainer.java
  
  Index: MerlinExternalContainer.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/MerlinExternalContainer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MerlinExternalContainer.java      13 Feb 2004 11:46:52 -0000      1.4
  +++ MerlinExternalContainer.java      16 Feb 2004 21:04:03 -0000      1.5
  @@ -1,43 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Jakarta", "Apache
  - * Avalon", "Avalon Framework" 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 name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch.container;
   
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/container/MerlinContainerEnvironment.java
  
  Index: MerlinContainerEnvironment.java
  ===================================================================
  /*
   * Created on 14.02.2004
   *
   * To change the template for this generated file go to
   * Window - Preferences - Java - Code Generation - Code and Comments
   */
  package org.apache.avalon.ide.eclipse.merlin.launch.container;
  
  import java.io.File;
  import java.util.Map;
  
  import org.apache.avalon.merlin.cli.Main;
  import org.apache.avalon.merlin.impl.DefaultCriteria;
  import org.apache.avalon.repository.Artifact;
  import org.apache.avalon.repository.main.DefaultInitialContext;
  import org.apache.avalon.repository.provider.Factory;
  import org.apache.avalon.repository.provider.InitialContext;
  import org.apache.avalon.util.env.Env;
  import org.apache.avalon.util.exception.ExceptionHelper;
  
  /**
   * @author Andreas Develop
   *
   * To change the template for this generated type comment go to
   * Window - Preferences - Java - Code Generation - Code and Comments
   */
  public class MerlinContainerEnvironment
  {
  
      public static void main(String[] args)
      {
  
          try
          {
              // must be the dir, where merlin is launched
              File dir = getBaseDirectory();
              File system = new File( getMerlinHome( ), "system" );
              
              ClassLoader parent = Main.class.getClassLoader();
              Artifact impl = null; // default
              String[] bootstrap = null; // default
              
              InitialContext context = 
              new DefaultInitialContext( 
                      dir, parent, impl, system, bootstrap );
              
              Factory factory = context.getInitialFactory();
              
              // getting the proxy settings for Repository access
              Map repCriteria = factory.createDefaultCriteria();
              
              // getting all other settings
              Map criteria = new DefaultCriteria(context);
              Object obj = factory.create(repCriteria); 
              Object o1 = obj;
              
          } catch (Exception e)
          {
              e.printStackTrace();
          }
          
      }
  
      /**
       * Return the functional base directory.  The implementation looks
       * for the ${merlin.dir} system property and if not found, looks for 
       * the ${basedir} system property, and as a last resort, returns the 
       * JVM ${user.dir} value.
       *
       * @return the merlin install directory
       */
      private static File getBaseDirectory()
      {
          final String merlin = System.getProperty( "merlin.dir" );
          if( null != merlin )
             {
              return new File( merlin );
          }
          final String base = System.getProperty( "basedir" );
          if( null != base )
             {
              return new File( base );
          }
          return new File( System.getProperty( "user.dir" ) );
      }
  
      /**
       * Return the merlin home directory.
       * @return the merlin install directory
       */
      private static File getMerlinHome()
      {
          return new File( getMerlinHomePath() );
      }
  
      /**
       * Return the merlin home directory path.
       * @return the merlin install directory path
       */
      private static String getMerlinHomePath()
      {
          try
          {
              String merlin = 
              System.getProperty( 
                      "merlin.home", 
                      Env.getEnvVariable( "MERLIN_HOME" ) );
              if( null != merlin ) return merlin;
              return System.getProperty( "user.home" ) 
              + File.separator + ".merlin";
          }
          catch( Throwable e )
          {
              final String error = 
              "Internal error while attempting to access MERLIN_HOME environment.";
              final String message = 
              ExceptionHelper.packException( error, e, true );
              throw new RuntimeException( message );
          }
      }
      
  }
  
  
  
  1.3       +15 -39    
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/ui/MerlinServerTabGroup.java
  
  Index: MerlinServerTabGroup.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.launch/src/org/apache/avalon/ide/eclipse/merlin/launch/ui/MerlinServerTabGroup.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MerlinServerTabGroup.java 2 Feb 2004 20:16:30 -0000       1.2
  +++ MerlinServerTabGroup.java 16 Feb 2004 21:04:03 -0000      1.3
  @@ -1,43 +1,19 @@
   /*
  - * ============================================================================
  - * 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 modifica-
  - * tion, 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
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Jakarta", "Apache
  - * Avalon", "Avalon Framework" 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 name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * 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 (INCLU-
  - * DING, 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/> .
  +   
  +      Copyright 2004. The Apache Software Foundation.
  +
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License. 
  +   
    */
   package org.apache.avalon.ide.eclipse.merlin.launch.ui;
   
  
  
  

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

Reply via email to