This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 178426
Collapse All | Expand All

(-)a/.hgignore (-14 / +1 lines)
Lines 96-114 Link Here
96
^installer/packages/ubuntu/netbeans-5.5/nb55-jumbodocpack\.zip$
96
^installer/packages/ubuntu/netbeans-5.5/nb55-jumbodocpack\.zip$
97
^installer/packages/ubuntu/netbeans-5.5/netbeans-5_5_1-javadoc\.tar\.gz$
97
^installer/packages/ubuntu/netbeans-5.5/netbeans-5_5_1-javadoc\.tar\.gz$
98
^installer/profiler/customcode/lib$
98
^installer/profiler/customcode/lib$
99
^j2ee.*\.dd.*/src/.+/impl/.+/model(_[0-9]+)*$
99
^j2ee\.dd/src/.+/impl/.+/model(_[0-9]+)*(_frag)?$
100
^j2ee.*\.dd.*/src/.+/impl/.+/model(_[0-9]+)*_frag$
101
^j2ee.dd/test/unit/data/web\.xml$
100
^j2ee.dd/test/unit/data/web\.xml$
102
^j2ee.dd/test/unit/data/web\.diff$
101
^j2ee.dd/test/unit/data/web\.diff$
103
^j2ee.dd/test/unit/data/invalid/web\.xml$
102
^j2ee.dd/test/unit/data/invalid/web\.xml$
104
^j2ee.earproject/src/org/netbeans/modules/j2ee/earproject/ui/wizards/dd/\.ApplicationXmlVisualPanel1\.java\.swp$
103
^j2ee.earproject/src/org/netbeans/modules/j2ee/earproject/ui/wizards/dd/\.ApplicationXmlVisualPanel1\.java\.swp$
105
^j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/gen$
106
^j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/.+/model_1_0$
107
^j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/.+/model_2_0$
108
^j2ee.toplinklib/external/toplink$
104
^j2ee.toplinklib/external/toplink$
109
^j2eeserver/\.swp$
105
^j2eeserver/\.swp$
110
^j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/gen$
111
^j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/gen$
112
^java.editor/test/unit/src/org/netbeans/modules/editor/java/data/.*\.jar$
106
^java.editor/test/unit/src/org/netbeans/modules/editor/java/data/.*\.jar$
113
^java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/gui/gui_template\.html$
107
^java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/gui/gui_template\.html$
114
^java.navigation/test/run\.sh$
108
^java.navigation/test/run\.sh$
Lines 188-197 Link Here
188
^o.jruby.distro/unpatched_source$
182
^o.jruby.distro/unpatched_source$
189
^o.jruby/patched_source$
183
^o.jruby/patched_source$
190
^o.mozilla.rhino.patched/patched_source$
184
^o.mozilla.rhino.patched/patched_source$
191
^schema2beans/anttask/s2banttask\.jar$
192
^schema2beans/dev/schema2beansdev\.jar$
193
^schema2beans/dev/manifest-subst\.mf$
194
^j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/config/gen$
195
^j2ee.sun.appsrv81/\.keystore$
185
^j2ee.sun.appsrv81/\.keystore$
196
^j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/verifier$
186
^j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/verifier$
197
^j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/serverresources/model$
187
^j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/serverresources/model$
Lines 265-273 Link Here
265
^xml.tools/test/qa-functional/src/org/netbeans/modules/xsl/action/data/out/document\.html$
255
^xml.tools/test/qa-functional/src/org/netbeans/modules/xsl/action/data/out/document\.html$
266
^xml.xdm/test/\.build\.xml\.swp$
256
^xml.xdm/test/\.build\.xml\.swp$
267
^nbjunit/nbjunit-.*$
257
^nbjunit/nbjunit-.*$
268
^hibernate/src/org/netbeans/modules/hibernate/mapping/model$
269
^hibernate/src/org/netbeans/modules/hibernate/cfg/model$
270
^hibernate/src/org/netbeans/modules/hibernate/reveng/model$
271
^hibernate/test/unit/data/db-derby-10\.2\.2\.0-bin$
258
^hibernate/test/unit/data/db-derby-10\.2\.2\.0-bin$
272
\.orig\..*$
259
\.orig\..*$
273
\.chg\..*$
260
\.chg\..*$
(-)a/apisupport.project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java (+12 lines)
Lines 426-431 Link Here
426
        String testClassesDir = evaluator().getProperty("build.test." + type + ".classes.dir"); // NOI18N
426
        String testClassesDir = evaluator().getProperty("build.test." + type + ".classes.dir"); // NOI18N
427
        return testClassesDir != null ? helper.resolveFile(testClassesDir) : null;
427
        return testClassesDir != null ? helper.resolveFile(testClassesDir) : null;
428
    }
428
    }
429
430
    public File getGeneratedClassesDirectory() {
431
        return gensrc(getClassesDirectory());
432
    }
433
434
    public File getTestGeneratedClassesDirectory(String type) {
435
        return gensrc(getTestClassesDirectory(type));
436
    }
437
438
    private File gensrc(File clazz) {
439
        return new File(clazz.getParentFile(), clazz.getName() + "-generated"); // NOI18N
440
    }
429
    
441
    
