Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split off the "normal case" example from the "legacy case" one. #839

Merged
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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.
*/

package com.google.gcloud.nio.examples;

This comment was marked as spam.

This comment was marked as spam.


import java.io.IOException;
Expand All @@ -11,7 +27,6 @@

/**
* ListFilesystems is a super-simple program that lists the available NIO filesystems.

*/
public class ListFilesystems {

Expand All @@ -28,5 +43,4 @@ private static void listFilesystems() {
System.out.println(" " + p.getScheme());
}
}

}
}

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

7 changes: 4 additions & 3 deletions utilities/update_docs_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ if [ "${RELEASED_VERSION##*-}" != "SNAPSHOT" ]; then
sed -ri "s/\"[0-9]+\.[0-9]+\.[0-9]+\"/\"${RELEASED_VERSION}\"/g" ${item}/README.md
done

echo "Changing version to $((RELEASED_VERSION + 1))-SNAPSHOT in gcloud-java-nio-example README"
sed -ri "s/gcloud-java-nio-examples-[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT'/gcloud-java-nio-examples-$((RELEASED_VERSION + 1))-SNAPSHOT'/g" gcloud-java-contrib/gcloud-java-nio-examples/README.md

NEW_VERSION=${RELEASED_VERSION%.*}.$((${RELEASED_VERSION##*.}+1))-SNAPSHOT
echo "Changing version to $NEW_VERSION in gcloud-java-nio-example README"
sed -ri "s/gcloud-java-nio-examples-[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT/gcloud-java-nio-examples-$NEW_VERSION/g" gcloud-java-contrib/gcloud-java-nio-examples/README.md

This comment was marked as spam.

This comment was marked as spam.


git add README.md */README.md
git config --global user.name "travis-ci"
git config --global user.email "[email protected]"
Expand Down