Generate some read/write methods that take FileObjects (only if !standalone), making the beans easier to use in NetBeans.
Add FileObject's jar into the tests, so that the above can compile.
1.1 --- a/schema2beans/test/build-unit.xml Wed Nov 05 22:43:56 2003 +0000
1.2 +++ b/schema2beans/test/build-unit.xml Fri Nov 07 20:31:36 2003 +0000
1.3 @@ -28,7 +28,7 @@
1.4 -->
1.5
1.6 <!-- List of directories where jars will be searched. -->
1.7 - <property name="xtest.extra.jars.path" location=""/>
1.8 + <property name="xtest.extra.jars.path" location="${netbeans.home}/lib"/>
1.9
1.10 <!-- This jars is used for compilation, execution codetests and also for
1.11 execution ide tests (it means this classpath will be mounted in repository).
1.12 @@ -36,7 +36,7 @@
1.13 this file will be searched in directories specified by property xtest.extra.jars.path
1.14 example: <property name="xtest.extra.jars" value="jemmy.jar;jelly.jar"/>
1.15 -->
1.16 - <property name="xtest.extra.jars" value=""/>
1.17 + <property name="xtest.extra.jars" value="openide.jar"/>
1.18
1.19 <!-- These jars will be copied to directory ${netebans.home}/lib/ext.
1.20 Again you can write only name of jar or zip file, not in which directory it is and
2.1 --- a/schema2beans/test/build.xml Wed Nov 05 22:43:56 2003 +0000
2.2 +++ b/schema2beans/test/build.xml Fri Nov 07 20:31:36 2003 +0000
2.3 @@ -19,7 +19,7 @@
2.4 <property name="build.sysclasspath" value="ignore"/>
2.5
2.6 <!-- Points to directory with IDE to test-->
2.7 - <property name="netbeans.home" location="../../../../nbbuild/netbeans"/>
2.8 + <property name="netbeans.home" location="../../nbbuild/netbeans"/>
2.9
2.10 <!-- Name of tested module -->
2.11 <property name="xtest.module" value="schema2beans"/>
3.1 --- a/schema2beans/test/unit/src/TestMain.java Wed Nov 05 22:43:56 2003 +0000
3.2 +++ b/schema2beans/test/unit/src/TestMain.java Fri Nov 07 20:31:36 2003 +0000
3.3 @@ -441,6 +441,7 @@
3.4 System.out.println("dataDirName="+dataDirName);
3.5
3.6 theClassPath += classPathEntryFromURL(org.netbeans.modules.schema2beans.BaseBean.class);
3.7 + theClassPath += File.pathSeparator + classPathEntryFromURL(org.openide.filesystems.FileObject.class);
3.8 //theClassPath += File.pathSeparator + classPathEntryFromURL(javax.xml.namespace.QName.class);
3.9 //theClassPath += File.pathSeparator + classPathEntryFromURL(org.w3c.dom.Node.class);
3.10 //theClassPath += File.pathSeparator + classPathEntryFromURL(javax.xml.parsers.DocumentBuilderFactory.newInstance().getClass());