Skip to content

Commit

Permalink
Java: Formatting tweaks to READMEs
Browse files Browse the repository at this point in the history
They looked funny when rendered on github.
  • Loading branch information
asimshankar committed Mar 30, 2017
1 parent 2a48110 commit 0ca139b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
40 changes: 20 additions & 20 deletions tensorflow/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ That's all. As an example, to create a Maven project for the
1. Create a `pom.xml`:

```xml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.myorg</groupId>
<artifactId>label-image</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<exec.mainClass>org.tensorflow.examples.LabelImage</exec.mainClass>
<!-- The LabelImage example code requires at least JDK 1.7. -->
<!-- The maven compiler plugin defaults to a lower version -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.tensorflow</groupId>
<artifactId>tensorflow</artifactId>
<version>1.1.0-rc0-windows-fix</version>
</dependency>
</dependencies>
</project>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.myorg</groupId>
<artifactId>label-image</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<exec.mainClass>org.tensorflow.examples.LabelImage</exec.mainClass>
<!-- The LabelImage example code requires at least JDK 1.7. -->
<!-- The maven compiler plugin defaults to a lower version -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.tensorflow</groupId>
<artifactId>tensorflow</artifactId>
<version>1.1.0-rc0-windows-fix</version>
</dependency>
</dependencies>
</project>
```

2. Download the [example source](https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java)
Expand Down
44 changes: 22 additions & 22 deletions tensorflow/java/maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,28 @@ conducted in a [Docker](https://www.docker.com) container.
SONATYPE_PASSWORD="your_sonatype.org_password_here"
GPG_PASSPHRASE="your_gpg_passphrase_here"
cat >/tmp/settings.xml <<EOF
<settings>
<servers>
<server>
<id>ossrh</id>
<username>${SONATYPE_USERNAME}</username>
<password>${SONATYPE_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
EOF
<settings>
<servers>
<server>
<id>ossrh</id>
<username>${SONATYPE_USERNAME}</username>
<password>${SONATYPE_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
EOF
```
2. Run the `release.sh` script.
Expand Down

0 comments on commit 0ca139b

Please sign in to comment.