430
    public FileObject getJavaHelpDirectory() {
442
    public FileObject getJavaHelpDirectory() {
431
        if (helper.resolveFileObject("javahelp/manifest.mf") != null) { // NOI18N
443
        if (helper.resolveFileObject("javahelp/manifest.mf") != null) { // NOI18N
(-)a/apisupport.project/src/org/netbeans/modules/apisupport/project/queries/ClassPathProviderImpl.java (-6 / +31 lines)
Lines 118-124 Link Here
118
        dir = dir == null ? null : FileUtil.normalizeFile(dir);
118
        dir = dir == null ? null : FileUtil.normalizeFile(dir);
119
        FileObject testClassesDir = (dir == null || ! dir.exists()) ? null : FileUtil.toFileObject(dir);
119
        FileObject testClassesDir = (dir == null || ! dir.exists()) ? null : FileUtil.toFileObject(dir);
120
        File moduleJar;
120
        File moduleJar;
121
        if (srcDir != null && (FileUtil.isParentOf(srcDir, file) || file == srcDir)) {
121
        URL generatedClasses = FileUtil.urlForArchiveOrDir(project.getGeneratedClassesDirectory());
122
        URL generatedUnitTestClasses = FileUtil.urlForArchiveOrDir(project.getTestGeneratedClassesDirectory("unit"));
123
        URL generatedFunctionalTestClasses = FileUtil.urlForArchiveOrDir(project.getTestGeneratedClassesDirectory("qa-functional"));
124
        String fileU;
125
        try {
126
            fileU = file.getURL().toString();
127
        } catch (FileStateInvalidException x) {
128
            LOG.log(Level.INFO, null, x);
129
            return null;
130
        }
131
        if (srcDir != null &&
132
                (FileUtil.isParentOf(srcDir, file) || file == srcDir || fileU.startsWith(generatedClasses.toString()))) {
122
            // Regular sources.
133
            // Regular sources.
123
            if (type.equals(ClassPath.COMPILE)) {
134
            if (type.equals(ClassPath.COMPILE)) {
124
                if (compile == null) {
135
                if (compile == null) {
Lines 133-143 Link Here
133
                return execute;
144
                return execute;
134
            } else if (type.equals(ClassPath.SOURCE)) {
145
            } else if (type.equals(ClassPath.SOURCE)) {
135
                if (source == null) {
146
                if (source == null) {
136
                    source = ClassPathSupport.createClassPath(new FileObject[] {srcDir});
147
                    try {
148
                        source = ClassPathSupport.createClassPath(srcDir.getURL(), generatedClasses);
149
                    } catch (FileStateInvalidException x) {
150
                        LOG.log(Level.INFO, null, x);
151
                    }
137
                }
152
                }
138
                return source;
153
                return source;
139
            }
154
            }
140
        } else if (testSrcDir != null && (FileUtil.isParentOf(testSrcDir, file) || file == testSrcDir)) {
155
        } else if (testSrcDir != null &&
156
                (FileUtil.isParentOf(testSrcDir, file) || file == testSrcDir || fileU.startsWith(generatedUnitTestClasses.toString()))) {
141
            // Unit tests.
157
            // Unit tests.
142
            // XXX refactor to use project.supportedTestTypes
158
            // XXX refactor to use project.supportedTestTypes
143
            if (type.equals(ClassPath.COMPILE)) {
159
            if (type.equals(ClassPath.COMPILE)) {
Lines 154-168 Link Here
154
                return testExecute;
170
                return testExecute;
155
            } else if (type.equals(ClassPath.SOURCE)) {
171
            } else if (type.equals(ClassPath.SOURCE)) {
156
                if (testSource == null) {
172
                if (testSource == null) {
157
                    testSource = ClassPathSupport.createClassPath(new FileObject[] {testSrcDir});
173
                    try {
174
                        testSource = ClassPathSupport.createClassPath(testSrcDir.getURL(), generatedUnitTestClasses);
175
                    } catch (FileStateInvalidException x) {
176
                        LOG.log(Level.INFO, null, x);
177
                    }
158
                }
178
                }
159
                return testSource;
179
                return testSource;
160
            }
180
            }
161
        } else if (funcTestSrcDir != null && (FileUtil.isParentOf(funcTestSrcDir, file) || file == funcTestSrcDir)) {
181
        } else if (funcTestSrcDir != null &&
182
                (FileUtil.isParentOf(funcTestSrcDir, file) || file == funcTestSrcDir || fileU.startsWith(generatedFunctionalTestClasses.toString()))) {
162
            // Functional tests.
183
            // Functional tests.
163
            if (type.equals(ClassPath.SOURCE)) {
184
            if (type.equals(ClassPath.SOURCE)) {
164
                if (funcTestSource == null) {
185
                if (funcTestSource == null) {
165
                    funcTestSource = ClassPathSupport.createClassPath(new FileObject[] {funcTestSrcDir});
186
                    try {
187
                        funcTestSource = ClassPathSupport.createClassPath(funcTestSrcDir.getURL(), generatedFunctionalTestClasses);
188
                    } catch (FileStateInvalidException x) {
189
                        LOG.log(Level.INFO, null, x);
190
                    }
166
                }
191
                }
167
                return funcTestSource;
192
                return funcTestSource;
168
            } else if (type.equals(ClassPath.COMPILE)) {
193
            } else if (type.equals(ClassPath.COMPILE)) {
(-)a/apisupport.project/src/org/netbeans/modules/apisupport/project/queries/SourceForBinaryImpl.java (-11 / +20 lines)
Lines 78-90 Link Here
78
            File binaryJarF = FileUtil.archiveOrDirForURL(binaryRoot);
78
            File binaryJarF = FileUtil.archiveOrDirForURL(binaryRoot);
79
            if (binaryJarF != null) {
79
            if (binaryJarF != null) {
80
                FileObject srcDir = null;
80
                FileObject srcDir = null;
81
                File genSrcDirF = null;
81
                if (binaryJarF.getAbsolutePath().endsWith(project.evaluator().getProperty("module.jar").replace('/', File.separatorChar))) {
82
                if (binaryJarF.getAbsolutePath().endsWith(project.evaluator().getProperty("module.jar").replace('/', File.separatorChar))) {
82
                    srcDir = project.getSourceDirectory();
83
                    srcDir = project.getSourceDirectory();
84
                    genSrcDirF = project.getGeneratedClassesDirectory();
83
                } else {
85
                } else {
84
                    // maybe tests.jar in testdistribution
86
                    // maybe tests.jar in testdistribution
85
                    TestEntry entry = TestEntry.get(binaryJarF);
87
                    TestEntry entry = TestEntry.get(binaryJarF);
86
                    if (entry != null && project.getCodeNameBase().equals(entry.getCodeNameBase())) {
88
                    if (entry != null && project.getCodeNameBase().equals(entry.getCodeNameBase())) {
87
                        srcDir = project.getTestSourceDirectory(entry.getTestType());
89
                        String type = entry.getTestType();
90
                        srcDir = project.getTestSourceDirectory(type);
91
                        genSrcDirF = project.getTestGeneratedClassesDirectory(type);
88
                    } else {
92
                    } else {
89
                        // try classpath-extension
93
                        // try classpath-extension
90
                        // // convention-over-cfg per mkleint's suggestion: <jarname>-src(.zip) folder or ZIP first
94
                        // // convention-over-cfg per mkleint's suggestion: <jarname>-src(.zip) folder or ZIP first
Lines 94-106 Link Here
94
                            File jFolder = new File(binaryJarF.getParentFile(),
98
                            File jFolder = new File(binaryJarF.getParentFile(),
95
                                    n.substring(0, n.length() - ".jar".length()) + "-src");
99
                                    n.substring(0, n.length() - ".jar".length()) + "-src");
96
                            if (jFolder.isDirectory()) {
100
                            if (jFolder.isDirectory()) {
97
                                res = new Result(FileUtil.toFileObject(jFolder));
101
                                res = new Result(FileUtil.toFileObject(jFolder), null);
98
                                cache.put(binaryRoot,res);
102
                                cache.put(binaryRoot,res);
99
                                return res;
103
                                return res;
100
                            } else {
104
                            } else {
101
                                File jZip = new File(jFolder.getAbsolutePath() + ".zip");
105
                                File jZip = new File(jFolder.getAbsolutePath() + ".zip");
102
                                if (jZip.isFile()) {
106
                                if (jZip.isFile()) {
103
                                    res = new Result(FileUtil.getArchiveRoot(FileUtil.toFileObject(jZip)));
107
                                    res = new Result(FileUtil.getArchiveRoot(FileUtil.toFileObject(jZip)), null);
104
                                    cache.put(binaryRoot,res);
108
                                    cache.put(binaryRoot,res);
105
                                    return res;
109
                                    return res;
106
                                }
110
                                }
Lines 109-115 Link Here
109
                    }
113
                    }
110
                }
114
                }
111
                if (srcDir != null) {
115
                if (srcDir != null) {
112
                    res = new Result(srcDir);
116
                    res = new Result(srcDir, genSrcDirF);
113
                    cache.put(binaryRoot,res);
117
                    cache.put(binaryRoot,res);
114
                    return res;
118
                    return res;
115
                }
119
                }
Lines 117-130 Link Here
117
            if (binaryRoot.equals(getClassesUrl())) {
121
            if (binaryRoot.equals(getClassesUrl())) {
118
                FileObject srcDir = project.getSourceDirectory();
122
                FileObject srcDir = project.getSourceDirectory();
119
                if (srcDir != null) {
123
                if (srcDir != null) {
120
                    res = new Result(srcDir);
124
                    res = new Result(srcDir, project.getGeneratedClassesDirectory());
121
                }
125
                }
122
            } else {
126
            } else {
123
                for (String testType : project.supportedTestTypes()) {
127
                for (String testType : project.supportedTestTypes()) {
124
                    if (binaryRoot.equals(getTestClassesUrl(testType))) {
128
                    if (binaryRoot.equals(getTestClassesUrl(testType))) {
125
                        FileObject testSrcDir = project.getTestSourceDirectory(testType);
129
                        FileObject testSrcDir = project.getTestSourceDirectory(testType);
126
                        if (testSrcDir != null) {
130
                        if (testSrcDir != null) {
127
                            res = new Result(testSrcDir);
131
                            res = new Result(testSrcDir, project.getTestGeneratedClassesDirectory(testType));
128
                            break;
132
                            break;
129
                        }
133
                        }
130
                    }
134
                    }
Lines 149-155 Link Here
149
                                    "In " + FileUtil.getFileDisplayName(project.getProjectDirectory()) +
153
                                    "In " + FileUtil.getFileDisplayName(project.getProjectDirectory()) +
150
                                    " " + loc + " is neither a directory nor a JAR");
154
                                    " " + loc + " is neither a directory nor a JAR");
151
                        } else if (u.equals(binaryRoot)) {
155
                        } else if (u.equals(binaryRoot)) {
152
                            res = new Result(entry.getKey());
156
                            res = new Result(entry.getKey(), null);
153
                            break ECUS;
157
                            break ECUS;
154
                        }
158
                        }
155
                    }
159
                    }
Lines 182-196 Link Here
182
    
186
    
183
    private static class Result implements SourceForBinaryQuery.Result {
187
    private static class Result implements SourceForBinaryQuery.Result {
184
               
188
               
185
        private FileObject res;
189
        private FileObject[] res;
186
        
190
        
187
        public Result(FileObject res) {
191
        public Result(FileObject res, File other) {
188
            assert res != null;
192
            assert res != null;
189
            this.res = res;
193
            FileObject otherFO = other != null ? FileUtil.toFileObject(other) : null;
194
            if (otherFO != null) {
195
                this.res = new FileObject[] {res, otherFO};
196
            } else {
197
                this.res = new FileObject[] {res};
198
            }
190
        }
199
        }
191
        
200
        
192
        public FileObject[] getRoots () {
201
        public FileObject[] getRoots () {
193
            return new FileObject[] {res};
202
            return res;
194
        }
203
        }
195
        
204
        
196
        public void addChangeListener (ChangeListener l) {
205
        public void addChangeListener (ChangeListener l) {
(-)a/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/queries/SourceForBinaryImplTest.java (-2 / +14 lines)
Lines 43-50 Link Here
43
43
44
import java.io.File;
44
import java.io.File;
45
import java.net.URL;
45
import java.net.URL;
46
import java.util.ArrayList;
46
import java.util.Arrays;
47
import java.util.Arrays;
47
import java.util.Collections;
48
import java.util.Collections;
49
import java.util.List;
48
import java.util.jar.Manifest;
50
import java.util.jar.Manifest;
49
import org.netbeans.api.java.classpath.ClassPath;
51
import org.netbeans.api.java.classpath.ClassPath;
50
import org.netbeans.api.java.queries.SourceForBinaryQuery;
52
import org.netbeans.api.java.queries.SourceForBinaryQuery;
Lines 139-145 Link Here
139
        URL u = FileUtil.getArchiveRoot(jarF.toURI().toURL());
141
        URL u = FileUtil.getArchiveRoot(jarF.toURI().toURL());
140
        assertEquals("right results for " + u,
142
        assertEquals("right results for " + u,
141
            Collections.singletonList(src),
143
            Collections.singletonList(src),
142
            Arrays.asList(SourceForBinaryQuery.findSourceRoots(u).getRoots()));
144
            trimGenerated(Arrays.asList(SourceForBinaryQuery.findSourceRoots(u).getRoots())));
143
    }
145
    }
144
    
146
    
145
    private void check(String srcS, String jarS) throws Exception {
147
    private void check(String srcS, String jarS) throws Exception {
Lines 154-160 Link Here
154
        URL u = FileUtil.urlForArchiveOrDir(classesF);
156
        URL u = FileUtil.urlForArchiveOrDir(classesF);
155
        assertEquals("right source root for " + u,
157
        assertEquals("right source root for " + u,
156
            Collections.singletonList(src),
158
            Collections.singletonList(src),
157
            Arrays.asList(SourceForBinaryQuery.findSourceRoots(u).getRoots()));
159
            trimGenerated(Arrays.asList(SourceForBinaryQuery.findSourceRoots(u).getRoots())));
160
    }
161
162
    private List<FileObject> trimGenerated(List<FileObject> dirs) {
163
        List<FileObject> result = new ArrayList<FileObject>();
164
        for (FileObject dir : dirs) {
165
            if (!dir.getName().endsWith("-generated")) {
166
                result.add(dir);
167
            }
168
        }
169
        return result;
158
    }
170
    }
159
    
171
    
160
}
172
}
(-)a/hibernate/build.xml (-73 lines)
Lines 44-122 Link Here
44
    <description>Builds, tests, and runs the project org.netbeans.modules.hibernate</description>
44
    <description>Builds, tests, and runs the project org.netbeans.modules.hibernate</description>
45
    <import file="../nbbuild/templates/projectized.xml"/>
45
    <import file="../nbbuild/templates/projectized.xml"/>
46
46
47
    <property name="s2b_root_cfg" location="src/org/netbeans/modules/hibernate/cfg/model"/>
48
    <property name="s2b_root_mapping" location="src/org/netbeans/modules/hibernate/mapping/model"/>
49
    <property name="s2b_root_reveng" location="src/org/netbeans/modules/hibernate/reveng/model"/>
50
    <property name="s2b_res_root" location="src/org/netbeans/modules/hibernate/resources"/>
51
52
    <target name="s2binit" depends="build-init">
53
	<taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
54
	  <classpath>
55
		<pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
56
		<pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
57
		<pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
58
	  </classpath>
59
	</taskdef>
60
    </target>
61
62
    <target name="s2bgen-cfg" depends="s2binit">
63
     <echo message="generating code generation input file information" />
64
	<schema2beans schema="${s2b_res_root}/hibernate-configuration-3.0.dtd"
65
	  mddFile="${s2b_res_root}/hibernate-configuration-3.0.mdd"
66
	  package="org.netbeans.modules.hibernate.cfg.model"
67
	  validate="false"
68
	  removeUnreferencedNodes="true"
69
	  rootDir="src"/>
70
    </target>
71
72
    <target name="s2bgen-mapping" depends="s2binit">
73
     <echo message="generating code generation input file information" />
74
	<schema2beans schema="${s2b_res_root}/hibernate-mapping-3.0.dtd"
75
	  mddFile="${s2b_res_root}/hibernate-mapping-3.0.mdd"
76
	  package="org.netbeans.modules.hibernate.mapping.model"
77
	  validate="false"
78
	  removeUnreferencedNodes="true"
79
	  rootDir="src"/>
80
    </target>
81
    
82
    <target name="s2bgen-reveng" depends="s2binit">
83
     <echo message="generating code generation input file information" />
84
	<schema2beans schema="${s2b_res_root}/hibernate-reverse-engineering-3.0.dtd"
85
	  mddFile="${s2b_res_root}/hibernate-reverse-engineering-3.0.mdd"
86
	  package="org.netbeans.modules.hibernate.reveng.model"
87
	  validate="false"
88
	  removeUnreferencedNodes="true"
89
	  rootDir="src"/>
90
    </target>
91
92
    <target name="compile" depends="s2bgen-cfg, s2bgen-mapping, s2bgen-reveng, projectized-common.compile"/>
93
94
    <target name="clean" depends="clean-s2b-src, projectized-common.clean"/>
95
96
    <target name="clean-s2b-src">
97
        <mkdir dir="${s2b_root_cfg}"/>
98
        <mkdir dir="${s2b_root_mapping}"/>
99
        <mkdir dir="${s2b_root_reveng}"/>
100
        <delete>
101
            <fileset dir="${s2b_root_cfg}">
102
                <include name="*.java"/>
103
            </fileset>
104
        </delete>
105
        <delete>
106
            <fileset dir="${s2b_root_mapping}">
107
                <include name="*.java"/>
108
            </fileset>
109
        </delete>
110
        <delete>
111
            <fileset dir="${s2b_root_reveng}">
112
                <include name="*.java"/>
113
            </fileset>
114
        </delete>
115
        <delete dir="${s2b_root_cfg}"/>
116
        <delete dir="${s2b_root_mapping}"/>
117
        <delete dir="${s2b_root_reveng}"/>
118
    </target>
119
120
    <!-- Unit test related -->
47
    <!-- Unit test related -->
121
    <property name="derby.data.dir" value="test/unit/data"/>
48
    <property name="derby.data.dir" value="test/unit/data"/>
122
    <available file="test/unit/data/db-derby-10.2.2.0-bin"
49
    <available file="test/unit/data/db-derby-10.2.2.0-bin"
(-)a/hibernate/src/org/netbeans/modules/hibernate/cfg/model/package-info.java (+52 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/hibernate-configuration-3.0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/hibernate-configuration-3.0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    validate=false,
46
    removeUnreferencedNodes=true
47
)
48
package org.netbeans.modules.hibernate.cfg.model;
49
50
import org.netbeans.modules.schema2beans.Schema2Beans;
51
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
52
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/hibernate/src/org/netbeans/modules/hibernate/mapping/model/package-info.java (+52 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/hibernate-mapping-3.0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/hibernate-mapping-3.0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    validate=false,
46
    removeUnreferencedNodes=true
47
)
48
package org.netbeans.modules.hibernate.mapping.model;
49
50
import org.netbeans.modules.schema2beans.Schema2Beans;
51
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
52
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/hibernate/src/org/netbeans/modules/hibernate/reveng/model/package-info.java (+52 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/hibernate-reverse-engineering-3.0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/hibernate-reverse-engineering-3.0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    validate=false,
46
    removeUnreferencedNodes=true
47
)
48
package org.netbeans.modules.hibernate.reveng.model;
49
50
import org.netbeans.modules.schema2beans.Schema2Beans;
51
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
52
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.dd.webservice/build.xml (-71 lines)
Lines 40-116 Link Here
40
Version 2 license, then the option applies only if the new code is
40
Version 2 license, then the option applies only if the new code is
41
made subject to such option by the copyright holder.
41
made subject to such option by the copyright holder.
42
-->
42
-->
43
44
<project name="j2ee.dd.webservice" default="netbeans" basedir=".">
43
<project name="j2ee.dd.webservice" default="netbeans" basedir=".">
45
  <import file="../nbbuild/templates/projectized.xml"/>
44
  <import file="../nbbuild/templates/projectized.xml"/>
46
47
  <property name="s2b_root_1_1" location="src/org/netbeans/modules/j2ee/dd/impl/webservices/model_1_1"/>
48
  <property name="s2b_root_1_2" location="src/org/netbeans/modules/j2ee/dd/impl/webservices/model_1_2"/>
49
  <property name="s2b_res_root" location="src/org/netbeans/modules/j2ee/dd/impl/resources"/>
50
51
  <target name="s2binit" depends="build-init">
52
	<taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
53
	  <classpath>
54
		<pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
55
		<pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
56
		<pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
57
	  </classpath>
58
	</taskdef>
59
  </target>
60
  
61
   <target name="dd2beansgen" depends="s2binit">
62
     <echo message="generating code generation input file information" />
63
64
	<schema2beans schema="${s2b_res_root}/j2ee_web_services_1_1.xsd"
65
 	  mddFile="${s2b_res_root}/j2ee_web_services_1_1.mdd"
66
	  package="org.netbeans.modules.j2ee.dd.impl.webservices.model_1_1"
67
      schemaType="xmlschema"
68
	  rootDir="src"
69
	  validate="true"
70
	  attrProp="true"
71
	  generateHasChanged="true"
72
	  outputType="javabeans"
73
	  commonInterface="CommonBean"
74
	  useInterfaces="true"
75
	  extendBaseBean="true"
76
	  finder="on /webservices find webservice-description by webservice-description-name,on /webservices/webservice-description/port-component find handler by handler-name,on /webservices/webservice-description/port-component/handler find init-param by param-name,on /webservices/webservice-description find port-component by port-component-name"/>
77
          
78
	<schema2beans schema="${s2b_res_root}/javaee_web_services_1_2.xsd"
79
 	  mddFile="${s2b_res_root}/javaee_web_services_1_2.mdd"
80
	  package="org.netbeans.modules.j2ee.dd.impl.webservices.model_1_2"
81
      schemaType="xmlschema"
82
	  rootDir="src"
83
	  validate="true"
84
	  attrProp="true"
85
	  generateHasChanged="true"
86
	  outputType="javabeans"
87
	  commonInterface="CommonBean"
88
	  useInterfaces="true"
89
	  extendBaseBean="true"
90
	  finder="on /webservices find webservice-description by webservice-description-name,on /webservices/webservice-description/port-component find handler by handler-name,on /webservices/webservice-description/port-component/handler find init-param by param-name,on /webservices/webservice-description find port-component by port-component-name"/>
91
  </target>
92
93
  <target name="compile" depends="dd2beansgen,projectized-common.compile"/>
94
  
95
  <target name="clean" depends="clean-ddgen-src, clean-javadoc, projectized-common.clean"/>
96
97
  <target name="clean-ddgen-src">
98
        <mkdir dir="${s2b_root_1_1}"/>
99
        <mkdir dir="${s2b_root_1_2}"/>
100
        <delete>
101
            <fileset dir="${s2b_root_1_1}">
102
                <include name="*.java"/>
103
            </fileset>
104
             <fileset dir="${s2b_root_1_2}">
105
                <include name="*.java"/>
106
            </fileset>
107
        </delete>
108
        <delete dir="${s2b_root_1_1}"/>
109
        <delete dir="${s2b_root_1_2}"/>
110
  </target>
111
  
112
  <target name="clean-javadoc">
113
  	<delete dir="javadoc"/>
114
  </target>
115
116
</project>
45
</project>
(-)a/j2ee.dd.webservice/src/org/netbeans/modules/j2ee/dd/impl/webservices/model_1_1/package-info.java (+62 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/j2ee_web_services_1_1.xsd",
42
    schemaType=SchemaType.XML_SCHEMA,
43
    mddFile="../../resources/j2ee_web_services_1_1.mdd",
44
    validate=true,
45
    attrProp=true,
46
	generateHasChanged=true,
47
	outputType=OutputType.JAVABEANS,
48
	commonInterface="CommonBean",
49
	useInterfaces=true,
50
	extendBaseBean=true,
51
	finder={
52
        "on /webservices find webservice-description by webservice-description-name",
53
        "on /webservices/webservice-description/port-component find handler by handler-name",
54
        "on /webservices/webservice-description/port-component/handler find init-param by param-name",
55
        "on /webservices/webservice-description find port-component by port-component-name"
56
    }
57
)
58
package org.netbeans.modules.j2ee.dd.impl.webservices.model_1_1;
59
60
import org.netbeans.modules.schema2beans.Schema2Beans;
61
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
62
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.dd.webservice/src/org/netbeans/modules/j2ee/dd/impl/webservices/model_1_2/package-info.java (+62 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/javaee_web_services_1_2.xsd",
42
    schemaType=SchemaType.XML_SCHEMA,
43
    mddFile="../../resources/javaee_web_services_1_2.mdd",
44
    validate=true,
45
    attrProp=true,
46
	generateHasChanged=true,
47
	outputType=OutputType.JAVABEANS,
48
	commonInterface="CommonBean",
49
	useInterfaces=true,
50
	extendBaseBean=true,
51
	finder={
52
        "on /webservices find webservice-description by webservice-description-name",
53
        "on /webservices/webservice-description/port-component find handler by handler-name",
54
        "on /webservices/webservice-description/port-component/handler find init-param by param-name",
55
        "on /webservices/webservice-description find port-component by port-component-name"
56
    }
57
)
58
package org.netbeans.modules.j2ee.dd.impl.webservices.model_1_2;
59
60
import org.netbeans.modules.schema2beans.Schema2Beans;
61
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
62
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.jboss4/build.xml (-84 lines)
Lines 4-10 Link Here
4
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
6
7
8
The contents of this file are subject to the terms of either the GNU
7
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
8
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
9
Development and Distribution License("CDDL") (collectively, the
Lines 42-128 Link Here
42
-->
41
-->
43
<project name="j2ee.jboss4" default="netbeans" basedir=".">
42
<project name="j2ee.jboss4" default="netbeans" basedir=".">
44
    <import file="../nbbuild/templates/projectized.xml"/>
43
    <import file="../nbbuild/templates/projectized.xml"/>
45
  <target name="build-init" depends="projectized.build-init"/>
46
47
  <property name="jb_dir" location="src/org/netbeans/modules/j2ee/jboss4"/>
48
49
  <target name="s2binit" depends="build-init">
50
	<taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
51
	  <classpath>
52
		<pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
53
		<pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
54
		<pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
55
	  </classpath>
56
	</taskdef>
57
  </target>
58
  
59
  <target name="dd2beans_gen" depends="s2binit">
60
      <echo message="generating bean graph for JBoss 4 Server configuration files" />
61
	<schema2beans schema="${jb_dir}/resources/jboss-web_4_0.dtd"
62
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
63
	  schemaType="dtd"
64
	  validate="true"
65
	  attrProp="true"
66
	  removeUnreferencedNodes="true"
67
          docroot="jboss-web"
68
	  rootDir="src"/>
69
	<schema2beans schema="${jb_dir}/resources/jboss-app_4_0.dtd"
70
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
71
	  schemaType="dtd"
72
	  validate="true"
73
	  attrProp="true"
74
	  removeUnreferencedNodes="true"
75
          docroot="jboss-app"
76
	  rootDir="src"/>
77
	<schema2beans schema="${jb_dir}/resources/jboss_4_0.dtd"
78
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
79
	  schemaType="dtd"
80
	  validate="true"
81
	  attrProp="true"
82
	  removeUnreferencedNodes="true"
83
          docroot="jboss"
84
	  rootDir="src"/>
85
	<schema2beans schema="${jb_dir}/resources/jboss-ds_1_5.dtd"
86
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
87
	  schemaType="dtd"
88
	  validate="true"
89
	  attrProp="true"
90
	  removeUnreferencedNodes="true"
91
          docroot="datasources"
92
	  rootDir="src"/>
93
	<schema2beans schema="${jb_dir}/resources/jboss-service_4_0.dtd"
94
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
95
	  schemaType="dtd"
96
	  validate="true"
97
	  attrProp="true"
98
	  removeUnreferencedNodes="true"
99
          docroot="server"
100
	  rootDir="src"/>
101
	<schema2beans schema="${jb_dir}/resources/jboss-client_4_0.dtd"
102
	  package="org.netbeans.modules.j2ee.jboss4.config.gen"
103
	  schemaType="dtd"
104
	  validate="true"
105
	  attrProp="true"
106
	  removeUnreferencedNodes="true"
107
          docroot="jboss-client"
108
	  rootDir="src"/>
109
  </target>
110
  
111
  <target name="compile" depends="dd2beans_gen, projectized-common.compile"/>
112
    
113
  <target name="clean" depends="clean-ddgen-src, projectized-common.clean"/>
114
115
  <target name="clean-ddgen-check">
116
    <available property="have-config" file="${jb_dir}/config/gen"/>
117
  </target>
118
119
  <target name="clean-ddgen-src" if="have-config" depends="clean-ddgen-check">
120
        <delete>
121
            <fileset dir="${jb_dir}/config/gen">
122
                <include name="*.java"/>
123
            </fileset>
124
        </delete>
125
        <delete dir="${jb_dir}/config/gen"/>
126
  </target>
127
</project>
44
</project>
128
(-)a/j2ee.jboss4/src/org/netbeans/modules/j2ee/jboss4/config/gen/package-info.java (+101 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Multiple({
41
    @Schema2Beans(
42
        schema="../../resources/jboss-client_4_0.dtd",
43
        schemaType=SchemaType.DTD,
44
        outputType=OutputType.TRADITIONAL_BASEBEAN,
45
        validate=true,
46
        attrProp=true,
47
        removeUnreferencedNodes=true,
48
        docRoot="jboss-client"
49
    ),
50
    @Schema2Beans(
51
        schema="../../resources/jboss-service_4_0.dtd",
52
        schemaType=SchemaType.DTD,
53
        outputType=OutputType.TRADITIONAL_BASEBEAN,
54
        validate=true,
55
        attrProp=true,
56
        removeUnreferencedNodes=true,
57
        docRoot="server"
58
    ),
59
    @Schema2Beans(
60
        schema="../../resources/jboss-ds_1_5.dtd",
61
        schemaType=SchemaType.DTD,
62
        outputType=OutputType.TRADITIONAL_BASEBEAN,
63
        validate=true,
64
        attrProp=true,
65
        removeUnreferencedNodes=true,
66
        docRoot="datasources"
67
    ),
68
    @Schema2Beans(
69
        schema="../../resources/jboss_4_0.dtd",
70
        schemaType=SchemaType.DTD,
71
        outputType=OutputType.TRADITIONAL_BASEBEAN,
72
        validate=true,
73
        attrProp=true,
74
        removeUnreferencedNodes=true,
75
        docRoot="jboss"
76
    ),
77
    @Schema2Beans(
78
        schema="../../resources/jboss-app_4_0.dtd",
79
        schemaType=SchemaType.DTD,
80
        outputType=OutputType.TRADITIONAL_BASEBEAN,
81
        validate=true,
82
        attrProp=true,
83
        removeUnreferencedNodes=true,
84
        docRoot="jboss-app"
85
    ),
86
    @Schema2Beans(
87
        schema="../../resources/jboss-web_4_0.dtd",
88
        schemaType=SchemaType.DTD,
89
        outputType=OutputType.TRADITIONAL_BASEBEAN,
90
        validate=true,
91
        attrProp=true,
92
        removeUnreferencedNodes=true,
93
        docRoot="jboss-web"
94
    )
95
})
96
package org.netbeans.modules.j2ee.jboss4.config.gen;
97
98
import org.netbeans.modules.schema2beans.Schema2Beans;
99
import org.netbeans.modules.schema2beans.Schema2Beans.Multiple;
100
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
101
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.persistence/build.xml (-95 lines)
Lines 4-10 Link Here
4
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
6
7
8
The contents of this file are subject to the terms of either the GNU
7
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
8
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
9
Development and Distribution License("CDDL") (collectively, the
Lines 42-139 Link Here
42
-->
41
-->
43
<project basedir="." default="netbeans" name="j2ee.persistence">
42
<project basedir="." default="netbeans" name="j2ee.persistence">
44
    <import file="../nbbuild/templates/projectized.xml"/>
43
    <import file="../nbbuild/templates/projectized.xml"/>
45
46
    <property name="s2b_root_orm_1_0" location="src/org/netbeans/modules/j2ee/persistence/dd/orm/model_1_0"/>
47
    <property name="s2b_root_persistence_1_0" location="src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_1_0"/>
48
    <property name="s2b_root_orm_2_0" location="src/org/netbeans/modules/j2ee/persistence/dd/orm/model_2_0"/>
49
    <property name="s2b_root_persistence_2_0" location="src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_2_0"/>
50
    <property name="s2b_res_root" location="src/org/netbeans/modules/j2ee/persistence/dd/resources"/>
51
52
    <target name="s2binit" depends="build-init">
53
        <taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
54
            <classpath>
55
                <pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
56
                <pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
57
                <pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
58
            </classpath>
59
        </taskdef>
60
    </target>
61
62
    <target name="dd2beansgen" depends="s2binit">
63
        <echo message="generating code generation input file information" />
64
        <schema2beans schema="${s2b_res_root}/orm_1_0.xsd"
65
        docRoot="entity-mappings"
66
        mddFile="${s2b_res_root}/orm_1_0.mdd"
67
        package="org.netbeans.modules.j2ee.persistence.dd.orm.model_1_0"
68
        schemaType="xmlschema"
69
        useInterfaces="true"
70
        validate="true"
71
        attrProp="true"
72
        removeUnreferencedNodes="true"
73
        rootDir="src"/> 
74
        <schema2beans schema="${s2b_res_root}/persistence_1_0.xsd"
75
        mddFile="${s2b_res_root}/persistence_1_0.mdd"
76
        package="org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0"
77
        schemaType="xmlschema"
78
        useInterfaces="true"
79
        validate="true"
80
        attrProp="true"
81
        removeUnreferencedNodes="true"
82
        rootDir="src"/> 
83
        <schema2beans schema="${s2b_res_root}/orm_2_0.xsd"
84
        docRoot="entity-mappings"
85
        mddFile="${s2b_res_root}/orm_2_0.mdd"
86
        package="org.netbeans.modules.j2ee.persistence.dd.orm.model_2_0"
87
        schemaType="xmlschema"
88
        useInterfaces="true"
89
        validate="true"
90
        attrProp="true"
91
        removeUnreferencedNodes="true"
92
        rootDir="src"/>
93
        <schema2beans schema="${s2b_res_root}/persistence_2_0.xsd"
94
        mddFile="${s2b_res_root}/persistence_2_0.mdd"
95
        package="org.netbeans.modules.j2ee.persistence.dd.persistence.model_2_0"
96
        schemaType="xmlschema"
97
        useInterfaces="true"
98
        validate="true"
99
        attrProp="true"
100
        removeUnreferencedNodes="true"
101
        rootDir="src"/>
102
    </target>
103
104
    <target name="compile" depends="dd2beansgen,projectized-common.compile"/>
105
  
106
    <target name="clean" depends="projectized-common.clean,clean-ddgen-src"/>
107
108
    <target name="clean-ddgen-src">
109
        <mkdir dir="${s2b_root_orm_1_0}"/>
110
        <mkdir dir="${s2b_root_persistence_1_0}"/>
111
        <delete>
112
            <fileset dir="${s2b_root_orm_1_0}">
113
                <include name="*.java"/>
114
            </fileset>
115
        </delete>
116
        <delete dir="${s2b_root_orm_1_0}"/>
117
        <delete>
118
            <fileset dir="${s2b_root_persistence_1_0}">
119
                <include name="*.java"/>
120
            </fileset>
121
        </delete>
122
        <delete dir="${s2b_root_persistence_1_0}"/>
123
        <mkdir dir="${s2b_root_orm_2_0}"/>
124
        <mkdir dir="${s2b_root_persistence_2_0}"/>
125
        <delete>
126
            <fileset dir="${s2b_root_orm_2_0}">
127
                <include name="*.java"/>
128
            </fileset>
129
        </delete>
130
        <delete dir="${s2b_root_orm_2_0}"/>
131
        <delete>
132
            <fileset dir="${s2b_root_persistence_2_0}">
133
                <include name="*.java"/>
134
            </fileset>
135
        </delete>
136
        <delete dir="${s2b_root_persistence_2_0}"/>
137
    </target>
138
        
139
</project>
44
</project>
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/orm/model_1_0/package-info.java (+55 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/orm_1_0.xsd",
42
    docRoot="entity-mappings",
43
    mddFile="../../resources/orm_1_0.mdd",
44
    schemaType=SchemaType.XML_SCHEMA,
45
    outputType=OutputType.TRADITIONAL_BASEBEAN,
46
    useInterfaces=true,
47
    validate=true,
48
    attrProp=true,
49
    removeUnreferencedNodes=true
50
)
51
package org.netbeans.modules.j2ee.persistence.dd.orm.model_1_0;
52
53
import org.netbeans.modules.schema2beans.Schema2Beans;
54
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
55
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/orm/model_2_0/package-info.java (+55 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/orm_2_0.xsd",
42
    docRoot="entity-mappings",
43
    mddFile="../../resources/orm_2_0.mdd",
44
    schemaType=SchemaType.XML_SCHEMA,
45
    outputType=OutputType.TRADITIONAL_BASEBEAN,
46
    useInterfaces=true,
47
    validate=true,
48
    attrProp=true,
49
    removeUnreferencedNodes=true
50
)
51
package org.netbeans.modules.j2ee.persistence.dd.orm.model_2_0;
52
53
import org.netbeans.modules.schema2beans.Schema2Beans;
54
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
55
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_1_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/persistence_1_0.xsd",
42
    mddFile="../../resources/persistence_1_0.mdd",
43
    schemaType=SchemaType.XML_SCHEMA,
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    useInterfaces=true,
46
    validate=true,
47
    attrProp=true,
48
    removeUnreferencedNodes=true
49
)
50
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_2_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/persistence_2_0.xsd",
42
    mddFile="../../resources/persistence_2_0.mdd",
43
    schemaType=SchemaType.XML_SCHEMA,
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    useInterfaces=true,
46
    validate=true,
47
    attrProp=true,
48
    removeUnreferencedNodes=true
49
)
50
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_2_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/build.xml (-495 lines)
Lines 4-10 Link Here
4
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
6
7
8
The contents of this file are subject to the terms of either the GNU
7
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
8
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
9
Development and Distribution License("CDDL") (collectively, the
Lines 40-539 Link Here
40
Version 2 license, then the option applies only if the new code is
39
Version 2 license, then the option applies only if the new code is
41
made subject to such option by the copyright holder.
40
made subject to such option by the copyright holder.
42
-->
41
-->
43
44
<project name="j2ee.sun.dd" default="netbeans" basedir=".">
42
<project name="j2ee.sun.dd" default="netbeans" basedir=".">
45
  <import file="../nbbuild/templates/projectized.xml"/>
43
  <import file="../nbbuild/templates/projectized.xml"/>
46
  <property name="s2b_root_common_2_1_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_0"/>
47
  <property name="s2b_root_common_2_1_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_1"/>
48
  <property name="s2b_root_common_3_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_3_0_0"/>
49
  <property name="s2b_root_ejb_3_1_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_1_0"/>
50
  <property name="s2b_root_ejb_3_0_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_1"/>
51
  <property name="s2b_root_ejb_3_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_0"/>
52
  <property name="s2b_root_ejb_2_1_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_1"/>
53
  <property name="s2b_root_ejb_2_1_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_0"/>
54
  <property name="s2b_root_ejb_2_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_0_0"/>
55
  <property name="s2b_root_web_3_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_3_0_0"/>
56
  <property name="s2b_root_web_2_5_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_5_0"/>
57
  <property name="s2b_root_web_2_4_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_1"/>
58
  <property name="s2b_root_web_2_4_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_0"/>
59
  <property name="s2b_root_web_2_3_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_3_0"/>
60
  <property name="s2b_root_app_6_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_6_0_0"/>
61
  <property name="s2b_root_app_5_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_5_0_0"/>
62
  <property name="s2b_root_app_1_4_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_4_0"/>
63
  <property name="s2b_root_app_1_3_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_3_0"/>
64
  <property name="s2b_root_client_5_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_5_0_0"/>
65
  <property name="s2b_root_client_6_0_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_6_0_0"/>
66
  <property name="s2b_root_client_1_4_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_1"/>
67
  <property name="s2b_root_client_1_4_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_0"/>
68
  <property name="s2b_root_client_1_3_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_3_0"/>
69
  <property name="s2b_root_cmp_1_0" location="src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_0"/>
70
  <property name="s2b_root_cmp_1_1" location="src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_1"/>
71
  <property name="s2b_root_cmp_1_2" location="src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_2"/>
72
  <property name="s2b_root_server_resources" location="src/org/netbeans/modules/j2ee/sun/dd/impl/serverresources/model"/>
73
  <property name="s2b_res_root" location="src/org/netbeans/modules/j2ee/sun/dd/impl/resources"/>
74
  <property name="s2b_static_verifier" location="src/org/netbeans/modules/j2ee/sun/dd/impl/verifier"/>
75
76
  <target name="build-init" depends="projectized.build-init"/>
77
78
  <target name="s2binit" depends="build-init">
79
	<taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
80
	  <classpath>
81
		<pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
82
		<pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
83
		<pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
84
	  </classpath>
85
	</taskdef>
86
      </target>
87
88
   <target name="dd2beansgen" depends="s2binit">
89
     <echo message="generating code generation input file information" />
90
91
	<schema2beans schema="${s2b_res_root}/common_elements.dtd"
92
 	  mddFile="${s2b_res_root}/common_elements.mdd"
93
          docRoot="dummy"
94
	  package="org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_0"
95
	  useInterfaces="true"
96
	  validate="true"
97
	  attrProp="true"
98
	  rootDir="src"/>
99
        <schema2beans schema="${s2b_res_root}/common_elements_2_1-1.dtd"
100
 	  mddFile="${s2b_res_root}/common_elements_2_1-1.mdd"
101
          docRoot="dummy"
102
	  package="org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_1"
103
	  useInterfaces="true"
104
	  validate="true"
105
	  attrProp="true"
106
	  rootDir="src"/>
107
        <schema2beans schema="${s2b_res_root}/common_elements_3_0-0.dtd"
108
 	  mddFile="${s2b_res_root}/common_elements_3_0-0.mdd"
109
          docRoot="dummy"
110
	  package="org.netbeans.modules.j2ee.sun.dd.impl.common.model_3_0_0"
111
	  useInterfaces="true"
112
	  validate="true"
113
	  attrProp="true"
114
	  rootDir="src"/> 
115
       <schema2beans schema="${s2b_res_root}/sun-ejb-jar_3_0-1.dtd"
116
 	  mddFile="${s2b_res_root}/sun-ejb-jar_3_0-1.mdd"
117
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_1"
118
          docRoot="sun-ejb-jar"
119
	  useInterfaces="true"
120
	  validate="false"
121
	  attrProp="true"
122
	  rootDir="src"/>
123
       <schema2beans schema="${s2b_res_root}/sun-ejb-jar_3_1-0.dtd"
124
 	  mddFile="${s2b_res_root}/sun-ejb-jar_3_1-0.mdd"
125
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_0"
126
          docRoot="sun-ejb-jar"
127
	  useInterfaces="true"
128
	  validate="false"
129
	  attrProp="true"
130
	  rootDir="src"/>
131
       <schema2beans schema="${s2b_res_root}/sun-ejb-jar_3_0-0.dtd"
132
 	  mddFile="${s2b_res_root}/sun-ejb-jar_3_0-0.mdd"
133
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_0"
134
          docRoot="sun-ejb-jar"
135
	  useInterfaces="true"
136
	  validate="false"
137
	  attrProp="true"
138
	  rootDir="src"/>
139
        <schema2beans schema="${s2b_res_root}/sun-ejb-jar_2_1-1.dtd"
140
 	  mddFile="${s2b_res_root}/sun-ejb-jar_2_1-1.mdd"
141
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1"
142
          docRoot="sun-ejb-jar"
143
	  useInterfaces="true"
144
	  validate="false"
145
	  attrProp="true"
146
	  rootDir="src"/>
147
        <schema2beans schema="${s2b_res_root}/sun-ejb-jar_2_1-0.dtd"
148
 	  mddFile="${s2b_res_root}/sun-ejb-jar_2_1-0.mdd"
149
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_0"
150
          docRoot="sun-ejb-jar"
151
	  useInterfaces="true"
152
	  validate="false"
153
	  attrProp="true"
154
	  rootDir="src"/> 
155
        <schema2beans schema="${s2b_res_root}/sun-ejb-jar_2_0-0.dtd"
156
 	  mddFile="${s2b_res_root}/sun-ejb-jar_2_0-0.mdd"
157
	  package="org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0"
158
          docRoot="sun-ejb-jar"
159
	  useInterfaces="true"
160
	  validate="false"
161
	  attrProp="true"
162
	  rootDir="src"/>   
163
        <schema2beans schema="${s2b_res_root}/sun-web-app_3_0-0.dtd"
164
 	  mddFile="${s2b_res_root}/sun-web-app_3_0-0.mdd"
165
	  package="org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_0"
166
          docRoot="sun-web-app"
167
	  useInterfaces="true"
168
	  validate="false"
169
	  attrProp="true"
170
	  rootDir="src"/>
171
        <schema2beans schema="${s2b_res_root}/sun-web-app_2_5-0.dtd"
172
 	  mddFile="${s2b_res_root}/sun-web-app_2_5-0.mdd"
173
	  package="org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_5_0"
174
          docRoot="sun-web-app"
175
	  useInterfaces="true"
176
	  validate="false"
177
	  attrProp="true"
178
	  rootDir="src"/>  
179
        <schema2beans schema="${s2b_res_root}/sun-web-app_2_4-1.dtd"
180
 	  mddFile="${s2b_res_root}/sun-web-app_2_4-1.mdd"
181
	  package="org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_1"
182
          docRoot="sun-web-app"
183
	  useInterfaces="true"
184
	  validate="false"
185
	  attrProp="true"
186
	  rootDir="src"/>
187
        <schema2beans schema="${s2b_res_root}/sun-web-app_2_4-0.dtd"
188
 	  mddFile="${s2b_res_root}/sun-web-app_2_4-0.mdd"
189
	  package="org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_0"
190
          docRoot="sun-web-app"
191
	  useInterfaces="true"
192
	  validate="false"
193
	  attrProp="true"
194
	  rootDir="src"/> 
195
        <schema2beans schema="${s2b_res_root}/sun-web-app_2_3-0.dtd"
196
 	  mddFile="${s2b_res_root}/sun-web-app_2_3-0.mdd"
197
	  package="org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_3_0"
198
          docRoot="sun-web-app"
199
	  useInterfaces="true"
200
	  validate="false"
201
	  attrProp="true"
202
	  rootDir="src"/>   
203
        <schema2beans schema="${s2b_res_root}/sun-application_6_0-0.dtd"
204
 	  mddFile="${s2b_res_root}/sun-application_6_0-0.mdd"
205
	  package="org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_0"
206
          docRoot="sun-application"
207
	  useInterfaces="true"
208
	  validate="false"
209
	  attrProp="true"
210
	  rootDir="src"/>
211
        <schema2beans schema="${s2b_res_root}/sun-application_5_0-0.dtd"
212
 	  mddFile="${s2b_res_root}/sun-application_5_0-0.mdd"
213
	  package="org.netbeans.modules.j2ee.sun.dd.impl.app.model_5_0_0"
214
          docRoot="sun-application"
215
	  useInterfaces="true"
216
	  validate="false"
217
	  attrProp="true"
218
	  rootDir="src"/>
219
        <schema2beans schema="${s2b_res_root}/sun-application_1_4-0.dtd"
220
 	  mddFile="${s2b_res_root}/sun-application_1_4-0.mdd"
221
	  package="org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_4_0"
222
          docRoot="sun-application"
223
	  useInterfaces="true"
224
	  validate="false"
225
	  attrProp="true"
226
	  rootDir="src"/>  
227
        <schema2beans schema="${s2b_res_root}/sun-application_1_3-0.dtd"
228
 	  mddFile="${s2b_res_root}/sun-application_1_3-0.mdd"
229
	  package="org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_3_0"
230
          docRoot="sun-application"
231
	  useInterfaces="true"
232
	  validate="false"
233
	  attrProp="true"
234
	  rootDir="src"/>  
235
        <schema2beans schema="${s2b_res_root}/sun-application-client_5_0-0.dtd"
236
 	  mddFile="${s2b_res_root}/sun-application-client_5_0-0.mdd"
237
	  package="org.netbeans.modules.j2ee.sun.dd.impl.client.model_5_0_0"
238
          docRoot="sun-application-client"
239
	  useInterfaces="true"
240
	  validate="false"
241
	  attrProp="true"
242
	  rootDir="src"/>
243
        <schema2beans schema="${s2b_res_root}/sun-application-client_6_0-0.dtd"
244
 	  mddFile="${s2b_res_root}/sun-application-client_6_0-0.mdd"
245
	  package="org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_0"
246
          docRoot="sun-application-client"
247
	  useInterfaces="true"
248
	  validate="false"
249
	  attrProp="true"
250
	  rootDir="src"/>
251
        <schema2beans schema="${s2b_res_root}/sun-application-client_1_4-1.dtd"
252
 	  mddFile="${s2b_res_root}/sun-application-client_1_4-1.mdd"
253
	  package="org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_1"
254
          docRoot="sun-application-client"
255
	  useInterfaces="true"
256
	  validate="false"
257
	  attrProp="true"
258
	  rootDir="src"/>
259
        <schema2beans schema="${s2b_res_root}/sun-application-client_1_4-0.dtd"
260
 	  mddFile="${s2b_res_root}/sun-application-client_1_4-0.mdd"
261
	  package="org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_0"
262
          docRoot="sun-application-client"
263
	  useInterfaces="true"
264
	  validate="false"
265
	  attrProp="true"
266
	  rootDir="src"/>
267
        <schema2beans schema="${s2b_res_root}/sun-application-client_1_3-0.dtd"
268
 	  mddFile="${s2b_res_root}/sun-application-client_1_3-0.mdd"
269
	  package="org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_3_0"
270
          docRoot="sun-application-client"
271
	  useInterfaces="true"
272
	  validate="false"
273
	  attrProp="true"
274
	  rootDir="src"/>
275
        <schema2beans schema="${s2b_res_root}/sun-cmp-mapping_1_0.dtd"
276
            mddFile="${s2b_res_root}/sun-cmp-mapping_1_0.mdd"
277
            package="org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_0"
278
            docRoot="sun-cmp-mappings"
279
            useInterfaces="true"
280
            validate="false"
281
            attrProp="true"
282
            rootDir="src"/>    
283
        <schema2beans schema="${s2b_res_root}/sun-cmp-mapping_1_1.dtd"
284
            mddFile="${s2b_res_root}/sun-cmp-mapping_1_1.mdd"
285
            package="org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_1"
286
            docRoot="sun-cmp-mappings"
287
            useInterfaces="true"
288
            validate="false"
289
            attrProp="true"
290
            rootDir="src"/>
291
        <schema2beans schema="${s2b_res_root}/sun-cmp-mapping_1_2.dtd"
292
            mddFile="${s2b_res_root}/sun-cmp-mapping_1_2.mdd"
293
            package="org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_2"
294
            docRoot="sun-cmp-mappings"
295
            useInterfaces="true"
296
            validate="false"
297
            attrProp="true"
298
            rootDir="src"/>    
299
        <schema2beans schema="${s2b_res_root}/sun-resources_1_3.dtd"
300
 	  mddFile="${s2b_res_root}/sun-resources.mdd"
301
	  package="org.netbeans.modules.j2ee.sun.dd.impl.serverresources.model"
302
          docRoot="resources"
303
	  useInterfaces="true"
304
	  validate="false"
305
	  attrProp="true"
306
	  rootDir="src"/>     
307
        <schema2beans schema="${s2b_res_root}/static-verification_1_4.dtd"
308
	  package="org.netbeans.modules.j2ee.sun.dd.impl.verifier"
309
          docRoot="static-verification"
310
	  useInterfaces="false"
311
	  validate="false"
312
	  attrProp="true"
313
	  rootDir="src"/>     
314
	  <!--<delete file="${s2b_root_2_4}/WebAppType.java"/>-->
315
  </target>
316
  
317
  <target name="gen-sun-cmp-mappings-interfaces" depends="s2binit">
318
    <echo message="generating sun-cmp-mappings schema2beans code."/>
319
    <schema2beans schema="${s2b_res_root}/sun-cmp-mapping_1_2.dtd"
320
          mddFile="${s2b_res_root}/sun-cmp-mapping_1_2.mdd"
321
          package="org.netbeans.modules.j2ee.sun.dd.api.cmp"
322
          docRoot="sun-cmp-mappings"
323
          generateInterfaces="true"
324
          validate="false"
325
          attrProp="true"
326
          rootDir="src"/>
327
  </target>      
328
    
329
  <target name="compile" depends="dd2beansgen, release, projectized-common.compile"/>
330
  
331
  <target name="release">
332
    <!--copy todir="${cdp.dest.dir}/${cluster.dir}/${nb.modules/autoload.dir}">
333
      <fileset dir="release/modules/autoload"/>
334
    </copy-->
335
  </target>
336
337
338
  <target name="clean" depends="projectized-common.clean">
339
        <mkdir dir="${s2b_root_common_2_1_0}"/>
340
        <mkdir dir="${s2b_root_common_2_1_1}"/>
341
        <mkdir dir="${s2b_root_common_3_0_0}"/>
342
        <mkdir dir="${s2b_root_ejb_3_1_0}"/>
343
        <mkdir dir="${s2b_root_ejb_3_0_1}"/>
344
        <mkdir dir="${s2b_root_ejb_3_0_0}"/>
345
        <mkdir dir="${s2b_root_ejb_2_1_1}"/>
346
        <mkdir dir="${s2b_root_ejb_2_1_0}"/>
347
        <mkdir dir="${s2b_root_ejb_2_0_0}"/>
348
        <mkdir dir="${s2b_root_web_3_0_0}"/>
349
        <mkdir dir="${s2b_root_web_2_5_0}"/>
350
        <mkdir dir="${s2b_root_web_2_4_1}"/>
351
        <mkdir dir="${s2b_root_web_2_4_0}"/>
352
        <mkdir dir="${s2b_root_web_2_3_0}"/>
353
        <mkdir dir="${s2b_root_app_6_0_0}"/>
354
        <mkdir dir="${s2b_root_app_5_0_0}"/>
355
        <mkdir dir="${s2b_root_app_1_4_0}"/>
356
        <mkdir dir="${s2b_root_app_1_3_0}"/>
357
        <mkdir dir="${s2b_root_client_6_0_0}"/>
358
        <mkdir dir="${s2b_root_client_5_0_0}"/>
359
        <mkdir dir="${s2b_root_client_1_4_1}"/>
360
        <mkdir dir="${s2b_root_client_1_4_0}"/>
361
        <mkdir dir="${s2b_root_client_1_3_0}"/>
362
        <mkdir dir="${s2b_root_cmp_1_0}"/>
363
        <mkdir dir="${s2b_root_cmp_1_1}"/>
364
        <mkdir dir="${s2b_root_cmp_1_2}"/>
365
        <mkdir dir="${s2b_root_server_resources}"/>
366
	<mkdir dir="${s2b_static_verifier}"/>
367
        <delete>
368
            <fileset dir="${s2b_root_common_2_1_0}">
369
                <include name="*.java"/>
370
            </fileset>
371
        </delete>
372
        <delete dir="${s2b_root_common_2_1_0}"/>
373
        <delete>
374
            <fileset dir="${s2b_root_common_2_1_1}">
375
                <include name="*.java"/>
376
            </fileset>
377
        </delete>
378
        <delete dir="${s2b_root_common_2_1_1}"/>
379
        <delete>
380
            <fileset dir="${s2b_root_common_3_0_0}">
381
                <include name="*.java"/>
382
            </fileset>
383
        </delete>
384
        <delete dir="${s2b_root_common_3_0_0}"/>
385
        <delete>
386
            <fileset dir="${s2b_root_ejb_3_1_0}">
387
                <include name="*.java"/>
388
            </fileset>
389
        </delete>
390
        <delete dir="${s2b_root_ejb_3_1_0}"/>
391
        <delete>
392
            <fileset dir="${s2b_root_ejb_3_0_1}">
393
                <include name="*.java"/>
394
            </fileset>
395
        </delete>
396
        <delete dir="${s2b_root_ejb_3_0_1}"/>
397
        <delete>
398
            <fileset dir="${s2b_root_ejb_3_0_0}">
399
                <include name="*.java"/>
400
            </fileset>
401
        </delete>
402
        <delete dir="${s2b_root_ejb_3_0_0}"/>
403
        <delete>
404
            <fileset dir="${s2b_root_ejb_2_1_1}">
405
                <include name="*.java"/>
406
            </fileset>
407
        </delete>
408
        <delete dir="${s2b_root_ejb_2_1_1}"/>
409
        <delete>
410
            <fileset dir="${s2b_root_ejb_2_1_0}">
411
                <include name="*.java"/>
412
            </fileset>
413
        </delete>
414
        <delete dir="${s2b_root_ejb_2_1_0}"/>
415
        <delete>
416
            <fileset dir="${s2b_root_ejb_2_0_0}">
417
                <include name="*.java"/>
418
            </fileset>
419
        </delete>
420
        <delete dir="${s2b_root_ejb_2_0_0}"/>
421
        <delete>
422
            <fileset dir="${s2b_root_web_3_0_0}">
423
                <include name="*.java"/>
424
            </fileset>
425
        </delete>
426
        <delete dir="${s2b_root_web_3_0_0}"/>
427
        <delete>
428
            <fileset dir="${s2b_root_web_2_5_0}">
429
                <include name="*.java"/>
430
            </fileset>
431
        </delete>
432
        <delete dir="${s2b_root_web_2_5_0}"/>
433
        <delete>
434
            <fileset dir="${s2b_root_web_2_4_1}">
435
                <include name="*.java"/>
436
            </fileset>
437
        </delete>
438
        <delete dir="${s2b_root_web_2_4_1}"/>
439
        <delete>
440
            <fileset dir="${s2b_root_web_2_4_0}">
441
                <include name="*.java"/>
442
            </fileset>
443
        </delete>
444
        <delete dir="${s2b_root_web_2_4_0}"/>
445
        <delete>
446
            <fileset dir="${s2b_root_web_2_3_0}">
447
                <include name="*.java"/>
448
            </fileset>
449
        </delete>
450
        <delete dir="${s2b_root_web_2_3_0}"/>
451
        <delete>
452
            <fileset dir="${s2b_root_app_6_0_0}">
453
                <include name="*.java"/>
454
            </fileset>
455
        </delete>
456
        <delete dir="${s2b_root_app_6_0_0}"/>
457
        <delete>
458
            <fileset dir="${s2b_root_app_5_0_0}">
459
                <include name="*.java"/>
460
            </fileset>
461
        </delete>
462
        <delete dir="${s2b_root_app_5_0_0}"/>
463
        <delete>
464
            <fileset dir="${s2b_root_app_1_4_0}">
465
                <include name="*.java"/>
466
            </fileset>
467
        </delete>
468
        <delete dir="${s2b_root_app_1_4_0}"/>
469
        <delete>
470
            <fileset dir="${s2b_root_app_1_3_0}">
471
                <include name="*.java"/>
472
            </fileset>
473
        </delete>
474
        <delete dir="${s2b_root_app_1_3_0}"/>
475
        <delete>
476
            <fileset dir="${s2b_root_client_5_0_0}">
477
                <include name="*.java"/>
478
            </fileset>
479
        </delete>
480
        <delete dir="${s2b_root_client_5_0_0}"/>
481
        <delete>
482
            <fileset dir="${s2b_root_client_6_0_0}">
483
                <include name="*.java"/>
484
            </fileset>
485
        </delete>
486
        <delete dir="${s2b_root_client_6_0_0}"/>
487
        <delete>
488
            <fileset dir="${s2b_root_client_1_4_1}">
489
                <include name="*.java"/>
490
            </fileset>
491
        </delete>
492
        <delete dir="${s2b_root_client_1_4_1}"/>
493
        <delete>
494
            <fileset dir="${s2b_root_client_1_4_0}">
495
                <include name="*.java"/>
496
            </fileset>
497
        </delete>
498
        <delete dir="${s2b_root_client_1_4_0}"/>
499
        <delete>
500
            <fileset dir="${s2b_root_client_1_3_0}">
501
                <include name="*.java"/>
502
            </fileset>
503
        </delete>
504
        <delete dir="${s2b_root_client_1_3_0}"/>    
505
        <delete>
506
            <fileset dir="${s2b_root_cmp_1_0}">
507
                <include name="*.java"/>
508
            </fileset>
509
        </delete>
510
        <delete dir="${s2b_root_cmp_1_0}"/>
511
        <delete>
512
            <fileset dir="${s2b_root_cmp_1_1}">
513
                <include name="*.java"/>
514
            </fileset>
515
        </delete>
516
        <delete dir="${s2b_root_cmp_1_1}"/>
517
        <delete>
518
            <fileset dir="${s2b_root_cmp_1_2}">
519
                <include name="*.java"/>
520
            </fileset>
521
        </delete>
522
        <delete dir="${s2b_root_cmp_1_2}"/>
523
        <delete>
524
            <fileset dir="${s2b_root_server_resources}">
525
                <include name="*.java"/>
526
            </fileset>
527
        </delete>
528
        <delete dir="${s2b_root_server_resources}"/>
529
        <delete>
530
            <fileset dir="${s2b_static_verifier}">
531
                <include name="*.java"/>
532
            </fileset>
533
        </delete>
534
        <delete dir="${s2b_static_verifier}"/>
535
  </target>
536
    <target name="javahelp" >
537
    </target>
538
</project>
44
</project>
539
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/api/cmp/package-info.java (+50 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
/*
41
@Schema2Beans(
42
    schema="../../impl/resources/sun-cmp-mapping_1_2.dtd",
43
    mddFile="../../impl/resources/sun-cmp-mapping_1_2.mdd",
44
    docRoot="sun-cmp-mappings",
45
    generateInterfaces=true,
46
    validate=false,
47
    attrProp=true
48
)
49
 */
50
package org.netbeans.modules.j2ee.sun.dd.api.cmp;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_3_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application_1_3-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application_1_3-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_3_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_4_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application_1_4-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application_1_4-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_4_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_5_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application_5_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application_5_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_5_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_6_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application_6_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application_6_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_3_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application-client_1_3-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application-client_1_3-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application-client",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_3_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application-client_1_4-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application-client_1_4-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application-client",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application-client_1_4-1.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application-client_1_4-1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application-client",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_5_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application-client_5_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application-client_5_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application-client",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_5_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_6_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-application-client_6_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-application-client_6_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-application-client",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-cmp-mapping_1_0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-cmp-mapping_1_0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-cmp-mappings",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-cmp-mapping_1_1.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-cmp-mapping_1_1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-cmp-mappings",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_2/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-cmp-mapping_1_2.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-cmp-mapping_1_2.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-cmp-mappings",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_2;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/common_elements.dtd",
42
    schemaType=SchemaType.DTD,
43
 	mddFile="../../resources/common_elements.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="dummy",
46
	useInterfaces=true,
47
	validate=true,
48
	attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/common_elements_2_1-1.dtd",
42
    schemaType=SchemaType.DTD,
43
 	mddFile="../../resources/common_elements_2_1-1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="dummy",
46
	useInterfaces=true,
47
	validate=true,
48
	attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_3_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/common_elements_3_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/common_elements_3_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="dummy",
46
    useInterfaces=true,
47
    validate=true,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_3_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_2_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_2_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_2_1-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_2_1-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_2_1-1.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_2_1-1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_3_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_3_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_3_0-1.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_3_0-1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_1_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-ejb-jar_3_1-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-ejb-jar_3_1-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-ejb-jar",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_3_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-web-app_2_3-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-web-app_2_3-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-web-app",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_3_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-web-app_2_4-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-web-app_2_4-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-web-app",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_1/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-web-app_2_4-1.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-web-app_2_4-1.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-web-app",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_1;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_5_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-web-app_2_5-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-web-app_2_5-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-web-app",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_5_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_3_0_0/package-info.java (+54 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../resources/sun-web-app_3_0-0.dtd",
42
    schemaType=SchemaType.DTD,
43
    mddFile="../../resources/sun-web-app_3_0-0.mdd",
44
    outputType=OutputType.TRADITIONAL_BASEBEAN,
45
    docRoot="sun-web-app",
46
    useInterfaces=true,
47
    validate=false,
48
    attrProp=true
49
)
50
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_0;
51
52
import org.netbeans.modules.schema2beans.Schema2Beans;
53
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
54
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/j2eeserver/build.xml (-55 lines)
Lines 4-10 Link Here
4
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
6
7
8
The contents of this file are subject to the terms of either the GNU
7
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
8
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
9
Development and Distribution License("CDDL") (collectively, the
Lines 44-108 Link Here
44
<project name="j2eeserver" default="netbeans" basedir=".">
43
<project name="j2eeserver" default="netbeans" basedir=".">
45
  <import file="../nbbuild/templates/projectized.xml"/>
44
  <import file="../nbbuild/templates/projectized.xml"/>
46
45
47
  <target name="build-init" depends="projectized.build-init"/>
48
49
  <target name="s2binit" depends="build-init">
50
	<taskdef name="schema2beans" classname="org.netbeans.modules.s2banttask.Schema2BeansAntTask">
51
	  <classpath>
52
		<pathelement path="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
53
		<pathelement path="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
54
		<pathelement path="${nb_all}/schema2beans/anttask/s2banttask.jar"/>
55
	  </classpath>
56
	</taskdef>
57
  </target>
58
59
  <target name="privatedtds">
60
      <antcall target="ddgen">
61
          <param name="dtdfile" value="src/org/netbeans/modules/j2ee/deployment/plugins/api/netbeans-deployment.dtd"/>
62
          <param name="dtdpackage" value="org.netbeans.modules.j2ee.deployment.impl.gen.nbd"/>
63
          <param name="dtddir" value="org/netbeans/modules/j2ee/deployment/impl/gen/nbd"/>
64
      </antcall>
65
  </target>
66
67
  <target name="ddinit">
68
        <mkdir dir="src/${dtddir}"/>
69
        <uptodate property="dd.generation" 
70
                targetfile="${dtdfile}">
71
            <srcfiles dir="src/${dtddir}" includes="*.java"/>
72
        </uptodate> 
73
  </target>
74
75
  <target name="ddgen" depends="init,ddinit" if="dd.generation">
76
     <echo message="Generated schema2beans from ${dtdfile}"/>
77
     <java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="yes">
78
       <classpath>
79
          <pathelement location="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
80
          <pathelement location="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
81
          <pathelement location="${openide.dir}/core/openide.jar"/>
82
          <pathelement location="${openide.loaders.dir}/core/openide-loaders.jar"/>
83
       </classpath>
84
       <arg line= "-f ${dtdfile}" />
85
       <arg line= "-p ${dtdpackage}" />
86
       <arg line= "-r src" />
87
       <arg line="-javaBeans"/>
88
       <arg line="-commonInterface"/>
89
       <arg line="-extendBaseBean"/>
90
     </java>
91
  </target> 
92
93
  <target name="javadocdtds">
46
  <target name="javadocdtds">
94
      <copy file="src/org/netbeans/modules/j2ee/deployment/plugins/api/netbeans-deployment.dtd"
47
      <copy file="src/org/netbeans/modules/j2ee/deployment/plugins/api/netbeans-deployment.dtd"
95
        tofile="${netbeans.javadoc.dir}/${code.name.base.dashes}/org/netbeans/modules/j2ee/deployment/plugins/spi/netbeans-deployment.dtd"/>
48
        tofile="${netbeans.javadoc.dir}/${code.name.base.dashes}/org/netbeans/modules/j2ee/deployment/plugins/spi/netbeans-deployment.dtd"/>
96
  </target>
49
  </target>
97
  
50
  
98
  <target name="compile" depends="privatedtds, projectized-common.compile"/>
99
  
100
  <target name="clean" depends="clean-ddgen-src, projectized-common.clean"/>
101
102
  <target name="clean-ddgen-src">
103
    <delete dir="src/org/netbeans/modules/j2ee/deployment/impl/gen"/>
104
  </target>
105
  
106
  <target name="javadoc" depends="javadocdtds, projectized.javadoc"/>  
51
  <target name="javadoc" depends="javadocdtds, projectized.javadoc"/>  
107
</project>
52
</project>
108
53
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/gen/nbd/package-info.java (+51 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
@Schema2Beans(
41
    schema="../../../plugins/api/netbeans-deployment.dtd",
42
    schemaType=SchemaType.DTD,
43
    outputType=OutputType.JAVABEANS,
44
    // XXX commonInterface="...",
45
    extendBaseBean=true
46
)
47
package org.netbeans.modules.j2ee.deployment.impl.gen.nbd;
48
49
import org.netbeans.modules.schema2beans.Schema2Beans;
50
import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
51
import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
(-)a/nbbuild/antsrc/org/netbeans/nbbuild/CustomJavac.java (+7 lines)
Lines 99-104 Link Here
99
            createCompilerArg().setPath(processorPath);
99
            createCompilerArg().setPath(processorPath);
100
        }
100
        }
101
        createCompilerArg().setValue("-implicit:class");
101
        createCompilerArg().setValue("-implicit:class");
102
        File generatedClassesDir = new File(getDestdir().getParentFile(), getDestdir().getName() + "-generated");
103
        if (generatedClassesDir.isDirectory() || generatedClassesDir.mkdirs()) {
104
            createCompilerArg().setValue("-s");
105
            createCompilerArg().setFile(generatedClassesDir);
106
        } else {
107
            log("Warning: could not create " + generatedClassesDir, Project.MSG_WARN);
108
        }
102
        String specifiedCompiler = getProject().getProperty("build.compiler");
109
        String specifiedCompiler = getProject().getProperty("build.compiler");
103
        if (specifiedCompiler != null) {
110
        if (specifiedCompiler != null) {
104
            if (specifiedCompiler.equals("extJavac")) {
111
            if (specifiedCompiler.equals("extJavac")) {
(-)a/nbbuild/javadoctools/links.xml (+1 lines)
Lines 192-194 Link Here
192
<link href="${javadoc.docs.org-netbeans-modules-jellytools-platform}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-jellytools-platform"/>
192
<link href="${javadoc.docs.org-netbeans-modules-jellytools-platform}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-jellytools-platform"/>
193
<link href="${javadoc.docs.org-netbeans-modules-jellytools-ruby}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-jellytools-ruby"/>
193
<link href="${javadoc.docs.org-netbeans-modules-jellytools-ruby}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-jellytools-ruby"/>
194
<link href="${javadoc.docs.org-netbeans-modules-javacard-spi}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-javacard-spi"/>
194
<link href="${javadoc.docs.org-netbeans-modules-javacard-spi}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-javacard-spi"/>
195
<link href="${javadoc.docs.org-netbeans-modules-schema2beans}" offline="true" packagelistloc="${netbeans.javadoc.dir}/org-netbeans-modules-schema2beans"/>
(-)a/nbbuild/javadoctools/properties.xml (+1 lines)
Lines 190-192 Link Here
190
<property name="javadoc.docs.org-netbeans-modules-jellytools-platform" value="${javadoc.web.root}/org-netbeans-modules-jellytools-platform"/>
190
<property name="javadoc.docs.org-netbeans-modules-jellytools-platform" value="${javadoc.web.root}/org-netbeans-modules-jellytools-platform"/>
191
<property name="javadoc.docs.org-netbeans-modules-jellytools-ruby" value="${javadoc.web.root}/org-netbeans-modules-jellytools-ruby"/>
191
<property name="javadoc.docs.org-netbeans-modules-jellytools-ruby" value="${javadoc.web.root}/org-netbeans-modules-jellytools-ruby"/>
192
<property name="javadoc.docs.org-netbeans-modules-javacard-spi" value="${javadoc.web.root}/org-netbeans-modules-javacard-spi"/>
192
<property name="javadoc.docs.org-netbeans-modules-javacard-spi" value="${javadoc.web.root}/org-netbeans-modules-javacard-spi"/>
193
<property name="javadoc.docs.org-netbeans-modules-schema2beans" value="${javadoc.web.root}/org-netbeans-modules-schema2beans"/>
(-)a/nbbuild/javadoctools/replaces.xml (+1 lines)
Lines 190-192 Link Here
190
<replacefilter token="@org-netbeans-modules-jellytools-platform@" value="${javadoc.docs.org-netbeans-modules-jellytools-platform}"/>
190
<replacefilter token="@org-netbeans-modules-jellytools-platform@" value="${javadoc.docs.org-netbeans-modules-jellytools-platform}"/>
191
<replacefilter token="@org-netbeans-modules-jellytools-ruby@" value="${javadoc.docs.org-netbeans-modules-jellytools-ruby}"/>
191
<replacefilter token="@org-netbeans-modules-jellytools-ruby@" value="${javadoc.docs.org-netbeans-modules-jellytools-ruby}"/>
192
<replacefilter token="@org-netbeans-modules-javacard-spi@" value="${javadoc.docs.org-netbeans-modules-javacard-spi}"/>
192
<replacefilter token="@org-netbeans-modules-javacard-spi@" value="${javadoc.docs.org-netbeans-modules-javacard-spi}"/>
193
<replacefilter token="@org-netbeans-modules-schema2beans@" value="${javadoc.docs.org-netbeans-modules-schema2beans}"/>
(-)a/schema2beans/anttask/build.xml (-82 lines)
Lines 1-82 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
7
8
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
11
"License"). You may not use this file except in compliance with the
12
License. You can obtain a copy of the License at
13
http://www.netbeans.org/cddl-gplv2.html
14
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
15
specific language governing permissions and limitations under the
16
License.  When distributing the software, include this License Header
17
Notice in each file and include the License file at
18
nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
19
particular file as subject to the "Classpath" exception as provided
20
by Sun in the GPL Version 2 section of the License file that
21
accompanied this code. If applicable, add the following below the
22
License Header, with the fields enclosed by brackets [] replaced by
23
your own identifying information:
24
"Portions Copyrighted [year] [name of copyright owner]"
25
26
Contributor(s):
27
28
The Original Software is NetBeans. The Initial Developer of the Original
29
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
30
Microsystems, Inc. All Rights Reserved.
31
32
If you wish your version of this file to be governed by only the CDDL
33
or only the GPL Version 2, indicate your decision by adding
34
"[Contributor] elects to include this software in this distribution
35
under the [CDDL or GPL Version 2] license." If you do not indicate a
36
single choice of license, a recipient has the option to distribute
37
your version of this file under either the CDDL, the GPL Version 2 or
38
to extend the choice of license to its licensees as provided above.
39
However, if you add GPL Version 2 code and therefore, elected the GPL
40
Version 2 license, then the option applies only if the new code is
41
made subject to such option by the copyright holder.
42
-->
43
44
<project name="schema2beans_anttask" default="jars" basedir=".">
45
  <import file="../../nbbuild/default-properties.xml"/>
46
47
  <target name="jars" depends="compile">
48
	<jar jarfile="s2banttask.jar"
49
	  basedir="src"
50
	  excludes="**/*.java"
51
	  compress="false">
52
	</jar>
53
  </target>
54
55
  <target name="compile">
56
    <javac srcdir="src" destdir="src" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" target="1.4" source="1.4" >
57
	  <classpath>
58
                <!-- cmdline Ant -->
59
                <pathelement location="${ant.core.lib}"/>
60
                <!-- Ant in NB -->
61
                <!-- Note: in NB 4.0, ${ant.home}/lib/ant.jar will work as is -->
62
                <pathelement path="${netbeans.library.path}"/>
63
		<pathelement location="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar" />
64
		<pathelement location="${nb_all}/schema2beans/dev/schema2beansdev.jar" />
65
	  </classpath>
66
	</javac>
67
  </target>
68
69
  <target name="clean">
70
    <delete>
71
      <fileset dir="src">
72
        <include name="**/*.class"/>
73
      </fileset>
74
    </delete>
75
  </target>
76
77
  <target name="real-clean" depends="clean"
78
          description="Clean everything possible.">
79
	<!-- This jar file is used in taskdef's and will cause a problem during a clean if it's not there. -->
80
	<delete file="s2banttask.jar"/>
81
  </target>
82
</project>
(-)a/schema2beans/build.xml (-13 / +42 lines)
Lines 4-10 Link Here
4
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
6
7
8
The contents of this file are subject to the terms of either the GNU
7
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
8
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
9
Development and Distribution License("CDDL") (collectively, the
Lines 40-58 Link Here
40
Version 2 license, then the option applies only if the new code is
39
Version 2 license, then the option applies only if the new code is
41
made subject to such option by the copyright holder.
40
made subject to such option by the copyright holder.
42
-->
41
-->
42
<project name="schema2beans" default="netbeans" basedir=".">
43
43
44
<project name="schema2beans" default="netbeans" basedir=".">
44
    <import file="../nbbuild/templates/projectized.xml"/>
45
  <import file="../nbbuild/templates/projectized.xml"/>
46
45
47
  <target name="netbeans-extra">
46
    <!-- The genmetadd target should never be part of the regular build.
48
    <ant dir="dev" target="netbeans"/>
47
         These files should only be generated when we know that schema2beans
49
    <ant dir="anttask" target="jars"/>
48
         has no bugs (of importance to this schema file). -->
50
  </target>
49
    <target name="staticgen" depends="genmetadd,genbeangraph,genconfig"/>
51
50
    <target name="genmetadd" depends="init">
52
  <target name="clean" depends="projectized-common.clean">
51
        <echo message="Generating for metadd.dtd"/>
53
    <!-- Because build includes just rt and we need to clean other libs during real-clean: -->
52
        <java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
54
    <ant dir="dev" target="clean"/>
53
            <classpath>
55
    <ant dir="anttask" target="clean"/>
54
                <pathelement path="${build.classes.dir}"/>
56
  </target>
55
            </classpath>
56
            <arg value="-f"/>
57
            <arg file="src/org/netbeans/modules/schema2beansdev/metadd/metadd.dtd"/>
58
            <arg line="-r src -p org.netbeans.modules.schema2beansdev.metadd -premium -noGenInterfaces -nogenerateTimeStamp"/>
59
        </java>
60
    </target>
61
    <target name="genbeangraph" depends="init">
62
        <echo message="Generating for beangraph.xsd"/>
63
        <java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
64
            <classpath>
65
                <pathelement path="${build.classes.dir}"/>
66
            </classpath>
67
            <arg value="-f"/>
68
            <arg file="src/org/netbeans/modules/schema2beansdev/beangraph/beangraph.xsd "/>
69
            <arg line="-xmlschema -r src -p org.netbeans.modules.schema2beansdev.beangraph -premium -noGenInterfaces -nogenerateTimeStamp"/>
70
        </java>
71
    </target>
72
    <target name="genconfig" depends="init">
73
        <echo message="Generating for s2bconfig.xsd"/>
74
        <java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
75
            <classpath>
76
                <pathelement path="${build.classes.dir}"/>
77
            </classpath>
78
            <arg value="-f"/>
79
            <arg file="src/org/netbeans/modules/schema2beansdev/s2bconfig.xsd"/>
80
            <arg line="-mdd src/org/netbeans/modules/schema2beansdev/s2bconfig.mdd -xmlschema -r src"/>
81
            <arg line="-p org.netbeans.modules.schema2beansdev -premium -noGenInterfaces -noCommonInterface -delegator -delegatedir"/>
82
            <arg file="src"/>
83
            <arg line="-delegatepackage org.netbeans.modules.s2banttask -generateSwitches -nogenerateTimeStamp"/>
84
        </java>
85
    </target>
57
86
58
</project>
87
</project>
(-)a/schema2beans/dev/build.xml (-138 lines)
Lines 1-138 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
5
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
6
7
8
The contents of this file are subject to the terms of either the GNU
9
General Public License Version 2 only ("GPL") or the Common
10
Development and Distribution License("CDDL") (collectively, the
11
"License"). You may not use this file except in compliance with the
12
License. You can obtain a copy of the License at
13
http://www.netbeans.org/cddl-gplv2.html
14
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
15
specific language governing permissions and limitations under the
16
License.  When distributing the software, include this License Header
17
Notice in each file and include the License file at
18
nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
19
particular file as subject to the "Classpath" exception as provided
20
by Sun in the GPL Version 2 section of the License file that
21
accompanied this code. If applicable, add the following below the
22
License Header, with the fields enclosed by brackets [] replaced by
23
your own identifying information:
24
"Portions Copyrighted [year] [name of copyright owner]"
25
26
Contributor(s):
27
28
The Original Software is NetBeans. The Initial Developer of the Original
29
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
30
Microsystems, Inc. All Rights Reserved.
31
32
If you wish your version of this file to be governed by only the CDDL
33
or only the GPL Version 2, indicate your decision by adding
34
"[Contributor] elects to include this software in this distribution
35
under the [CDDL or GPL Version 2] license." If you do not indicate a
36
single choice of license, a recipient has the option to distribute
37
your version of this file under either the CDDL, the GPL Version 2 or
38
to extend the choice of license to its licensees as provided above.
39
However, if you add GPL Version 2 code and therefore, elected the GPL
40
Version 2 license, then the option applies only if the new code is
41
made subject to such option by the copyright holder.
42
-->
43
44
<project name="schema2beansdev" default="netbeans" basedir=".">
45
  <import file="../../nbbuild/default.xml"/>
46
47
  <target name="init" depends="default.init">
48
    <path id="cp">
49
      <pathelement location="${schema2beans.dir}/modules/org-netbeans-modules-schema2beans.jar"/>
50
    </path>
51
    <property name="schema2beansdev-jar" location="schema2beansdev.jar" />
52
  </target>
53
54
  <!-- Primary targets. -->
55
56
  <target name="netbeans" depends="jars">
57
  </target>
58
59
  <target name="clean" depends="init">
60
    <delete>
61
      <fileset dir="src">
62
        <include name="**/*.class"/>
63
      </fileset>
64
    </delete>
65
    <delete dir="javadoc"/>
66
    <delete file="schema2beansdev.jar"/>
67
    <delete file="manifest-subst.mf"/>
68
  </target>
69
70
71
  <!-- Secondary targets. -->
72
73
  <target name="jars" depends="compile">
74
    <filter token="BUILD_NUMBER_SUBST" value="${buildnumber}"/>
75
    <copy file="manifest.mf" tofile="manifest-subst.mf"
76
	  filtering="on"/>
77
    <jar jarfile="schema2beansdev.jar" 
78
         manifest="manifest-subst.mf"
79
         compress="false">
80
      <fileset dir="src">
81
        <patternset excludes="**/*.java">
82
          <include name="org/netbeans/modules/schema2beansdev/"/>
83
        </patternset>
84
      </fileset>
85
    </jar>
86
  </target>
87
88
  <target name="compile" depends="init">
89
    <property name="build.compiler.debug" value="true"/>
90
    <javac srcdir="src" destdir="src" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" source="1.5">
91
	  <classpath refID="cp"/>
92
	  <patternset>
93
        <include name="org/netbeans/modules/schema2beansdev/"/>
94
      </patternset>
95
    </javac>
96
  </target>
97
98
  <target name="test" depends="jars">
99
    <ant dir="../../test" antfile="build.xml" />
100
  </target>
101
102
  <target name="cleantest" depends="clean,jars,test"/>
103
104
  <!-- The genmetadd target should never be part of the regular build.
105
       These files should only be generated when we know that schema2beans
106
       has no bugs (of importance to this schema file). -->
107
  <target name="staticgen" depends="genmetadd,genbeangraph,genconfig"/>
108
  <target name="genmetadd" depends="init">
109
	<echo message="Generating for metadd.dtd"/>
110
	<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
111
	  <classpath>
112
		<pathelement path="${schema2beansdev-jar}"/>
113
	  </classpath>
114
	  <classpath refID="cp"/>
115
	  <arg line="-f src/org/netbeans/modules/schema2beansdev/metadd/metadd.dtd -r src -p org.netbeans.modules.schema2beansdev.metadd -premium -noGenInterfaces -nogenerateTimeStamp"/>
116
	</java>
117
  </target>
118
  <target name="genbeangraph" depends="init">
119
	<echo message="Generating for beangraph.xsd"/>
120
	<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
121
	  <classpath>
122
		<pathelement path="${schema2beansdev-jar}"/>
123
	  </classpath>
124
	  <classpath refID="cp"/>
125
	  <arg line="-f src/org/netbeans/modules/schema2beansdev/beangraph/beangraph.xsd -xmlschema -r src -p org.netbeans.modules.schema2beansdev.beangraph -premium -noGenInterfaces -nogenerateTimeStamp"/>
126
	</java>
127
  </target>
128
  <target name="genconfig" depends="init">
129
	<echo message="Generating for s2bconfig.xsd"/>
130
	<java classname="org.netbeans.modules.schema2beansdev.GenBeans" fork="true">
131
	  <classpath>
132
		<pathelement path="${schema2beansdev-jar}"/>
133
	  </classpath>
134
	  <classpath refID="cp"/>
135
	  <arg line="-f src/org/netbeans/modules/schema2beansdev/s2bconfig.xsd -mdd src/org/netbeans/modules/schema2beansdev/s2bconfig.mdd -xmlschema -r src -p org.netbeans.modules.schema2beansdev -premium -noGenInterfaces -noCommonInterface -delegator -delegatedir ../anttask/src -delegatepackage org.netbeans.modules.s2banttask -generateSwitches -nogenerateTimeStamp"/>
136
	</java>
137
  </target>
138
</project>
(-)a/schema2beans/dev/manifest.mf (-7 lines)
Lines 1-7 Link Here
1
Manifest-Version: 1.0
2
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/schema2beansdev/Bundle.properties
3
OpenIDE-Module: org.netbeans.modules.schema2beansdev/1
4
OpenIDE-Module-Implementation-Version: @BUILD_NUMBER_SUBST@
5
OpenIDE-Module-Specification-Version: 1.3
6
OpenIDE-Module-Public-Packages: org.netbeans.modules.schema2beansdev.*, org.netbeans.modules.schema2beansdev.gen.*
7
OpenIDE-Module-Module-Dependencies: org.netbeans.modules.schema2beans/1 > 1.7
(-)a/schema2beans/nbproject/project.properties (-2 / +4 lines)
Lines 38-42 Link Here
38
# made subject to such option by the copyright holder.
38
# made subject to such option by the copyright holder.
39
39
40
is.autoload=true
40
is.autoload=true
41
41
cp.extra=\
42
test.unit.cp.extra=dev/schema2beansdev.jar
42
    ${ant.core.lib}:\
43
    ${nb_all}/apisupport.harness/external/openjdk-javac-6-b12.jar
44
javac.source=1.5
(-)a/schema2beans/nbproject/project.xml (-1 / +7 lines)
Lines 45-51 Link Here
45
    <configuration>
45
    <configuration>
46
        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
46
        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
47
            <code-name-base>org.netbeans.modules.schema2beans</code-name-base>
47
            <code-name-base>org.netbeans.modules.schema2beans</code-name-base>
48
            <module-dependencies/>
48
            <module-dependencies>
49
                <dependency>
50
                    <code-name-base>org.openide.util</code-name-base>
51
                    <build-prerequisite/>
52
                    <compile-dependency/>
53
                </dependency>
54
            </module-dependencies>
49
            <test-dependencies>
55
            <test-dependencies>
50
                <test-type>
56
                <test-type>
51
                    <name>unit</name>
57
                    <name>unit</name>
(-)a/schema2beans/anttask/src/org/netbeans/modules/s2banttask/Schema2BeansAntTask.java (+3 lines)
Lines 46-51 Link Here
46
46
47
import org.apache.tools.ant.BuildException;
47
import org.apache.tools.ant.BuildException;
48
import org.apache.tools.ant.Task;
48
import org.apache.tools.ant.Task;
49
import org.netbeans.modules.schema2beans.Schema2Beans;
49
50
50
import org.netbeans.modules.schema2beansdev.GenBeans;
51
import org.netbeans.modules.schema2beansdev.GenBeans;
51
52
Lines 55-61 Link Here
55
 * This class is an ant task which front ends
56
 * This class is an ant task which front ends
56
 * org.netbeans.modules.schema2beansdev.GenBeans.  It creates a Config
57
 * org.netbeans.modules.schema2beansdev.GenBeans.  It creates a Config
57
 * object and fills it in with data from the build script.
58
 * object and fills it in with data from the build script.
59
 * @deprecated Use {@link Schema2Beans} instead.
58
 */
60
 */
61
@Deprecated
59
public class Schema2BeansAntTask extends S2bConfigDelegator {
62
public class Schema2BeansAntTask extends S2bConfigDelegator {
60
    public Schema2BeansAntTask() {
63
    public Schema2BeansAntTask() {
61
        super(new GenBeans.Config());
64
        super(new GenBeans.Config());
(-)a/schema2beans/src/org/netbeans/modules/schema2beans/Schema2Beans.java (+164 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
package org.netbeans.modules.schema2beans;
41
42
import java.lang.annotation.ElementType;
43
import java.lang.annotation.Retention;
44
import java.lang.annotation.RetentionPolicy;
45
import java.lang.annotation.Target;
46
47
/**
48
 * Placing this annotation on a {@code package-info.java} generates classes from a schema.
49
 * The classes will be generated into the same package.
50
 * @since XXX
51
 */
52
@Retention(RetentionPolicy.SOURCE)
53
@Target(ElementType.PACKAGE)
54
public @interface Schema2Beans {
55
56
    /**
57
     * The schema to process.
58
     * Might be DTD or XSD format.
59
     * <p>The file may be specified as a relative or absolute resource path,
60
     * as in {@link Class#getResource} ({@code ../resources} syntax allowed).
61
     */
62
    String schema();
63
64
    /**
65
     * Type of schema being processed.
66
     */
67
    SchemaType schemaType();
68
69
    /**
70
     * Type of classes to generate.
71
     */
72
    OutputType outputType(); // cannot set default value due to JRE #6512707
73
74
    /**
75
     * The meta-DD file to use ({@code *.mdd}).
76
     * <p>The file may be specified as a relative or absolute resource path,
77
     * as in {@link Class#getResource} ({@code ../resources} syntax allowed).
78
     */
79
    String mddFile() default "";
80
81
    /**
82
     * Whether to validate.
83
     */
84
    boolean validate() default false;
85
86
    /**
87
     * Whether to remove unreferenced nodes.
88
     */
89
    boolean removeUnreferencedNodes() default false;
90
91
    /**
92
     * XXX document
93
     */
94
    boolean attrProp() default false;
95
96
    /**
97
     * XXX document
98
     */
99
    boolean generateHasChanged() default false;
100
101
    /**
102
     * Generate a common interface between all beans.
103
     */
104
    String commonInterface() default "";
105
106
    /**
107
     * XXX document
108
     */
109
    boolean useInterfaces() default false;
110
111
    /**
112
     * XXX document
113
     */
114
    boolean extendBaseBean() default false;
115
116
    /**
117
     * XXX document
118
     */
119
    String[] finder() default {};
120
121
    /**
122
     * XXX document
123
     */
124
    String docRoot() default "";
125
126
    /**
127
     * XXX document
128
     */
129
    boolean generateInterfaces() default false;
130
131
    /**
132
     * Type of schema being processed.
133
     * @see #schemaType
134
     */
135
    enum SchemaType {
136
        /** Document type definition. */
137
        DTD,
138
        /** XML Schema. */
139
        XML_SCHEMA
140
    }
141
142
    /**
143
     * Type of classes to generate.
144
     * @see #outputType
145
     */
146
    enum OutputType {
147
        /** Force use of {@link BaseBean}. Runtime required. */
148
        TRADITIONAL_BASEBEAN,
149
        /** Generate pure JavaBeans that do not need any runtime library support (no {@link BaseBean}). */
150
        JAVABEANS
151
    }
152
153
    /**
154
     * Permits multiple schemas to be generated into the same package.
155
     * <p>The processor must refuse to recreate any given class, so if there might
156
     * be some conflict, put the preferred schema first in the list.
157
     */
158
    @Retention(RetentionPolicy.SOURCE)
159
    @Target(ElementType.PACKAGE)
160
    @interface Multiple {
161
        Schema2Beans[] value();
162
    }
163
164
}
(-)a/schema2beans/dev/src/org/netbeans/modules/schema2beansdev/DocDefParser.java (-17 / +4 lines)
Lines 41-47 Link Here
41
41
42
package org.netbeans.modules.schema2beansdev;
42
package org.netbeans.modules.schema2beansdev;
43
43
44
import java.util.*;
45
import java.io.*;
44
import java.io.*;
46
45
47
import org.netbeans.modules.schema2beans.*;
46
import org.netbeans.modules.schema2beans.*;
Lines 101-122 Link Here
101
        this.handler = handler;
100
        this.handler = handler;
102
    }
101
    }
103
    
102
    
104
    protected void startupReader() throws java.io.IOException {;
103
    protected @Override void startupReader() throws java.io.IOException {
105
        if (schemaIn == null) {
104
        EntityParser entityParser = new EntityParser(new InputStreamReader(schemaIn));
106
            EntityParser entityParser = new EntityParser(filename);
105
        entityParser.parse();
107
            entityParser.parse();
106
        reader = entityParser.getReader();
108
            reader=entityParser.getReader();
109
        }
110
        else
111
            reader = new InputStreamReader(schemaIn);
112
    }
113
    
114
    public void setFilename(File filename) {
115
        this.filename = filename;
116
    }
117
    
118
    public File getFilename() {
119
        return filename;
120
    }
107
    }
121
    
108
    
122
    public void setHandler(DocDefHandler handler) {
109
    public void setHandler(DocDefHandler handler) {
(-)a/schema2beans/dev/src/org/netbeans/modules/schema2beansdev/EntityParser.java (-6 / +12 lines)
Lines 52-67 Link Here
52
 */
52
 */
53
public class EntityParser {
53
public class EntityParser {
54
    private java.util.Map entityMap;
54
    private java.util.Map entityMap;
55
    private File fileName;
55
    private final String text;
56
    /** Creates a new instance of EntityParser */
56
    public EntityParser(Reader reader) throws IOException {
57
    public EntityParser(File fileName) {
57
        StringWriter w = new StringWriter();
58
        this.fileName=fileName;
58
        char[] buf = new char[4096];
59
        int read;
60
        while ((read = reader.read(buf)) != -1) {
61
            w.write(buf, 0, read);
62
        }
63
        this.text = w.toString();
59
        entityMap = new java.util.HashMap();
64
        entityMap = new java.util.HashMap();
60
    }
65
    }
61
    /** Parses file for ENTITY declaration, creates map with entities
66
    /** Parses file for ENTITY declaration, creates map with entities
62
     */
67
     */
63
    public void parse() throws IOException {
68
    public void parse() throws IOException {
64
        BufferedReader br = new BufferedReader(new FileReader(fileName));
69
        BufferedReader br = new BufferedReader(new StringReader(text));
65
        String line = null;
70
        String line = null;
66
        while ((line=br.readLine())!=null) {
71
        while ((line=br.readLine())!=null) {
67
            int startPos = line.indexOf("<!ENTITY ");
72
            int startPos = line.indexOf("<!ENTITY ");
Lines 99-104 Link Here
99
                String val = (String)entityMap.get(entityKey);
104
                String val = (String)entityMap.get(entityKey);
100
		if (val!=null) {
105
		if (val!=null) {
101
		    String newValue = value.substring(0,refStart)+val+value.substring(refEnd+1);
106
		    String newValue = value.substring(0,refStart)+val+value.substring(refEnd+1);
107
            // XXX should use config.messageOut instead
102
		    System.out.println("found ENTITY: % "+key+" \""+newValue+"\"");
108
		    System.out.println("found ENTITY: % "+key+" \""+newValue+"\"");
103
		    entityMap.put(key,newValue);
109
		    entityMap.put(key,newValue);
104
		}
110
		}
Lines 136-142 Link Here
136
     */
142
     */
137
    public Reader getReader() throws IOException {
143
    public Reader getReader() throws IOException {
138
        StringBuffer buf = new StringBuffer();
144
        StringBuffer buf = new StringBuffer();
139
        BufferedReader br = new BufferedReader(new FileReader(fileName));
145
        BufferedReader br = new BufferedReader(new StringReader(text));
140
        String line = null;
146
        String line = null;
141
        while ((line=br.readLine())!=null) {
147
        while ((line=br.readLine())!=null) {
142
            // removing line(s) with entity declaration
148
            // removing line(s) with entity declaration
(-)a/schema2beans/src/org/netbeans/modules/schema2beansdev/Schema2BeansProcessor.java (+206 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
40
package org.netbeans.modules.schema2beansdev;
41
42
import java.io.ByteArrayOutputStream;
43
import java.io.FileNotFoundException;
44
import java.io.IOException;
45
import java.io.OutputStream;
46
import java.io.PrintStream;
47
import java.net.URI;
48
import java.net.URISyntaxException;
49
import java.util.Arrays;
50
import java.util.HashSet;
51
import java.util.Set;
52
import javax.annotation.processing.AbstractProcessor;
53
import javax.annotation.processing.FilerException;
54
import javax.annotation.processing.Processor;
55
import javax.annotation.processing.RoundEnvironment;
56
import javax.annotation.processing.SupportedSourceVersion;
57
import javax.lang.model.SourceVersion;
58
import javax.lang.model.element.Element;
59
import javax.lang.model.element.PackageElement;
60
import javax.lang.model.element.TypeElement;
61
import javax.tools.Diagnostic.Kind;
62
import javax.tools.FileObject;
63
import javax.tools.StandardLocation;
64
import org.netbeans.modules.schema2beans.Schema2Beans;
65
import org.netbeans.modules.schema2beans.Schema2Beans.Multiple;
66
import org.netbeans.modules.schema2beansdev.GenBeans.Config;
67
import org.openide.util.lookup.ServiceProvider;
68
69
@ServiceProvider(service=Processor.class)
70
@SupportedSourceVersion(SourceVersion.RELEASE_6)
71
public class Schema2BeansProcessor extends AbstractProcessor {
72
73
    public @Override Set<String> getSupportedAnnotationTypes() {
74
        return new HashSet<String>(Arrays.asList(
75
                Schema2Beans.class.getCanonicalName(),
76
                Multiple.class.getCanonicalName()));
77
    }
78
79
    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
80
        if (roundEnv.errorRaised() || roundEnv.processingOver()) {
81
            return false;
82
        }
83
        for (Element e : roundEnv.getElementsAnnotatedWith(Schema2Beans.class)) {
84
            handle(e, e.getAnnotation(Schema2Beans.class));
85
        }
86
        for (Element e : roundEnv.getElementsAnnotatedWith(Multiple.class)) {
87
            for (Schema2Beans s2b : e.getAnnotation(Multiple.class).value()) {
88
                handle(e, s2b);
89
            }
90
        }
91
        return true;
92
    }
93
94
    private void handle(final Element e, Schema2Beans s2b) {
95
        try {
96
            Config config = new Config();
97
            config.setAuto(true);
98
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
99
            PrintStream ps = new PrintStream(baos);
100
            config.setMessageOut(ps);
101
            final String pkg = ((PackageElement) e).getQualifiedName().toString();
102
            config.setPackagePath(pkg);
103
            config.setOutputStreamProvider(new GenBeans.OutputStreamProvider() {
104
                public OutputStream getStream(String dir, String name, String extension) throws IOException {
105
                    if (!dir.replace('\\', '/').endsWith(pkg.replace('.', '/'))) {
106
                        throw new IOException("Unexpected dir: " + dir);
107
                    }
108
                    if (!extension.equals("java")) {
109
                        throw new IOException("Unexpected extension: " + extension);
110
                    }
111
                    String nameAndExt = name + "." + extension;
112
                    try {
113
                        processingEnv.getFiler().getResource(StandardLocation.SOURCE_OUTPUT, pkg, nameAndExt).openInputStream().close();
114
                        throw new IOException("should not get here");
115
                    } catch (FilerException x) {
116
                        processingEnv.getMessager().printMessage(Kind.WARNING, "ignoring attempt to regenerate " + nameAndExt/*, e*/);
117
                        return new ByteArrayOutputStream(); // XXX could check that the same contents are written
118
                    } catch (FileNotFoundException x) {
119
                        // expected
120
                    }
121
                    return processingEnv.getFiler().createSourceFile(pkg + "." + name, e).openOutputStream();
122
                }
123
                public boolean isOlderThan(String dir, String name, String extension, long time) throws IOException {
124
                    return true;
125
                }
126
            });
127
            FileObject schema = findResource(s2b.schema(), pkg);
128
            processingEnv.getMessager().printMessage(Kind.NOTE, "generating beans for " + schema.getName() + " in " + pkg/*, e*/);
129
            config.setFileIn(schema.openInputStream());
130
            config.setInputURI(fileObjectToUri(schema).toString());
131
            switch (s2b.schemaType()) {
132
            case DTD:
133
                config.setSchemaType(Config.DTD);
134
                break;
135
            case XML_SCHEMA:
136
                config.setSchemaType(Config.XML_SCHEMA);
137
                break;
138
            default:
139
                assert false;
140
            }
141
            if (s2b.mddFile().length() > 0) {
142
                FileObject mdd = findResource(s2b.mddFile(), pkg);
143
                config.setMddIn(mdd.openInputStream());
144
            }
145
            switch (s2b.outputType()) {
146
            case TRADITIONAL_BASEBEAN:
147
                config.setOutputType(Config.OUTPUT_TRADITIONAL_BASEBEAN);
148
                break;
149
            case JAVABEANS:
150
                config.setOutputType(Config.OUTPUT_JAVABEANS);
151
                break;
152
            default:
153
                assert false;
154
            }
155
            config.setGenerateValidate(s2b.validate());
156
            config.setRemoveUnreferencedNodes(s2b.removeUnreferencedNodes());
157
            config.setAttributesAsProperties(s2b.attrProp());
158
            config.setGenerateHasChanged(s2b.generateHasChanged());
159
            if (s2b.commonInterface().length() > 0) {
160
                config.setGenerateCommonInterface(s2b.commonInterface());
161
            }
162
            config.setUseInterfaces(s2b.useInterfaces());
163
            config.setExtendBaseBean(s2b.extendBaseBean());
164
            config.setFinder(s2b.finder()); // XXX refactor BeanBuilder.processFinder to check syntax
165
            if (s2b.docRoot().length() > 0) {
166
                config.setDocRoot(s2b.docRoot());
167
            }
168
            config.setGenerateInterfaces(s2b.generateInterfaces());
169
            try {
170
                GenBeans.doIt(config);
171
            } finally {
172
                ps.flush();
173
                for (String line : baos.toString().split("\n")) {
174
                    if (line.length() > 0) {
175
                        processingEnv.getMessager().printMessage(Kind.NOTE, line/*, e*/);
176
                    }
177
                }
178
            }
179
        } catch (Exception x) {
180
            // Oddly, the ERROR is never printed.
181
            processingEnv.getMessager().printMessage(Kind.WARNING, x.toString(), e);
182
            processingEnv.getMessager().printMessage(Kind.ERROR, "Could not process");
183
        }
184
    }
185
186
    private FileObject findResource(String path, String pkg) throws URISyntaxException, IOException {
187
        String abspath;
188
        if (path.startsWith("/")) {
189
            abspath = path.substring(1);
190
        } else {
191
            abspath = new URI(null, pkg.replace('.', '/') + "/", null).resolve(new URI(null, path, null)).getPath();
192
        }
193
        FileObject f = processingEnv.getFiler().getResource(StandardLocation.SOURCE_PATH, "", abspath);
194
        return f;
195
    }
196
197
    /** Workaround for JRE #6419926 */
198
    private URI fileObjectToUri(FileObject f) throws URISyntaxException {
199
        URI u = f.toUri();
200
        if (u.getScheme() == null) {
201
            u = new URI("file", u.getPath(), u.getFragment());
202
        }
203
        return u;
204
    }
205
206
}

Return to bug 178426