diff options
author | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
---|---|---|
committer | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
commit | bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a (patch) | |
tree | 38a92061c0793434c4be189f1d70c3458b6bc41d /java/etc |
Move Tuscany from Incubator to top level.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/etc')
-rwxr-xr-x | java/etc/addLicense2java.pl | 85 | ||||
-rwxr-xr-x | java/etc/addLicense2xml.pl | 85 | ||||
-rw-r--r-- | java/etc/listignores.rb | 126 | ||||
-rw-r--r-- | java/etc/make_javajet_sed.sed | 27 | ||||
-rwxr-xr-x | java/etc/release-sca.sh | 73 | ||||
-rw-r--r-- | java/etc/replaceheaders.rb | 40 | ||||
-rwxr-xr-x | java/etc/set_svn_properties.sh | 120 | ||||
-rw-r--r-- | java/etc/settings.xml | 61 | ||||
-rw-r--r-- | java/etc/svn-config | 123 | ||||
-rw-r--r-- | java/etc/svn-ignores | 19 | ||||
-rw-r--r-- | java/etc/svn-props | 55 | ||||
-rw-r--r-- | java/etc/tuscany-eclipse-codestyle.xml | 251 | ||||
-rw-r--r-- | java/etc/tuscany-eclipse-codetemplates.xml | 45 | ||||
-rw-r--r-- | java/etc/tuscany-idea-codestyle.xml | 19 |
14 files changed, 1129 insertions, 0 deletions
diff --git a/java/etc/addLicense2java.pl b/java/etc/addLicense2java.pl new file mode 100755 index 0000000000..f377f3442b --- /dev/null +++ b/java/etc/addLicense2java.pl @@ -0,0 +1,85 @@ +#!/usr/bin/perl +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#=================================================================== +# Change the old license header to remove the copyright ASF line +# and replace it with the new "Licensed under the ..." text. +# Note that this should not be applied to the collective copyright +# in, for example, a README file that describes the work as a whole. +#=================================================================== +# +# Usage: newlicense.pl *.java +# or +# find . -name .svn -prune -o -type f -print0 | xargs -0 copy2license.pl +# +sub ShowUsage { + print qq! +Usage: $0 file [ file ... ] + + where: + + file = a file in which to substitute license text + +!; +} +#=================================================================== + +# ensure proper usage +if (scalar @ARGV < 1) { + ShowUsage(); + exit; +} + +undef $/; # slurp the whole file + +$newtext = <<"EOTEXT"; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +EOTEXT + +# process each filename that was supplied +while ($filename = shift) { + open(INFILE, $filename) || die ("Cannot read from $filename, $!\n"); + $wholething = <INFILE>; + close INFILE; + + if ($wholething =~ s/\A.*?package /${newtext}package /s) { + open(OUTFILE, ">$filename") || die ("Cannot write to $filename, $!\n"); + print OUTFILE $wholething; + close OUTFILE; + } +} + +$/ = "\n"; # reset the input record separator + +exit 0; diff --git a/java/etc/addLicense2xml.pl b/java/etc/addLicense2xml.pl new file mode 100755 index 0000000000..84ba37941d --- /dev/null +++ b/java/etc/addLicense2xml.pl @@ -0,0 +1,85 @@ +#!/usr/bin/perl +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#=================================================================== +# Change the old license header to remove the copyright ASF line +# and replace it with the new "Licensed under the ..." text. +# Note that this should not be applied to the collective copyright +# in, for example, a README file that describes the work as a whole. +#=================================================================== +# +# Usage: newlicense.pl *.java +# or +# find . -name .svn -prune -o -type f -print0 | xargs -0 copy2license.pl +# +sub ShowUsage { + print qq! +Usage: $0 file [ file ... ] + + where: + + file = a file in which to substitute license text + +!; +} +#=================================================================== + +# ensure proper usage +if (scalar @ARGV < 1) { + ShowUsage(); + exit; +} + +undef $/; # slurp the whole file + +$newtext = <<"EOTEXT"; +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +EOTEXT + +# process each filename that was supplied +while ($filename = shift) { + open(INFILE, $filename) || die ("Cannot read from $filename, $!\n"); + $wholething = <INFILE>; + close INFILE; + + if ($wholething =~ s/\A(<\?xml.*\?>\n).*?-->\n/\1${newtext}/s) { + open(OUTFILE, ">$filename") || die ("Cannot write to $filename, $!\n"); + print OUTFILE $wholething; + close OUTFILE; + } +} + +$/ = "\n"; # reset the input record separator + +exit 0; diff --git a/java/etc/listignores.rb b/java/etc/listignores.rb new file mode 100644 index 0000000000..f983dcb296 --- /dev/null +++ b/java/etc/listignores.rb @@ -0,0 +1,126 @@ +=begin
+
+Scans java test source files, recursively from the current directory,
+looking for ignored test methods producing a list of such test methods
+and their associated blocking Jiras.
+
+The implementation makes heavy use of my scant knowledge of regex. I'll
+comeback and clean this up as time allows.
+
+Only proceses testfiles and assumes they are named like: *TestCase.java
+
+Assumes a test annotation convention like this:
+
+ @Ignores("TUSCANY-xxxx")
+ public void someTest() throws Exception {
+
+Example command line usage
+>ruby listignores.rb > scan.txt
+
+Current output is formatted as normal text
+
+=end
+class TestMethod
+
+ def initialize(text, parent)
+ @text = text
+ @parent = parent
+ end
+
+ def name
+ regex = /void\s*\S*\(\) /
+ str = @text[regex]
+ str.sub(/void\s*/, '')
+ end
+
+ def ignore_line
+ @text[/^\s*@Ignore.*/]
+ end
+
+ def jira
+ result = ignore_line
+ result = result[/\d{4,5}/]
+ result ? ", T-" + result : ", no associated jira"
+ end
+
+ def ignore_string
+ ignore_line ? jira : ""
+ end
+
+ def to_s
+ self.name + ignore_string + "\n"
+ end
+end
+
+class TestCase
+ attr_accessor :text, :ignored_methods
+
+ def initialize(text)
+ @text = text
+ @ignored_methods = Array.new
+ create_ignored_methods
+ end
+
+ def create_ignored_methods
+ regex = /@Ignore.*?\{/m
+ test_method_text_array = text.scan(regex)
+ test_method_text_array.each do |t|
+ @ignored_methods<<TestMethod.new(t, self)
+ end
+ end
+
+ def package_name
+ line = @text[/pack.*$/]
+ line.sub!(/package /, '')
+ line.sub(/;/, '')
+ end
+
+ def testcase_name
+ text[/\S*TestCase/]
+ end
+
+ def long_name
+ package_name + "." + testcase_name
+ end
+
+ def has_ignored_methods
+ @ignored_methods.size > 0
+ end
+
+end
+
+def process_file(fn)
+ text = String.new
+ File.open(fn) { |f| text = f.read }
+ $testcases << TestCase.new(text)
+end
+
+$testcases = Array.new
+svn_info = `svn info`
+svn_revision = svn_info[/Revision: \d*/]
+
+Dir["**/*TestCase.java"].each do |filename|
+ process_file(filename)
+end
+
+puts "Content generated by from #{Dir.pwd}"
+puts "Test case files scanned " + Date.today.to_s + " (svn:" + svn_revision + ")"
+puts "* Total files processed = #{$testcases.size}"
+num_ignored = 0
+$testcases.each {|c|num_ignored = num_ignored + c.ignored_methods.size}
+puts "* Total ingnored test cases = " + num_ignored.to_s
+puts ""
+
+puts "The following test cases have ignored test methods ..."
+puts ""
+cases = $testcases.select{|c| c.has_ignored_methods}
+cases.each do |c|
+ puts c.long_name
+ c.ignored_methods.each {|m| puts " " + m.to_s}
+ puts ""
+end
+
+
+
+
+
diff --git a/java/etc/make_javajet_sed.sed b/java/etc/make_javajet_sed.sed new file mode 100644 index 0000000000..a55afe547d --- /dev/null +++ b/java/etc/make_javajet_sed.sed @@ -0,0 +1,27 @@ +#
+# sed script to be run on the output of the javajet builder to make the generated java
+# more comprehensible for development/debugging purposes
+# the script generates a sed script which can be run on the original input in order
+# to substitute all the TEXT_ constant references to their values
+#
+# e.g.
+# 1) cat SDOClass.java | grep "protected final String TEXT_" | sed -f <thisfile> > SDOClass.sed
+# 2) cat SDOClass.java | sed -f SDOClass.sed > SDOClassSed.java
+# then the file can be formatted in eclipse say, and fix up the class name to SDOClassSed
+# and you should be able to see what's going on better
+#
+#
+# add to the output script a line which removes the constant declarations
+1i\
+/protected final String TEXT_/d
+# arrange the var name/value pairs regularly
+/protected final String TEXT_/ s/[ \t]*protected final String TEXT_\([0-9][0-9]*\) = \(.*\);[ \t]*$/TEXT_\1 \2/
+# escape special characters in the value
+s/\\/\\\\/g
+s/\//\\\//g
+s/\'/\\\'/g
+# build the substitution pattern for line 2 of the output script
+s/ /\\\(\[\^0-9\]\\\)\//
+s/$/\\1\//
+s/^/\/generate(Object argument)\/,$s\//
+
diff --git a/java/etc/release-sca.sh b/java/etc/release-sca.sh new file mode 100755 index 0000000000..5a93382ef2 --- /dev/null +++ b/java/etc/release-sca.sh @@ -0,0 +1,73 @@ +#!/usr/bin/bash +DIR=`pwd` + +# version +BASE=1.0.1 +VER=$BASE-incubating +TAG=$BASE-RC4 +BRANCH=sca-java-$BASE + +# user/pass for signing +USER=rfeng +PASS= + +if [ -z $PASS ]; then +stty -echo +echo "Please enter your GPG passphrase: " +read PASS +stty echo +fi + + +# Staging maven repo +REPO_ID=apache.incubator +REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/$TAG/maven + +# RAT jar +RAT_JAR=c:\\Apache\\rat\\rat-0.5.1.jar + +if [ ! -d $TAG ]; then +echo "SVN copying ..." +svn copy https://svn.apache.org/repos/asf/incubator/tuscany/branches/$BRANCH $TAG +fi + +echo "Changing version ids ..." +cd $DIR/$TAG +if grep $VER-SNAPSHOT pom.xml; then +for i in `/usr/bin/find . -name "*.xml"`; do if grep $VER-SNAPSHOT $i>/dev/null; then sed "s/$VER-SNAPSHOT/$VER/g" $i >/tmp/tmp.xml; cp /tmp/tmp.xml $i; fi; done +for i in `/usr/bin/find ./itest -name "*.vm"`; do if grep $VER-SNAPSHOT $i>/dev/null; then sed "s/$VER-SNAPSHOT/$VER/g" $i> /tmp/tmp.xml; cp /tmp/tmp.xml $i; fi; done +fi + +echo "Generating RAT report ..." +cd $DIR +java -jar $RAT_JAR $TAG >$TAG.rat.txt + +OPTS="-DaltDeploymentRepository=$REPO_ID::default::$REPO_URL verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASS" + +echo "Deploying modules to stating repo ..." +cd $DIR/$TAG +mvn -N $OPTS + +cd $DIR/$TAG/modules +mvn $OPTS + +echo "Building samples ..." +cd $DIR/$TAG/samples +mvn clean install + +echo "Building itests ..." +cd $DIR/$TAG/itest +mvn clean install + +echo "Building distrubtion ..." +cd $DIR/$TAG/distribution +mvn clean install + +echo "Signing distrubtion ..." +for i in target/*.zip target/*.gz; do gpg --output $i.asc --detach-sig --armor $i; done +for i in target/*.zip target/*.gz; do openssl md5 -hex $i | sed 's/MD5(\([^)]*\))= \([0-9a-f]*\)/\2 *\1/' > $i.md5; done + +echo "Deploying tuscany-sca-all ..." +cd $DIR/$TAG/distribution/bundle/target +mvn gpg:sign-and-deploy-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-sca-all -Dversion=$VER -Dpackaging=jar -Dfile=tuscany-bundle-$VER.jar -DrepositoryId=$REPO_ID -Durl=$REPO_URL -Dkeyname=$USER -Dpassphrase=$PASS + diff --git a/java/etc/replaceheaders.rb b/java/etc/replaceheaders.rb new file mode 100644 index 0000000000..92c45c0d55 --- /dev/null +++ b/java/etc/replaceheaders.rb @@ -0,0 +1,40 @@ +
+# Scans files - with a given extension - recursively from the current
+# directory replacing the old copyright/license header statement with a
+# new version
+#
+# Example command line usage
+# >ruby replaceheaders.rb java oldheader.txt newheader.txt
+
+ def munge_file(fn, oh, nh)
+ eoh = Regexp.escape(oh)
+ new_contents = File.read(fn).gsub!(Regexp.new(eoh), nh)
+ if new_contents
+ puts " processing #{fn}"
+ File.open(fn, 'w') do |file|
+ file.puts(new_contents)
+ end
+ $num_files_processed += 1
+ else
+ puts " processing #{fn} - NO MATCH!"
+ $num_files_no_match += 1
+ end
+ end
+
+if(!ARGV[0])
+ STDERR.puts "usage: <file extension> <old header file> <new header file>"
+ exit 0
+end
+
+ext = ARGV[0]
+$num_files_processed = $num_files_no_match = 0
+puts "Scanning files with #{ext} extension"
+old_header = File.read(ARGV[1])
+new_header = File.read(ARGV[2])
+Dir["**/*.#{ext}"].each do |filename|
+ munge_file( filename, old_header, new_header)
+end
+puts "Total files matched and processed = #{$num_files_processed}"
+puts "Number of files with no match = #{$num_files_no_match}"
+
+
diff --git a/java/etc/set_svn_properties.sh b/java/etc/set_svn_properties.sh new file mode 100755 index 0000000000..92eab3fbd5 --- /dev/null +++ b/java/etc/set_svn_properties.sh @@ -0,0 +1,120 @@ + +# this script will set the proper svn properties on all the files in the tree +# It pretty much requires a gnu compatible xargs (for the -r flag). Running +# on Linux is probably the best option + + +find . -name "*.java" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.java" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + + +find . -name "*.xml" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.xml" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.xml" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.xsl" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.xsl" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.xsl" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.xsd" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.xsd" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.xsd" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.wsdl" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.wsdl" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.wsdl" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.properties" | xargs -n 1 -r svn propset svn:mime-type text/plain +find . -name "*.properties" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.properties" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.txt" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.txt" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "*.htm*" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.htm*" | xargs -n 1 -r svn propset svn:mime-type text/html +find . -name "*.htm*" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "README*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "README*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "*.png" | xargs -n 1 -r svn propset svn:mime-type image/png +find . -name "*.gif" | xargs -n 1 -r svn propset svn:mime-type image/gif +find . -name "*.jpg" | xargs -n 1 -r svn propset svn:mime-type image/jpeg +find . -name "*.jpeg" | xargs -n 1 -r svn propset svn:mime-type image/jpeg + + +find . -name "*.scdl" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.scdl" | xargs -n 1 -r svn propset svn:mime-type text/xml + +find . -name "*.fragment" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.fragment" | xargs -n 1 -r svn propset svn:mime-type text/xml + +find . -name "*.componentType" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.componentType" | xargs -n 1 -r svn propset svn:mime-type text/xml + +find . -name "*.wsdd" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.wsdd" | xargs -n 1 -r svn propset svn:eol-style native + +find . -name "sca.subsystem" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "sca.subsystem" | xargs -n 1 -r svn propset svn:eol-style native + +find . -name "Tuscany-model.config" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "Tuscany-model.config" | xargs -n 1 -r svn propset svn:eol-style native + + +find . -name "*.cpp" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.cpp" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.c" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.c" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.h" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.h" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "*.am" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.am" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + +find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain +find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:executable "" + +find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain +find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r svn propset svn:executable "" + +find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain +find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:executable "" + +find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "DISCLAIMER*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "DISCLAIMER*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain + +find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native +find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml +find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date" + diff --git a/java/etc/settings.xml b/java/etc/settings.xml new file mode 100644 index 0000000000..2ad3f405af --- /dev/null +++ b/java/etc/settings.xml @@ -0,0 +1,61 @@ +<!-- + A proposed template for your maven repo settings. Below are mirrors to help maven find build artifacats. + You can copy or merge this file into %USERPROFILE%\.m2\settings.xml. + Please see http://maven.apache.org/guides/mini/guide-mirror-settings.html for more details. +--> +<settings> + + <servers> + <server> + <id>apache.snapshots</id> + <username>your_apache_id</username> + <!-- Default value is ~/.ssh/id_dsa --> + <privateKey><user.home>\.ssh\id_dsa</privateKey> + <passphrase>your_password</passphrase> + <directoryPermissions>775</directoryPermissions> + <filePermissions>664</filePermissions> + </server> + </servers> + + <mirrors> + <mirror> + <id>dotsrc.org</id> + <url>http://mirrors.dotsrc.org/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + <mirror> + <id>ggi-project.org</id> + <url>http://ftp.ggi-project.org/pub/packages/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + <mirror> + <id>sunsite.dk</id> + <url>http://mirrors.sunsite.dk/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + <mirror> + <id>planetmirror.com</id> + <url>http://public.planetmirror.com/pub/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + <mirror> + <id>lsu.edu</id> + <url>http://ibiblio.lsu.edu/main/pub/packages/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + <mirror> + <id>ibiblio.net</id> + <url>http://www.ibiblio.net/pub/packages/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + + <mirror> + <id>osuosl.org</id> + <!-- Oregon State University Open Source Lab --> + <url>http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2</url> + <mirrorOf>eclipse.emf</mirrorOf> + </mirror> + + </mirrors> + +</settings> diff --git a/java/etc/svn-config b/java/etc/svn-config new file mode 100644 index 0000000000..95fe60b650 --- /dev/null +++ b/java/etc/svn-config @@ -0,0 +1,123 @@ +### This file configures various client-side behaviors. +### +### The commented-out examples below are intended to demonstrate +### how to use this file. + +### Section for authentication and authorization customizations. +[auth] +### Set store-passwords to 'no' to avoid storing passwords in the +### auth/ area of your config directory. It defaults to 'yes'. +### Note that this option only prevents saving of *new* passwords; +### it doesn't invalidate existing passwords. (To do that, remove +### the cache files by hand as described in the Subversion book.) +# store-passwords = no +### Set store-auth-creds to 'no' to avoid storing any subversion +### credentials in the auth/ area of your config directory. +### It defaults to 'yes'. Note that this option only prevents +### saving of *new* credentials; it doesn't invalidate existing +### caches. (To do that, remove the cache files by hand.) +# store-auth-creds = no + +### Section for configuring external helper applications. +[helpers] +### Set editor to the command used to invoke your text editor. +### This will override the environment variables that Subversion +### examines by default to find this information ($EDITOR, +### et al). +# editor-cmd = editor (vi, emacs, notepad, etc.) +### Set diff-cmd to the absolute path of your 'diff' program. +### This will override the compile-time default, which is to use +### Subversion's internal diff implementation. +# diff-cmd = diff_program (diff, gdiff, etc.) +### Set diff3-cmd to the absolute path of your 'diff3' program. +### This will override the compile-time default, which is to use +### Subversion's internal diff3 implementation. +# diff3-cmd = diff3_program (diff3, gdiff3, etc.) +### Set diff3-has-program-arg to 'true' or 'yes' if your 'diff3' +### program accepts the '--diff-program' option. +# diff3-has-program-arg = [true | false] + +### Section for configuring tunnel agents. +[tunnels] +### Configure svn protocol tunnel schemes here. By default, only +### the 'ssh' scheme is defined. You can define other schemes to +### be used with 'svn+scheme://hostname/path' URLs. A scheme +### definition is simply a command, optionally prefixed by an +### environment variable name which can override the command if it +### is defined. The command (or environment variable) may contain +### arguments, using standard shell quoting for arguments with +### spaces. The command will be invoked as: +### <command> <hostname> svnserve -t +### (If the URL includes a username, then the hostname will be +### passed to the tunnel agent as <user>@<hostname>.) If the +### built-in ssh scheme were not predefined, it could be defined +### as: +# ssh = $SVN_SSH ssh +### If you wanted to define a new 'rsh' scheme, to be used with +### 'svn+rsh:' URLs, you could do so as follows: +# rsh = rsh +### Or, if you wanted to specify a full path and arguments: +# rsh = /path/to/rsh -l myusername +### On Windows, if you are specifying a full path to a command, +### use a forward slash (/) or a paired backslash (\\) as the +### path separator. A single backslash will be treated as an +### escape for the following character. + +### Section for configuring miscelleneous Subversion options. +[miscellany] +### Set global-ignores to a set of whitespace-delimited globs +### which Subversion will ignore in its 'status' output. +# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store +### Set log-encoding to the default encoding for log messages +# log-encoding = latin1 +### Set use-commit-times to make checkout/update/switch/revert +### put last-committed timestamps on every file touched. +# use-commit-times = yes +### Set no-unlock to prevent 'svn commit' from automatically +### releasing locks on files. +# no-unlock = yes +### Set enable-auto-props to 'yes' to enable automatic properties +### for 'svn add' and 'svn import', it defaults to 'no'. +### Automatic properties are defined in the section 'auto-props'. +enable-auto-props = yes + +### Section for configuring automatic properties. +[auto-props] +### The format of the entries is: +### file-name-pattern = propname[=value][;propname[=value]...] +### The file-name-pattern can contain wildcards (such as '*' and +### '?'). All entries which match will be applied to the file. +### Note that auto-props functionality must be enabled, which +### is typically done by setting the 'enable-auto-props' option. +# *.c = svn:eol-style=native +# *.cpp = svn:eol-style=native +# *.h = svn:eol-style=native +# *.dsp = svn:eol-style=CRLF +# *.dsw = svn:eol-style=CRLF +# *.sh = svn:eol-style=native;svn:executable +# *.txt = svn:eol-style=native +# *.png = svn:mime-type=image/png +# *.jpg = svn:mime-type=image/jpeg +# Makefile = svn:eol-style=native + +*.c = svn:eol-style=native +*.cpp = svn:eol-style=native +*.h = svn:eol-style=native +*.dsp = svn:eol-style=CRLF +*.dsw = svn:eol-style=CRLF +*.sh = svn:eol-style=native;svn:executable +*.txt = svn:eol-style=native +*.png = svn:mime-type=image/png +*.jpg = svn:mime-type=image/jpeg +Makefile = svn:eol-style=native + +*.java = svn:eol-style=native;svn:keywords=Rev Date +*.xml = svn:eol-style=native;svn:keywords=Rev Date +*.xsd = svn:eol-style=native;svn:keywords=Rev Date +*.html = svn:eol-style=native;svn:keywords=Rev Date +*.properties = svn:eol-style=native;svn:keywords=Rev Date +*.jelly = svn:eol-style=native;svn:keywords=Rev Date +*.ipr = svn:eol-style=native +*.iml = svn:eol-style=native + + diff --git a/java/etc/svn-ignores b/java/etc/svn-ignores new file mode 100644 index 0000000000..f6f20c1fda --- /dev/null +++ b/java/etc/svn-ignores @@ -0,0 +1,19 @@ +target +work +dojo +*.iws +*.ipr +*.iml +derby.log +maven.log +build.xml +build-dependency.xml +velocity.log* +junit*.properties +surefire*.properties +.project +.classpath +.settings +.deployables +.wtpmodules +.externalToolBuilders diff --git a/java/etc/svn-props b/java/etc/svn-props new file mode 100644 index 0000000000..163dfaed03 --- /dev/null +++ b/java/etc/svn-props @@ -0,0 +1,55 @@ +### Set enable-auto-props to 'yes' to enable automatic properties +### for 'svn add' and 'svn import', it defaults to 'no'. +### Automatic properties are defined in the section 'auto-props'. +[miscellany] +enable-auto-props = yes + +### Section for configuring automatic properties. +### The format of the entries is: +### file-name-pattern = propname[=value][;propname[=value]...] +### The file-name-pattern can contain wildcards (such as '*' and +### '?'). All entries which match will be applied to the file. +### Note that auto-props functionality must be enabled, which +### is typically done by setting the 'enable-auto-props' option. +[auto-props] +*.c = svn:eol-style=native;svn:keywords=Rev Date +*.cpp = svn:eol-style=native;svn:keywords=Rev Date +*.h = svn:eol-style=native;svn:keywords=Rev Date +*.dsp = svn:eol-style=CRLF +*.dsw = svn:eol-style=CRLF +*.sh = svn:eol-style=native;svn:executable +*.png = svn:mime-type=image/png +*.jpg = svn:mime-type=image/jpeg +*.gif = svn:mime-type=image/gif +*.java = svn:eol-style=native;svn:keywords=Rev Date +*.xml = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.xsl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.xsd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.wsdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.properties = svn:mime-type=text/plain;svn:eol-style=native;svn:keywords=Rev Date +*.txt = svn:eol-style=native;svn:mime-type=text/plain +*.htm* = svn:eol-style=native;svn:mime-type=text/html;svn:keywords=Rev Date +*.bat = svn:eol-style=native +*.pl = svn:eol-style=native +*.py = svn:eol-style=native +*.cmd = svn:eol-style=native +ChangeLog = svn:eol-style=native;svn:mime-type=text/plain +README* = svn:eol-style=native;svn:mime-type=text/plain +LICENSE* = svn:eol-style=native;svn:mime-type=text/plain +NOTICE* = svn:eol-style=native;svn:mime-type=text/plain +TODO* = svn:eol-style=native;svn:mime-type=text/plain +KEYS* = svn:eol-style=native;svn:mime-type=text/plain +INSTALL* = svn:eol-style=native;svn:mime-type=text/plain +WHATSNEW* = svn:eol-style=native;svn:mime-type=text/plain +NEWS* = svn:eol-style=native;svn:mime-type=text/plain +COPYING = svn:eol-style=native;svn:mime-type=text/plain +Makefile = svn:eol-style=native +*.css = svn:eol-style=native +*.js = svn:eol-style=native +*.wsdd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.scdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.componentType = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date +*.fragment = svn:eol-style=native +sca.subsystem = svn:eol-style=native;svn:mime-type=text/xml +DISCLAIMER = svn:eol-style=native;svn:mime-type=text/plain +*.composite = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date diff --git a/java/etc/tuscany-eclipse-codestyle.xml b/java/etc/tuscany-eclipse-codestyle.xml new file mode 100644 index 0000000000..b83d2c6b38 --- /dev/null +++ b/java/etc/tuscany-eclipse-codestyle.xml @@ -0,0 +1,251 @@ +<?xml version="1.0" encoding="UTF-8"?> +<profiles version="10"> +<profile name="Tuscany Eclipse Formatter" version="10"> +<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="18"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="18"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="82"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="80"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="18"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="82"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="82"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_comments" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/> +<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="8"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/> +<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> +<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> +<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> +</profile> +</profiles> diff --git a/java/etc/tuscany-eclipse-codetemplates.xml b/java/etc/tuscany-eclipse-codetemplates.xml new file mode 100644 index 0000000000..1177585fd5 --- /dev/null +++ b/java/etc/tuscany-eclipse-codetemplates.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="false" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment"/><template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment"/><template autoinsert="true" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/** + * ${tags} + */</template><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/** + * + */</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/** + * ${tags} + */</template><template autoinsert="true" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">/** + * + */</template><template autoinsert="true" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/** + * ${tags} + */</template><template autoinsert="true" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">/* (non-Javadoc) + * ${see_to_overridden} + */</template><template autoinsert="true" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/** + * ${tags} + * ${see_to_target} + */</template><template autoinsert="false" context="newtype_context" deleted="false" description="Newly created files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype">/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +${package_declaration} + +${typecomment} +${type_declaration}</template><template autoinsert="true" context="classbody_context" deleted="false" description="Code in new class type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody"> +</template><template autoinsert="true" context="interfacebody_context" deleted="false" description="Code in new interface type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name="interfacebody"> +</template><template autoinsert="true" context="enumbody_context" deleted="false" description="Code in new enum type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.enumbody" name="enumbody"> +</template><template autoinsert="true" context="annotationbody_context" deleted="false" description="Code in new annotation type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name="annotationbody"> +</template><template autoinsert="true" context="catchblock_context" deleted="false" description="Code in new catch blocks" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock">// ${todo} Auto-generated catch block +${exception_var}.printStackTrace();</template><template autoinsert="true" context="methodbody_context" deleted="false" description="Code in created method stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodbody" name="methodbody">// ${todo} Auto-generated method stub +${body_statement}</template><template autoinsert="true" context="constructorbody_context" deleted="false" description="Code in created constructor stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name="constructorbody">${body_statement} +// ${todo} Auto-generated constructor stub</template><template autoinsert="true" context="getterbody_context" deleted="false" description="Code in created getters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.getterbody" name="getterbody">return ${field};</template><template autoinsert="true" context="setterbody_context" deleted="false" description="Code in created setters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.setterbody" name="setterbody">${field} = ${param};</template></templates>
\ No newline at end of file diff --git a/java/etc/tuscany-idea-codestyle.xml b/java/etc/tuscany-idea-codestyle.xml new file mode 100644 index 0000000000..f6c0920bd7 --- /dev/null +++ b/java/etc/tuscany-idea-codestyle.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<code_scheme name="tuscany-idea-codestyle"> + <option name="INDENT_CASE_FROM_SWITCH" value="false" /> + <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="9999" /> + <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" /> + <option name="IMPORT_LAYOUT_TABLE"> + <value> + <package name="java" withSubpackages="true" /> + <package name="javax" withSubpackages="true" /> + <emptyLine /> + <package name="" withSubpackages="true" /> + <emptyLine /> + <package name="org.apache.tuscany" withSubpackages="true" /> + </value> + </option> + <option name="XML_ATTRIBUTE_WRAP" value="0" /> + <option name="XML_TEXT_WRAP" value="0" /> +</code_scheme> + |