Added release upload script and added more java doc.
This commit is contained in:
parent
bcce73b2ad
commit
6f4eca935e
49 changed files with 905 additions and 270 deletions
61
src/main/build/gnu-up.sh
Executable file
61
src/main/build/gnu-up.sh
Executable file
|
|
@ -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;
|
||||
|
||||
|
|
@ -141,7 +141,9 @@
|
|||
<module name="AvoidInlineConditionals"/>
|
||||
<module name="DoubleCheckedLocking"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="HiddenField"/>
|
||||
<module name="HiddenField">
|
||||
<property name="tokens" value="VARIABLE_DEF"/>
|
||||
</module>
|
||||
<module name="IllegalInstantiation"/>
|
||||
<module name="InnerAssignment"/>
|
||||
<!--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue