Skip to content

How to use FDT without CLI #32

Open
@lucashmsilva

Description

@lucashmsilva

Hi, is there any way I can use the FDT classes through a Java program without having to use a command line interface to invoke the JAR file?

I tried this:

public class Main {

	public static void main(String [] args) {
		String [] arg = {"-c 192.168.0.4 -d C:\\Users\\Remote\\Documents\\ /home/local/bigFile.txt"};
		try {
			FDT.main(arg);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

But, no matter which command arg I pass, the default server is started:

2018-09-02 21:05:25 INFO lia.util.net.copy.FDT main

FDT [ 0.26.1-201708081830 ] STARTED ...


2018-09-02 21:05:25 INFO lia.util.net.common.Config <init> Using lia.util.net.copy.PosixFSFileChannelProviderFactory as FileChannelProviderFactory
2018-09-02 21:05:25 INFO lia.util.net.common.Config <init> FDT started in server mode
2018-09-02 21:05:25 INFO lia.util.net.copy.FDT main FDT uses *blocking* I/O mode.
READY
2018-09-02 21:05:25 INFO lia.util.net.copy.FDTServer doWork FDTServer start listening on port: 54321

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions