diff --git a/.project b/.project index efc920f..4a9b562 100644 --- a/.project +++ b/.project @@ -1,11 +1,17 @@ x4o - + x4o-base, Eclipse with Maven build project. + + org.eclipse.m2e.core.maven2Builder + + + + org.eclipse.m2e.core.maven2Nature diff --git a/authors.txt b/authors.txt new file mode 100644 index 0000000..453caba --- /dev/null +++ b/authors.txt @@ -0,0 +1,5 @@ +X4O was written by: + + Willem Cazander + +Contributors: diff --git a/build.txt b/build.txt new file mode 100644 index 0000000..3f6edf1 --- /dev/null +++ b/build.txt @@ -0,0 +1,66 @@ + +Building X4O + +You need a few software packages; +- java sdk 1.5 or higher. +- maven 3 or higher. + + + +-- Create package -- + +cd project-root/; +mvn clean package; + + +-- Install local package -- + +cd project-root/; +mvn clean install; + + +-- Update schemas in src -- + +cd project-root/; +mvn clean install; +mvn -Pupdate-schema-cel package; +mvn -Pupdate-schema-eld package; +- Add the license as manual step in xsd files. (todo in ant task) + +note: the do 'install' is because of circle plugins. + + +-- Make release build -- + +# todo make work +cd project-root/; +mvn clean package; +mvn -B -Dusername= clean install release:clean release:prepare release:perform; +src/build/gnu-up.sh + + +-- Make site -- + +cd project-root/; +mvn -Psite-elddoc clean package site site:stage + + +-- Check for code style -- + +cd project-root/; +mvn checkstyle:checkstyle + + +-- Check for licenses -- + +cd project-root/; +mvn -Pcheck-license license:check + + +-- Check for versions-updates -- + +cd project-root/; +mvn versions:display-plugin-updates; +mvn versions:display-dependency-updates; + + diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..14e67c0 --- /dev/null +++ b/license.txt @@ -0,0 +1,20 @@ +Copyright (c) 2004-2012, Willem Cazander +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided +that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the + following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..37e662b --- /dev/null +++ b/pom.xml @@ -0,0 +1,415 @@ + + + 4.0.0 + org.x4o + x4o + pom + 0.8.2-SNAPSHOT + x4o + Creates an easy xml layer for objects and creating your own xml language implementations. + http://www.x4o.org + 2004 + + X4O + http://www.x4o.org/ + + + + willem.cazander + Willem Cazander + w.cazander@gmail.com + X4O.org + +1 + + Project Manager + Architect + + + + + + BSD + license.txt + repo + + + + scm:git:ssh://git.sv.gnu.org:/srv/git/x4o.git + scm:git:ssh://git.sv.gnu.org:/srv/git/x4o.git + http://git.savannah.gnu.org/cgit/x4o.git + + + 3.0.1 + + + x4o-core + x4o-elddoc + x4o-meta + x4o-plugin + + + + x4o-site + http://www.x4o.org/ + + + + UTF-8 + 1.5 + + + 2.3.2 + 2.1.2 + 2.8.1 + 2.3 + 1.7 + 3.0 + 2.7.1 + 2.12 + 2.12.2 + 2.9.1 + 1.0-beta-1 + 2.5 + 2.2.2 + 2.2 + 2.2 + 1.10.b1 + + + 1.0-beta-1 + 1.3 + 2.5.1 + 2.4 + 2.0-beta-2 + + + 1.0b3 + 1.8.1 + 1.8.4 + 1.8.4 + + + 1.9.0 + 6.3.1 + 4.10 + + + 1.2 + 2.1.0 + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${project.build.sourceEncoding} + ${project.build.javaVersion} + ${project.build.javaVersion} + true + true + true + false + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + jar-no-fork + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + true + + + + attach-javadocs + jar + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + **/*Test.java + + + **/*InteractiveTest.java + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + true + src/main/config/checkstyle.xml + + + + org.apache.maven.plugins + maven-site-plugin + ${maven-site-plugin.version} + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + ${maven-project-info-reports-plugin.version} + + true + false + false + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + true + true + true + 64m + 512m + true + true + + + + + aggregate + test-aggregate + fix + test-fix + + + + + + org.codehaus.mojo + cobertura-maven-plugin + ${cobertura-maven-plugin.version} + + true + + html + xml + + + + + org.codehaus.mojo + jdepend-maven-plugin + ${jdepend-maven-plugin.version} + + + org.apache.maven.plugins + maven-pmd-plugin + ${maven-pmd-plugin.version} + + true + true + ${project.build.sourceEncoding} + 100 + ${project.build.javaVersion} + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + true + true + src/main/config/checkstyle.xml + + + + org.apache.maven.plugins + maven-surefire-report-plugin + ${maven-surefire-report-plugin.version} + + true + + + + org.apache.maven.plugins + maven-changelog-plugin + ${maven-changelog-plugin.version} + false + + + + + + notest + + true + + + + update-schema-cel + + true + + + + update-schema-eld + + true + + + + check-license + + true + + + + + com.mycila.maven-license-plugin + maven-license-plugin + ${maven-license-plugin.version} + +
license.txt
+ true + true + false + true + + **/*~ + **/.git + **/.git/** + .gitignore + **/target/** + **/test-output/** + **/release.properties + **/dependency-reduced-pom.xml + **/.classpath + **/.project + **/.settings/** + **/*.txt + **/*.jks + **/*.sch + **/*.so + **/*.dll + **/*.png + **/*.pom + **/.empty + **/empty-real.xml + **/empty-test.xml + **/empty-x4o.xml + **/empty-xml.xml + + + SLASHSTAR_STYLE + XML_STYLE + XML_STYLE + XML_STYLE + XML_STYLE + DOUBLETILDE_STYLE + SCRIPT_STYLE + +
+ + + test + + check + + + +
+
+
+
+
+
diff --git a/src/main/config/checkstyle.xml b/src/main/config/checkstyle.xml new file mode 100644 index 0000000..a3f008a --- /dev/null +++ b/src/main/config/checkstyle.xml @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/docbook/images/logo-x4o.png b/src/main/docbook/images/logo-x4o.png new file mode 100644 index 0000000..36ea713 Binary files /dev/null and b/src/main/docbook/images/logo-x4o.png differ diff --git a/src/main/docbook/manual.xml b/src/main/docbook/manual.xml new file mode 100644 index 0000000..cc961b7 --- /dev/null +++ b/src/main/docbook/manual.xml @@ -0,0 +1,125 @@ + + + + + + X4O Manual + + X4O.org + X4O.org + + + + Willem + Cazander + + + + Manual for x4o version 1.0 + 2009 + + + 2005 + 2006 + 2007 + 2008 + 2009 + 2010 + 2011 + 2012 + Willem Cazander + + + + + 0.1 + 1-12-2008 + + + 0.2 + 24-12-2011 + + + + + + + Preface + + Welcom in the X4O Manual. + Here we describe how to interface with the x4o language parser. + + + + + + + Introduction + + Introduction + + + Intoduction + + + Introduction + + Welcom in the x4o manual. + + + + + + + + + + X4O is an xml parser libary which makes it easy to map objects to. + + + + + + + Appendix + + appendix + licenece + + + Appendix + + +
+ Licence + + BSD licence + + +
+
+
\ No newline at end of file diff --git a/src/site-child/resources/images/logo-x4o.png b/src/site-child/resources/images/logo-x4o.png new file mode 100644 index 0000000..ce2c829 Binary files /dev/null and b/src/site-child/resources/images/logo-x4o.png differ diff --git a/src/site-child/site.xml b/src/site-child/site.xml new file mode 100644 index 0000000..f2b9118 --- /dev/null +++ b/src/site-child/site.xml @@ -0,0 +1,41 @@ + + + + + ${project.name} + images/logo-x4o.png + . + + + + + + + + + + + diff --git a/src/site/apt/download.apt b/src/site/apt/download.apt new file mode 100644 index 0000000..80bac86 --- /dev/null +++ b/src/site/apt/download.apt @@ -0,0 +1,45 @@ +~~ +~~ Copyright (c) 2004-2012, Willem Cazander +~~ All rights reserved. +~~ +~~ Redistribution and use in source and binary forms, with or without modification, are permitted provided +~~ that the following conditions are met: +~~ +~~ * Redistributions of source code must retain the above copyright notice, this list of conditions and the +~~ following disclaimer. +~~ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +~~ the following disclaimer in the documentation and/or other materials provided with the distribution. +~~ +~~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +~~ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +~~ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +~~ THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +~~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +~~ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +~~ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +~~ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +~~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +~~ + +Downloading + +* Maven as dependency + ++-- + + org.x4o + x4o-core + 0.8-SNAPSHOT + ++-- + + note: Is not in a repro, build and install(local) yourself for now. + +* Download binary release. + + Sorry we still have not done any binany releases. + +* Downloading source code + + Sorry we still have no source access. + \ No newline at end of file diff --git a/src/site/apt/examples/load-modules.apt b/src/site/apt/examples/load-modules.apt new file mode 100644 index 0000000..058b3c5 --- /dev/null +++ b/src/site/apt/examples/load-modules.apt @@ -0,0 +1,52 @@ +~~ +~~ Copyright (c) 2004-2012, Willem Cazander +~~ All rights reserved. +~~ +~~ Redistribution and use in source and binary forms, with or without modification, are permitted provided +~~ that the following conditions are met: +~~ +~~ * Redistributions of source code must retain the above copyright notice, this list of conditions and the +~~ following disclaimer. +~~ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +~~ the following disclaimer in the documentation and/or other materials provided with the distribution. +~~ +~~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +~~ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +~~ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +~~ THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +~~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +~~ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +~~ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +~~ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +~~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +~~ + +Load Modules + + The default language loader of x4o load all 'META-INF//-modules.xml' in the classpath. + So every extension library has its own modules definition file. + + All options are allowed in multiple forms and order. + For xsd file see x4o-core classpath 'META-INF/language/modules-1.0.xsd'. + ++-- + + + + foobar-lang.eld + foobar-backend-default.eld + foobar-backend-old.eld + org.foo.bar.x4o.FooCustomModuleLoader + org.foo.bar.x4o.BarCustomModuleLoader + org.x4o.xml.meta.MetaLanguageSiblingLoader + org.foo.bar.x4o.HelloWorldQueryLanguageSiblingLoader + + + foobar-lang-2.0.eld + + ++-- \ No newline at end of file diff --git a/src/site/apt/examples/sample-jr4o.apt b/src/site/apt/examples/sample-jr4o.apt new file mode 100644 index 0000000..5411c25 --- /dev/null +++ b/src/site/apt/examples/sample-jr4o.apt @@ -0,0 +1,131 @@ +~~ +~~ Copyright (c) 2004-2012, Willem Cazander +~~ All rights reserved. +~~ +~~ Redistribution and use in source and binary forms, with or without modification, are permitted provided +~~ that the following conditions are met: +~~ +~~ * Redistributions of source code must retain the above copyright notice, this list of conditions and the +~~ following disclaimer. +~~ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and +~~ the following disclaimer in the documentation and/or other materials provided with the distribution. +~~ +~~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +~~ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +~~ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +~~ THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +~~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +~~ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +~~ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +~~ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +~~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +~~ + +Sample jr4o + + Example which wraps the Jasper reports design object tree to xml. + + Example xml document which can be parsed. + ++-- + + + + +