From 736fd7dbdef209431e858111c82e24e2a7e3e90f Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 26 Apr 2016 15:28:51 +0200 Subject: [PATCH] Add the generic license header to POMs, shell scripts and JavaScript/Python examples. --- examples/src/main/javascript/demo.js | 16 ++++++++++++++++ examples/src/main/javascript/forwarding.js | 16 ++++++++++++++++ examples/src/main/javascript/payprotocol.js | 16 ++++++++++++++++ examples/src/main/javascript/tor.js | 16 ++++++++++++++++ examples/src/main/python/forwarding.py | 14 ++++++++++++++ pom.xml | 17 +++++++++++++++++ tools/build-checkpoints | 14 ++++++++++++++ tools/build-checkpoints.cmd | 15 +++++++++++++++ tools/wallet-tool | 14 ++++++++++++++ tools/wallet-tool.cmd | 15 +++++++++++++++ wallettemplate/pom.xml | 16 ++++++++++++++++ 11 files changed, 169 insertions(+) diff --git a/examples/src/main/javascript/demo.js b/examples/src/main/javascript/demo.js index d8053973f..db039b444 100644 --- a/examples/src/main/javascript/demo.js +++ b/examples/src/main/javascript/demo.js @@ -1,3 +1,19 @@ +/* + * Copyright by the original author or authors. + * + * Licensed 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. + */ + // This file shows how to use bitcoinj from Javascript. // To run, grab the bitcoinj bundled JAR and then do something like this: // diff --git a/examples/src/main/javascript/forwarding.js b/examples/src/main/javascript/forwarding.js index aab22db1e..9b982054d 100644 --- a/examples/src/main/javascript/forwarding.js +++ b/examples/src/main/javascript/forwarding.js @@ -1,3 +1,19 @@ +/* + * Copyright by the original author or authors. + * + * Licensed 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. + */ + // For more info on how to run/control logging look at demo.js // // This example shows how to implement the forwarding service demo from the Getting Started tutorial. diff --git a/examples/src/main/javascript/payprotocol.js b/examples/src/main/javascript/payprotocol.js index 0fa93e82a..a021b0ed2 100644 --- a/examples/src/main/javascript/payprotocol.js +++ b/examples/src/main/javascript/payprotocol.js @@ -1,3 +1,19 @@ +/* + * Copyright by the original author or authors. + * + * Licensed 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. + */ + // Example app that creates a minimal BIP70 payment request with a multisig output, and then prints it to base64. var bcj = org.bitcoinj; diff --git a/examples/src/main/javascript/tor.js b/examples/src/main/javascript/tor.js index 121c66b11..da057230c 100644 --- a/examples/src/main/javascript/tor.js +++ b/examples/src/main/javascript/tor.js @@ -1,3 +1,19 @@ +/* + * Copyright by the original author or authors. + * + * Licensed 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. + */ + // Example of how to connect to a Tor hidden service and use it as a peer. // See demo.js to learn how to invoke this program. diff --git a/examples/src/main/python/forwarding.py b/examples/src/main/python/forwarding.py index 441c81c54..d7e082703 100644 --- a/examples/src/main/python/forwarding.py +++ b/examples/src/main/python/forwarding.py @@ -1,3 +1,17 @@ +# Copyright by the original author or authors. +# +# Licensed 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. + # An example of how to use Jython to implement the "Getting Started" tutorial app, which receives coins and simply # sends them on (minus a fee). diff --git a/pom.xml b/pom.xml index 90101792c..586eecc6c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,3 +1,20 @@ + + + 4.0.0 diff --git a/tools/build-checkpoints b/tools/build-checkpoints index 3c2aaff12..a417d0576 100755 --- a/tools/build-checkpoints +++ b/tools/build-checkpoints @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright by the original author or authors. +# +# Licensed 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. + set -e # Check if the jar has been built. diff --git a/tools/build-checkpoints.cmd b/tools/build-checkpoints.cmd index 191e56e1f..91b616cc8 100644 --- a/tools/build-checkpoints.cmd +++ b/tools/build-checkpoints.cmd @@ -1,4 +1,19 @@ @echo off + +rem Copyright by the original author or authors. +rem +rem Licensed under the Apache License, Version 2.0 (the "License"); +rem you may not use this file except in compliance with the License. +rem You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. + rem Check if the jar has been built. set TARGET_JAR=build-checkpoints.jar diff --git a/tools/wallet-tool b/tools/wallet-tool index a4aba36ed..e591e3301 100755 --- a/tools/wallet-tool +++ b/tools/wallet-tool @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright by the original author or authors. +# +# Licensed 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. + set -e # Check if the jar has been built. diff --git a/tools/wallet-tool.cmd b/tools/wallet-tool.cmd index b0a170d4c..53eb7ac9c 100644 --- a/tools/wallet-tool.cmd +++ b/tools/wallet-tool.cmd @@ -1,4 +1,19 @@ @echo off + +rem Copyright by the original author or authors. +rem +rem Licensed under the Apache License, Version 2.0 (the "License"); +rem you may not use this file except in compliance with the License. +rem You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. + rem Check if the jar has been built. set TARGET_JAR=wallet-tool.jar diff --git a/wallettemplate/pom.xml b/wallettemplate/pom.xml index 0081b88a0..13fe799c8 100644 --- a/wallettemplate/pom.xml +++ b/wallettemplate/pom.xml @@ -1,4 +1,20 @@ + +