Skip to content

Commit 9542412

Browse files
committed
add subsections in README. Add this to memeber assignments
1 parent 5eb9345 commit 9542412

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cloudinary-core/src/main/java/com/cloudinary/Url.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public Url source(String source) {
104104
}
105105

106106
public Url source(StoredFile source) {
107-
if (source.getResourceType() != null) resourceType = source.getResourceType();
108-
if (source.getType() != null) type = source.getType();
109-
if (source.getVersion() != null) version = source.getVersion().toString();
110-
format = source.getFormat();
107+
if (source.getResourceType() != null) this.resourceType = source.getResourceType();
108+
if (source.getType() != null) this.type = source.getType();
109+
if (source.getVersion() != null) this.version = source.getVersion().toString();
110+
this.format = source.getFormat();
111111
this.source = source.getPublicId();
112112
return this;
113113
}

samples/photo_album/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ If you would like to deploy the sample application in the root server path do th
3333

3434
mv target/photo_album.war $CATALINA_HOME/webapps/ROOT.war
3535

36+
## Configuration
37+
3638
Next you need to pass your Cloudinary account's Cloud Name, API Key, and API Secret. This sample application assumes these values exists in the form
3739
of a `CLOUDINARY_URL` settings either as an environment variable or as system property. The `CLOUDINARY_URL` value is available in the [dashboard of your Cloudinary account](https://cloudinary.com/console).
3840
If you don't have a Cloudinary account yet, [click here](https://cloudinary.com/users/register/free) to create one for free.
@@ -47,6 +49,8 @@ The specific method with which you pass that information to Tomcat (or any other
4749

4850
TOMCAT_OPTS=-DCLOUDINARY_URL=cloudinary://<API-KEY>:<API-SECRET>@<CLOUD-NAME>
4951

52+
## Running
53+
5054
If you chose the second option you will need to now start Tomcat:
5155

5256
$CATALINA_HOME/bin/startup.sh

0 commit comments

Comments
 (0)