Creating directory structure for the webserver 7 plugin BLD200601051900
authormukeshgarg@netbeans.org
Wed, 04 Jan 2006 12:12:46 +0000
changeset 6720d04318a0d04f
parent 6719 ec2521e98e8a
child 6721 8dab49e7f1d9
Creating directory structure for the webserver 7 plugin
j2ee.sun.ws7/build.xml
j2ee.sun.ws7/manifest.mf
j2ee.sun.ws7/nbproject/project.properties
j2ee.sun.ws7/nbproject/project.xml
j2ee.sun.ws7/src/org/netbeans/modules/j2ee/sun/ws7/WS7LibsClassLoader.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/j2ee.sun.ws7/build.xml	Wed Jan 04 12:12:46 2006 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?><!-- -*- sgml-indent-step: 2 -*- -->
     1.5 +<!--
     1.6 +                Sun Public License Notice
     1.7 +
     1.8 +The contents of this file are subject to the Sun Public License
     1.9 +Version 1.0 (the "License"). You may not use this file except in
    1.10 +compliance with the License. A copy of the License is available at
    1.11 +http://www.sun.com/
    1.12 +
    1.13 +The Original Code is NetBeans. The Initial Developer of the Original
    1.14 +Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
    1.15 +Microsystems, Inc. All Rights Reserved.
    1.16 +-->
    1.17 +
    1.18 +<project basedir="." default="netbeans" name="webserver7">
    1.19 +  <import file="../../../nbbuild/templates/projectized.xml"/>
    1.20 +  <target name="files-init" depends="basic-init">
    1.21 +       <patternset id="module.files">
    1.22 +           <include name="${module.jar}"/>
    1.23 +           <include name="${javahelp.jar}" if="has.javahelp"/>
    1.24 +           <include name="${nb.system.dir}/Modules/${code.name.base.dashes}.xml"/>           
    1.25 +       </patternset>
    1.26 +  </target>  
    1.27 +     <target name="jar-with-module-deps" if="module.dependencies">
    1.28 +        <property file="spec-ver.properties"/>
    1.29 +        <jar jarfile="${netbeans.dest.dir}/${cluster.dir}/${module.jar}" compress="false" manifest="${manifest.mf}">
    1.30 +            <manifest>
    1.31 +                <attribute name="OpenIDE-Module-Public-Packages" value="${public.packages}"/>
    1.32 +                <attribute name="OpenIDE-Module-IDE-Dependencies" value="${ide.dependencies}"/>
    1.33 +                <attribute name="OpenIDE-Module-Build-Version" value="${buildnumber}"/>
    1.34 +            </manifest>
    1.35 +            <fileset dir="${build.classes.dir}"/>
    1.36 +        </jar>
    1.37 +    </target>
    1.38 +
    1.39 +</project>  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/j2ee.sun.ws7/manifest.mf	Wed Jan 04 12:12:46 2006 +0000
     2.3 @@ -0,0 +1,5 @@
     2.4 +Manifest-Version: 1.0
     2.5 +OpenIDE-Module-Implementation-Version: 1
     2.6 +OpenIDE-Module: org.netbeans.modules.j2ee.sun.ws7/1
     2.7 +OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/j2ee/sun/ws7/resources/Bundle.properties
     2.8 +OpenIDE-Module-Layer: org/netbeans/modules/j2ee/sun/ws7/j2ee/layer.xml
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/j2ee.sun.ws7/nbproject/project.properties	Wed Jan 04 12:12:46 2006 +0000
     3.3 @@ -0,0 +1,12 @@
     3.4 +#                 Sun Public License Notice
     3.5 +# 
     3.6 +# The contents of this file are subject to the Sun Public License
     3.7 +# Version 1.0 (the "License"). You may not use this file except in
     3.8 +# compliance with the License. A copy of the License is available at
     3.9 +# http://www.sun.com/
    3.10 +# 
    3.11 +# The Original Code is NetBeans. The Initial Developer of the Original
    3.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun
    3.13 +# Microsystems, Inc. All Rights Reserved.
    3.14 +cp.extra=${netbeans.dest.dir}/${cluster.dir}/modules/org-netbeans-modules-j2ee-sun-dd.jar;${netbeans.dest.dir}/${cluster.dir}/modules/ext/appserv-libapi.jar;${netbeans.dest.dir}/${cluster.dir}/modules/ext/appserv-jsr88.jar;${netbeans.dest.dir}/${cluster.dir}/modules/org-netbeans-modules-j2ee-sun-ide.jar
    3.15 +spec.version.base=0.1
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/j2ee.sun.ws7/nbproject/project.xml	Wed Jan 04 12:12:46 2006 +0000
     4.3 @@ -0,0 +1,201 @@
     4.4 +<?xml version="1.0" encoding="UTF-8"?>
     4.5 +<!--
     4.6 +                Sun Public License Notice
     4.7 +
     4.8 +The contents of this file are subject to the Sun Public License
     4.9 +Version 1.0 (the "License"). You may not use this file except in
    4.10 +compliance with the License. A copy of the License is available at
    4.11 +http://www.sun.com/
    4.12 +
    4.13 +The Original Code is NetBeans. The Initial Developer of the Original
    4.14 +Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
    4.15 +Microsystems, Inc. All Rights Reserved.
    4.16 +-->
    4.17 +<project xmlns="http://www.netbeans.org/ns/project/1">
    4.18 +    <type>org.netbeans.modules.apisupport.project</type>
    4.19 +    <configuration>
    4.20 +        <data xmlns="http://www.netbeans.org/ns/nb-module-project/2">
    4.21 +            <code-name-base>org.netbeans.modules.j2ee.sun.ws7</code-name-base>
    4.22 +            <module-dependencies>
    4.23 +                <dependency>
    4.24 +                    <code-name-base>org.jdesktop.layout</code-name-base>
    4.25 +                    <build-prerequisite/>
    4.26 +                    <compile-dependency/>
    4.27 +                    <run-dependency>
    4.28 +                        <release-version>1</release-version>
    4.29 +                        <specification-version>1.4</specification-version>
    4.30 +                    </run-dependency>
    4.31 +                </dependency>
    4.32 +                <dependency>
    4.33 +                    <code-name-base>org.netbeans.modules.j2ee.sun.appsrv</code-name-base>
    4.34 +                    <build-prerequisite/>
    4.35 +                    <compile-dependency/>
    4.36 +                    <run-dependency>
    4.37 +                        <release-version>1</release-version>
    4.38 +                        <specification-version>1.3</specification-version>
    4.39 +                    </run-dependency>
    4.40 +                </dependency>
    4.41 +                <dependency>
    4.42 +                    <code-name-base>org.netbeans.modules.j2ee.sun.dd</code-name-base>
    4.43 +                    <build-prerequisite/>
    4.44 +                    <compile-dependency/>
    4.45 +                    <run-dependency>
    4.46 +                        <release-version>1</release-version>
    4.47 +                        <specification-version>1.5</specification-version>
    4.48 +                    </run-dependency>
    4.49 +                </dependency>
    4.50 +                <dependency>
    4.51 +                    <code-name-base>org.netbeans.modules.j2ee.sun.ddui</code-name-base>
    4.52 +                    <build-prerequisite/>
    4.53 +                    <compile-dependency/>
    4.54 +                    <run-dependency>
    4.55 +                        <release-version>1</release-version>
    4.56 +                        <specification-version>1.6</specification-version>
    4.57 +                    </run-dependency>
    4.58 +                </dependency>
    4.59 +                <dependency>
    4.60 +                    <code-name-base>org.netbeans.modules.j2eeapis</code-name-base>
    4.61 +                    <build-prerequisite/>
    4.62 +                    <compile-dependency/>
    4.63 +                    <run-dependency>
    4.64 +                        <release-version>1</release-version>
    4.65 +                    </run-dependency>
    4.66 +                </dependency>
    4.67 +                <dependency>
    4.68 +                    <code-name-base>org.netbeans.modules.j2eeserver</code-name-base>
    4.69 +                    <build-prerequisite/>
    4.70 +                    <compile-dependency/>
    4.71 +                    <run-dependency>
    4.72 +                        <release-version>4</release-version>
    4.73 +                        <!-- <specification-version>1.14</specification-version> -->
    4.74 +                    </run-dependency>
    4.75 +                </dependency>
    4.76 +                <dependency>
    4.77 +                    <code-name-base>org.netbeans.modules.java.platform</code-name-base>
    4.78 +                    <build-prerequisite/>
    4.79 +                    <compile-dependency/>
    4.80 +                    <run-dependency>
    4.81 +                        <release-version>1</release-version>
    4.82 +                        <specification-version>1.6</specification-version>
    4.83 +                    </run-dependency>
    4.84 +                </dependency>
    4.85 +                <dependency>
    4.86 +                    <code-name-base>org.netbeans.modules.project.libraries</code-name-base>
    4.87 +                    <build-prerequisite/>
    4.88 +                    <compile-dependency/>
    4.89 +                    <run-dependency>
    4.90 +                        <release-version>1</release-version>
    4.91 +                        <specification-version>1.13</specification-version>
    4.92 +                    </run-dependency>
    4.93 +                </dependency>
    4.94 +                <dependency>
    4.95 +                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
    4.96 +                    <build-prerequisite/>
    4.97 +                    <compile-dependency/>
    4.98 +                    <run-dependency>
    4.99 +                        <release-version>1</release-version>
   4.100 +                        <specification-version>1.8</specification-version>
   4.101 +                    </run-dependency>
   4.102 +                </dependency>
   4.103 +                <dependency>
   4.104 +                    <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
   4.105 +                    <build-prerequisite/>
   4.106 +                    <compile-dependency/>
   4.107 +                    <run-dependency>
   4.108 +                        <release-version>1</release-version>
   4.109 +                    </run-dependency>
   4.110 +                </dependency>
   4.111 +                <dependency>
   4.112 +                    <code-name-base>org.netbeans.modules.schema2beans</code-name-base>
   4.113 +                    <build-prerequisite/>
   4.114 +                    <compile-dependency/>
   4.115 +                    <run-dependency>
   4.116 +                        <release-version>1</release-version>
   4.117 +                        <specification-version>1.14</specification-version>
   4.118 +                    </run-dependency>
   4.119 +                </dependency>
   4.120 +                <dependency>
   4.121 +                    <code-name-base>org.openide.actions</code-name-base>
   4.122 +                    <build-prerequisite/>
   4.123 +                    <compile-dependency/>
   4.124 +                    <run-dependency>
   4.125 +                        <specification-version>6.5</specification-version>
   4.126 +                    </run-dependency>
   4.127 +                </dependency>
   4.128 +                <dependency>
   4.129 +                    <code-name-base>org.openide.awt</code-name-base>
   4.130 +                    <build-prerequisite/>
   4.131 +                    <compile-dependency/>
   4.132 +                    <run-dependency>
   4.133 +                        <specification-version>6.7</specification-version>
   4.134 +                    </run-dependency>
   4.135 +                </dependency>
   4.136 +                <dependency>
   4.137 +                    <code-name-base>org.openide.dialogs</code-name-base>
   4.138 +                    <build-prerequisite/>
   4.139 +                    <compile-dependency/>
   4.140 +                    <run-dependency>
   4.141 +                        <specification-version>6.4</specification-version>
   4.142 +                    </run-dependency>
   4.143 +                </dependency>
   4.144 +                <dependency>
   4.145 +                    <code-name-base>org.openide.execution</code-name-base>
   4.146 +                    <build-prerequisite/>
   4.147 +                    <compile-dependency/>
   4.148 +                    <run-dependency>
   4.149 +                        <specification-version>1.7</specification-version>
   4.150 +                    </run-dependency>
   4.151 +                </dependency>
   4.152 +                <dependency>
   4.153 +                    <code-name-base>org.openide.explorer</code-name-base>
   4.154 +                    <build-prerequisite/>
   4.155 +                    <compile-dependency/>
   4.156 +                    <run-dependency>
   4.157 +                        <specification-version>6.5</specification-version>
   4.158 +                    </run-dependency>
   4.159 +                </dependency>
   4.160 +                <dependency>
   4.161 +                    <code-name-base>org.openide.filesystems</code-name-base>
   4.162 +                    <build-prerequisite/>
   4.163 +                    <compile-dependency/>
   4.164 +                    <run-dependency>
   4.165 +                        <specification-version>6.4</specification-version>
   4.166 +                    </run-dependency>
   4.167 +                </dependency>
   4.168 +                <dependency>
   4.169 +                    <code-name-base>org.openide.loaders</code-name-base>
   4.170 +                    <build-prerequisite/>
   4.171 +                    <compile-dependency/>
   4.172 +                    <run-dependency>
   4.173 +                        <specification-version>5.9</specification-version>
   4.174 +                    </run-dependency>
   4.175 +                </dependency>
   4.176 +                <dependency>
   4.177 +                    <code-name-base>org.openide.modules</code-name-base>
   4.178 +                    <build-prerequisite/>
   4.179 +                    <compile-dependency/>
   4.180 +                    <run-dependency>
   4.181 +                        <specification-version>6.5</specification-version>
   4.182 +                    </run-dependency>
   4.183 +                </dependency>
   4.184 +                <dependency>
   4.185 +                    <code-name-base>org.openide.nodes</code-name-base>
   4.186 +                    <build-prerequisite/>
   4.187 +                    <compile-dependency/>
   4.188 +                    <run-dependency>
   4.189 +                        <specification-version>6.7</specification-version>
   4.190 +                    </run-dependency>
   4.191 +                </dependency>
   4.192 +                <dependency>
   4.193 +                    <code-name-base>org.openide.util</code-name-base>
   4.194 +                    <build-prerequisite/>
   4.195 +                    <compile-dependency/>
   4.196 +                    <run-dependency>
   4.197 +                        <specification-version>6.7</specification-version>
   4.198 +                    </run-dependency>
   4.199 +                </dependency>
   4.200 +            </module-dependencies>
   4.201 +            <public-packages/>
   4.202 +        </data>
   4.203 +    </configuration>
   4.204 +</project>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/j2ee.sun.ws7/src/org/netbeans/modules/j2ee/sun/ws7/WS7LibsClassLoader.java	Wed Jan 04 12:12:46 2006 +0000
     5.3 @@ -0,0 +1,66 @@
     5.4 +/*
     5.5 + *                 Sun Public License Notice
     5.6 + *
     5.7 + * The contents of this file are subject to the Sun Public License
     5.8 + * Version 1.0 (the "License"). You may not use this file except in
     5.9 + * compliance with the License. A copy of the License is available at
    5.10 + * http://www.sun.com/
    5.11 + *
    5.12 + * The Original Code is NetBeans. The Initial Developer of the Original
    5.13 + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun
    5.14 + * Microsystems, Inc. All Rights Reserved.
    5.15 + */
    5.16 +
    5.17 +/*
    5.18 + * WS7LibsClassLoader.java
    5.19 + *
    5.20 + * 
    5.21 +*/
    5.22 +
    5.23 +package org.netbeans.modules.j2ee.sun.ws7;
    5.24 +
    5.25 +import java.security.PermissionCollection;
    5.26 +import java.security.CodeSource;
    5.27 +import java.security.Permissions;
    5.28 +import java.security.AllPermission;
    5.29 +import java.io.File;
    5.30 +import java.net.URL;
    5.31 +import java.net.URLClassLoader;
    5.32 +import java.net.MalformedURLException;
    5.33 +
    5.34 +
    5.35 +
    5.36 +public class WS7LibsClassLoader extends URLClassLoader {
    5.37 +    
    5.38 +    /** Creates new pluginClassLoader  _mapping is key=value;key=value....*/
    5.39 +    public WS7LibsClassLoader() throws MalformedURLException, RuntimeException {
    5.40 +        super(new URL[0]);
    5.41 +    }
    5.42 +    
    5.43 +    public WS7LibsClassLoader( ClassLoader _loader) throws MalformedURLException, RuntimeException {
    5.44 +        super(new URL[0], _loader);
    5.45 +    }
    5.46 +       
    5.47 +        
    5.48 +    public void addURL(File f) throws MalformedURLException, RuntimeException {
    5.49 +            if (f.isFile()){
    5.50 +                addURL(f.toURL());
    5.51 +            }
    5.52 +    }
    5.53 +    
    5.54 +public Class loadClass(String  name)throws ClassNotFoundException{
    5.55 +    //System.err.println("WS7:LOADCLASS:CLASSLOADER: "+name);
    5.56 +    return super.loadClass(name);
    5.57 +}
    5.58 +protected Class findClass(String  name) throws ClassNotFoundException{
    5.59 +    //System.err.println("WS7:FINDCLASS:CLASSLOADER: "+name);
    5.60 +    return super.findClass(name);
    5.61 +}  
    5.62 +
    5.63 +    protected PermissionCollection getPermissions(CodeSource _cs) {
    5.64 +        Permissions p = new Permissions();
    5.65 +        p.add(new AllPermission());
    5.66 +        return p;
    5.67 +    }
    5.68 +
    5.69 +}