Some minor enhancements that have been sitting in my path for a little while. refact_last_known_good_trunk_before_merge
authorcliffwd@netbeans.org
Mon, 12 Apr 2004 22:11:42 +0000
changeset 1503a2753717b597
parent 1502 cb0a8c918213
child 1504 304202660b17
Some minor enhancements that have been sitting in my path for a little while.
Add -setDefaults flag for BaseBean generation: defaults will be filled in for a fresh bean.
Add -strict flag: try to keep as strict to the standards as we can. Standards trump backwards compatibility with this flag.
Fix a few little bugs.
schema2beans/build.xml
schema2beans/test/build.xml
schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass
     1.1 --- a/schema2beans/build.xml	Fri Apr 09 08:07:54 2004 +0000
     1.2 +++ b/schema2beans/build.xml	Mon Apr 12 22:11:42 2004 +0000
     1.3 @@ -67,9 +67,16 @@
     1.4      </javadoc>    
     1.5    </target>
     1.6  
     1.7 +  <target name="build">
     1.8 +    <ant dir="rt"/>
     1.9 +    <ant dir="dev"/>
    1.10 +    <ant dir="anttask"/>
    1.11 +  </target>
    1.12 +
    1.13    <target name="test">
    1.14      <ant dir="rt"/>
    1.15      <ant dir="dev"/>
    1.16 +    <ant dir="anttask"/>
    1.17      <ant dir="test" antfile="build.xml" />
    1.18    </target>
    1.19  
     2.1 --- a/schema2beans/test/build.xml	Fri Apr 09 08:07:54 2004 +0000
     2.2 +++ b/schema2beans/test/build.xml	Mon Apr 12 22:11:42 2004 +0000
     2.3 @@ -91,7 +91,7 @@
     2.4      </target>
     2.5      
     2.6    <target name="build">
     2.7 -    <ant dir=".." antfile="build.xml" />
     2.8 +    <ant dir=".." antfile="build.xml" target="build" />
     2.9    </target>
    2.10  </project>
    2.11  
     3.1 --- a/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass	Fri Apr 09 08:07:54 2004 +0000
     3.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass	Mon Apr 12 22:11:42 2004 +0000
     3.3 @@ -250,7 +250,7 @@
     3.4  out: TestWebAppDelegatorBaseBean - creating the bean graph
     3.5  out: TestWebAppDelegatorBaseBean - bean graph created
     3.6  out: <?xml version="1.0" encoding="UTF-8"?>
     3.7 -out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
     3.8 +out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">
     3.9  out:   <description>This is my Web App</description>
    3.10  out:   <display-name>MyWebApp</display-name>
    3.11  out:   <thing>
    3.12 @@ -271,7 +271,7 @@
    3.13  out: </web-app>
    3.14  out: TestWebAppDelegatorBaseBean - making some minor changes
    3.15  out: <?xml version="1.0" encoding="UTF-8"?>
    3.16 -out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    3.17 +out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">
    3.18  out:   <description>Changed the description</description>
    3.19  out:   <display-name>MyWebApp</display-name>
    3.20  out:   <thing>
    3.21 @@ -297,7 +297,7 @@
    3.22  out: TestWebAppDelegatorBaseBean null candidate 0 is good -> OK
    3.23  out: TestWebAppDelegatorBaseBean null candidate 1 is not good -> OK
    3.24  out: <?xml version="1.0" encoding="UTF-8"?>
    3.25 -out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    3.26 +out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">
    3.27  out:   <description>Changed the description</description>
    3.28  out:   <display-name>MyWebApp</display-name>
    3.29  out:   <thing>
    3.30 @@ -323,7 +323,7 @@
    3.31  out:     </auth-constraint>
    3.32  out:   </security-constraint>
    3.33  out: </web-app>
    3.34 -out: TestWebAppDelegatorBaseBean null Got good validate exception: getVersion() == null -> OK
    3.35 +out: TestWebAppDelegatorBaseBean null Got good validate exception: sizeWebResourceCollection() == 0 -> OK
    3.36  out: TestWebAppDelegatorBaseBean null Got good validate exception: sizeWebResourceCollection() == 0 -> OK
    3.37  out: TestWebAppDelegatorBaseBean null Got good validate exception: getWebResourceName() == null -> OK
    3.38  out: TestWebAppDelegatorBaseBean null Got good validate exception: sizeUrlPattern() == 0 -> OK