GithubHelp home page GithubHelp logo

ftpsample's Introduction

FTPSample

Program that reproduces a problem when uploading files. Most of the times 0 bytes files appear in server.

  • The program will attempt to upload a text file.
  • As in the real program it has retry functionality (max 5 attempts)
  • This program requires Java 8 (JDK 1.8) and maven.

To run the program

  1. Make sure to define the following variables to connect to the right server/gateway

    export ftpHost='sg-au-syd-X-X.integration.ibmcloud.com'
    export ftpPort='12345'
    export ftpDirectory='MY/DIRECTORY'
    export ftpUsername='MY_USER'
    export ftpPassword='MY_PASSWORD'
    
  2. Call App.java main method. This can be done via several ways. One is using maven

    cd FTPSample
    mvn clean install
    
  3. That is all, now check logs :)

In case maven is not installed.

  1. Just install it via brew or apt-get or manually.
  2. Once installed check its version and make sure Java 8 is used. (This program requires JDK 1.8)
$ mvn --version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T16:58:13+09:00)
Maven home: /usr/local/Cellar/maven/3.5.2/libexec
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
Default locale: en_JP, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"

ftpsample's People

Contributors

nacho4d avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.