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

Refactored blobAzureApp using mvn-archetype-simple for generic folder structure, updated gitignore and README.md #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# IntelliJ IDEA files
.idea/
*.iml

# Ignore Mac DS_Store files
.DS_Store

# Ignore target
target/
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ After your storage account is created, it is pinned to the dashboard. Click on i

## Modify the connection string in the AzureApp.java file

Open this solution, and in the AzureApp.java file, change the value for connection string to the one retrieved from the portal.
Open this solution, and in the AzureApp.java file, change the value for connection string to the one retrieved from the portal as below:

* Set `AccountName` to the name of your storage account
* Set `AccountKey` to the Key copied from the portal

At this point, you can run this application. It creates its own file to upload and download, and then cleans up after itself by deleting everything at the end.

* Command to run the application `mvn clean install exec:java` . This will compile all sources and run the main class AzureApp.java
20 changes: 0 additions & 20 deletions blobAzureApp/.classpath

This file was deleted.

23 changes: 0 additions & 23 deletions blobAzureApp/.project

This file was deleted.

3 changes: 0 additions & 3 deletions blobAzureApp/.settings/org.eclipse.core.resources.prefs

This file was deleted.

5 changes: 0 additions & 5 deletions blobAzureApp/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions blobAzureApp/.settings/org.eclipse.m2e.core.prefs

This file was deleted.

18 changes: 9 additions & 9 deletions blobAzureApp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>5.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand All @@ -41,4 +41,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ public static void main( String[] args )
sc.close();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package blobQuickstart.blobAzureApp;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

/**
* Unit test for simple App.
*/
public class AzureAppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}