Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Created October 8, 2010 06:23
Show Gist options
  • Select an option

  • Save brianhsu/616431 to your computer and use it in GitHub Desktop.

Select an option

Save brianhsu/616431 to your computer and use it in GitHub Desktop.
package xmlimport;
import java.util.Properties;
import ftp.FINJFTP;
import props.PropsServiceProvider;
public class DoSwapServerIndex {
public static void main(String[] args) {
PropsServiceProvider propsProviderProduction = new PropsServiceProvider("props/ServiceProvider.properties");
PropsServiceProvider propsProviderDevelopment = new PropsServiceProvider("props/server115.properties");
Properties propsProduction = propsProviderProduction.getProperties();
Properties propsDevelopment = propsProviderProduction.getProperties();
FINJFTP ftp218 = new FINJFTP(propsProduction, "XXX.XXX.XXX.XXX");
FINJFTP ftp5 = new FINJFTP(propsProduction, "XXX.XXX.XXX.XXX");
FINJFTP ftp115 = new FINJFTP(propsDevelopment, "XXX.XXX.XXX.XXX");
ftp218.swapIndex();
ftp115.swapIndex();
ftp5.swapIndex();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment