Create a schema2beans ant task.
Add checkUpToDate feature, which only does generation if the source files are newer than the generated files.
For "pure java beans" added another constructor: one for all required properties.
1.1 --- a/schema2beans/build.xml Wed Apr 02 09:45:37 2003 +0000
1.2 +++ b/schema2beans/build.xml Wed Apr 02 22:17:49 2003 +0000
1.3 @@ -47,6 +47,7 @@
1.4 <delete dir="Info"/>
1.5 <ant dir="rt" antfile="build.xml" target="clean"/>
1.6 <ant dir="dev" antfile="build.xml" target="clean"/>
1.7 + <ant dir="anttask" antfile="build.xml" target="clean"/>
1.8 </target>
1.9
1.10
1.11 @@ -57,6 +58,8 @@
1.12 <ant dir="rt" antfile="build.xml" target="jars"/>
1.13 <echo message="Building dev jars"/>
1.14 <ant dir="dev" antfile="build.xml" target="jars"/>
1.15 + <echo message="Building anttask jars"/>
1.16 + <ant dir="anttask" antfile="build.xml" target="jars"/>
1.17 <mkdir dir="netbeans"/>
1.18 <copy todir="netbeans">
1.19 <fileset dir="rt/netbeans"/>
2.1 --- a/schema2beans/test/unit/src/TestMain.java Wed Apr 02 09:45:37 2003 +0000
2.2 +++ b/schema2beans/test/unit/src/TestMain.java Wed Apr 02 22:17:49 2003 +0000
2.3 @@ -386,12 +386,12 @@
2.4 URL url = cls.getResource(shortName + ".class");
2.5 String file = url.getFile();
2.6 if (url.getProtocol().equals("jar")) {
2.7 - // example: file = 'file:/usr/local/j2sdkee1.3.1/lib/j2ee.jar!/org/w3c/dom/Node.class'
2.8 + // example: file = 'jar:/usr/local/j2sdkee1.3.1/lib/j2ee.jar!/org/w3c/dom/Node.class'
2.9 String jarFile = file.substring(file.indexOf(':')+1);
2.10 jarFile = jarFile.substring(0, jarFile.indexOf('!'));
2.11 return jarFile;
2.12 } else if (url.getProtocol().equals("file")) {
2.13 - // example: file='/home/cliffwd/cvs/dublin/nb_all/schema2beans/src/org/netbeans/modules/schema2beans/GenBeans.class'
2.14 + // example: file='/home/cliffwd/cvs/dublin/nb_all/schema2beans/rt/src/org/netbeans/modules/schema2beans/GenBeans.class'
2.15 String result = file.substring(0, file.length() - cls.getName().length() - 6);
2.16 return result;
2.17 } else {