From 6f4eca935ee84d363f2f1aba80bc0bd05db81c09 Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Sat, 12 Jan 2013 03:39:37 +0100 Subject: [PATCH] Added release upload script and added more java doc. --- build.txt | 2 +- src/main/build/gnu-up.sh | 61 ++++++ src/main/config/checkstyle.xml | 4 +- .../conv/DefaultObjectConverterProvider.java | 7 +- .../org/x4o/xml/conv/ObjectConverter.java | 4 +- .../x4o/xml/conv/text/BooleanConverter.java | 31 ++- .../org/x4o/xml/conv/text/ByteConverter.java | 29 +++ .../x4o/xml/conv/text/CharacterConverter.java | 29 +++ .../org/x4o/xml/conv/text/ClassConverter.java | 29 +++ .../x4o/xml/conv/text/DoubleConverter.java | 29 +++ .../org/x4o/xml/conv/text/EnumConverter.java | 30 ++- .../org/x4o/xml/conv/text/FloatConverter.java | 29 +++ .../x4o/xml/conv/text/IntegerConverter.java | 29 +++ .../org/x4o/xml/conv/text/LongConverter.java | 29 +++ .../xml/conv/text/StringSplitConverter.java | 31 ++- .../org/x4o/xml/conv/text/URLConverter.java | 17 ++ .../x4o/xml/core/AbstractX4OPhaseHandler.java | 51 ++++- .../java/org/x4o/xml/core/X4ODebugWriter.java | 4 +- .../org/x4o/xml/core/X4OEntityResolver.java | 16 +- .../org/x4o/xml/core/X4OPhaseHandler.java | 20 +- .../org/x4o/xml/core/X4OPhaseManager.java | 34 +++- .../core/config/X4OLanguageClassLoader.java | 6 + .../java/org/x4o/xml/eld/EldModuleLoader.java | 18 +- .../org/x4o/xml/eld/EldModuleLoaderCore.java | 182 +++++++++--------- .../xml/eld/lang/AttributeAliasElement.java | 2 + .../org/x4o/xml/eld/lang/BeanElement.java | 31 ++- .../lang/ElementClassAddParentElement.java | 1 + .../x4o/xml/element/AbstractElementClass.java | 2 - .../xml/element/AbstractElementClassBase.java | 17 +- .../element/AbstractElementConfigurator.java | 3 +- .../xml/element/AbstractElementInterface.java | 9 +- .../xml/element/AbstractElementMetaBase.java | 30 +-- .../java/org/x4o/xml/element/Element.java | 20 +- .../xml/element/ElementAttributeHandler.java | 10 +- .../xml/element/ElementBindingHandler.java | 3 +- .../xml/element/ElementClassAttribute.java | 32 +-- .../ElementLanguageModuleLoaderException.java | 20 +- .../ElementNamespaceInstanceProvider.java | 25 +-- ...entNamespaceInstanceProviderException.java | 19 +- .../impl/config/DefaultX4OLanguageLoader.java | 16 +- .../DefaultX4OLanguageVersionFilter.java | 3 + .../org/x4o/xml/impl/el/X4OELResolver.java | 9 + .../x4o/xml/impl/el/X4OELVariableMapper.java | 8 +- .../java/org/x4o/xml/sax/AttributeMap.java | 93 +++++---- .../main/java/org/x4o/xml/sax/XMLWriter.java | 54 +++++- .../config/X4OLanguageClassLoaderTest.java | 1 - .../org/x4o/xml/eld/doc/EldDocHtmlWriter.java | 43 +++-- .../org/x4o/xml/eld/doc/package-info.java | 2 +- .../xml/meta/MetaLanguageSiblingLoader.java | 1 + 49 files changed, 905 insertions(+), 270 deletions(-) create mode 100755 src/main/build/gnu-up.sh diff --git a/build.txt b/build.txt index fd586a3..3148c65 100644 --- a/build.txt +++ b/build.txt @@ -48,7 +48,7 @@ note: the do 'install' is because of circle plugins. cd project-root/; mvn clean package; mvn -B -Dusername= clean install release:clean release:prepare release:perform; -src/build/gnu-up.sh +src/main/build/gnu-up.sh -- Make site -- diff --git a/src/main/build/gnu-up.sh b/src/main/build/gnu-up.sh new file mode 100755 index 0000000..98bf524 --- /dev/null +++ b/src/main/build/gnu-up.sh @@ -0,0 +1,61 @@ +#!/bin/sh +# +# Copyright (c) 2013, 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. +# +# +# Small script to sign and upload files to savannah +# + +if [ "" == "$1" ]; then + echo "No username given to upload."; + exit 1; +fi; +if [ "" == "$2" ];then + echo "No upload dir given."; + exit 1; +fi; + +# Goto project root; +cd `dirname $0`/../../..; + +# Copy to one new dir. +mkdir -p target/gnu-up/$2; +cp x4o-core/target/x4o-core-*.jar target/gnu-up/$2; +cp x4o-elddoc/target/x4o-elddoc-*.jar target/gnu-up/$2; +cp x4o-meta/target/x4o-meta-*.jar target/gnu-up/$2; +cp x4o-plugin/x4o-plugin-ant-elddoc/target/x4o-plugin-ant-elddoc-*.jar target/gnu-up/$2; +cp x4o-plugin/x4o-plugin-ant-schema/target/x4o-plugin-ant-schema-*.jar target/gnu-up/$2; + +# Sign per file we want to upload. +for FILE in `ls target/gnu-up/$2/*`; do + gpg -b --use-agent $FILE; +done; + +# Make sure readable +chmod 644 target/gnu-up/$2/*; + +# And copy with new dir to gnu +scp -r target/gnu-up/$2 $1@dl.sv.nongnu.org:/releases/x4o/; + +echo "Done"; +exit 0; + diff --git a/src/main/config/checkstyle.xml b/src/main/config/checkstyle.xml index a3f008a..c4fa834 100644 --- a/src/main/config/checkstyle.xml +++ b/src/main/config/checkstyle.xml @@ -141,7 +141,9 @@ - + + +