Re: svn commit: r1834403 - in /ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp: FtpClientInterface.java SecureFtpClient.java SimpleFtpClient.java SshFtpClient.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1834403 - in /ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp: FtpClientInterface.java SecureFtpClient.java SimpleFtpClient.java SshFtpClient.java

Gil Portenseigne
Thanks Jacques :).

Gil

Le mardi 26 juin 2018 à 07:35:28 (-0000), [hidden email] a écrit :

> Author: jleroux
> Date: Tue Jun 26 07:35:28 2018
> New Revision: 1834403
>
> URL: http://svn.apache.org/viewvc?rev=1834403&view=rev
> Log:
> Improved: Adds missing license headers
> (OFBIZ-10245)
>
>
> Modified:
>     ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpClientInterface.java
>     ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SecureFtpClient.java
>     ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SimpleFtpClient.java
>     ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SshFtpClient.java
>
> Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpClientInterface.java
> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpClientInterface.java?rev=1834403&r1=1834402&r2=1834403&view=diff
> ==============================================================================
> --- ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpClientInterface.java (original)
> +++ ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpClientInterface.java Tue Jun 26 07:35:28 2018
> @@ -1,11 +1,29 @@
> +/*******************************************************************************
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License"); you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + *******************************************************************************/
>  package org.apache.ofbiz.content.ftp;
>  
> -import org.apache.ofbiz.base.util.GeneralException;
> -
>  import java.io.IOException;
>  import java.io.InputStream;
>  import java.util.List;
>  
> +import org.apache.ofbiz.base.util.GeneralException;
> +
>  public interface FtpClientInterface {
>  
>      /**
>
> Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SecureFtpClient.java
> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SecureFtpClient.java?rev=1834403&r1=1834402&r2=1834403&view=diff
> ==============================================================================
> --- ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SecureFtpClient.java (original)
> +++ ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SecureFtpClient.java Tue Jun 26 07:35:28 2018
> @@ -1,3 +1,21 @@
> +/*******************************************************************************
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License"); you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + *******************************************************************************/
>  package org.apache.ofbiz.content.ftp;
>  
>  import java.io.IOException;
>
> Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SimpleFtpClient.java
> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SimpleFtpClient.java?rev=1834403&r1=1834402&r2=1834403&view=diff
> ==============================================================================
> --- ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SimpleFtpClient.java (original)
> +++ ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SimpleFtpClient.java Tue Jun 26 07:35:28 2018
> @@ -1,5 +1,29 @@
> +/*******************************************************************************
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License"); you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + *******************************************************************************/
>  package org.apache.ofbiz.content.ftp;
>  
> +import java.io.IOException;
> +import java.io.InputStream;
> +import java.util.ArrayList;
> +import java.util.List;
> +import java.util.Locale;
> +
>  import org.apache.commons.net.ftp.FTP;
>  import org.apache.commons.net.ftp.FTPClient;
>  import org.apache.commons.net.ftp.FTPFile;
> @@ -8,12 +32,6 @@ import org.apache.ofbiz.base.util.Debug;
>  import org.apache.ofbiz.base.util.GeneralException;
>  import org.apache.ofbiz.base.util.UtilProperties;
>  
> -import java.io.IOException;
> -import java.io.InputStream;
> -import java.util.ArrayList;
> -import java.util.List;
> -import java.util.Locale;
> -
>  public class SimpleFtpClient implements FtpClientInterface {
>  
>      public static final String module = SimpleFtpClient.class.getName();
>
> Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SshFtpClient.java
> URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SshFtpClient.java?rev=1834403&r1=1834402&r2=1834403&view=diff
> ==============================================================================
> --- ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SshFtpClient.java (original)
> +++ ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/ftp/SshFtpClient.java Tue Jun 26 07:35:28 2018
> @@ -1,17 +1,35 @@
> +/*******************************************************************************
> + * Licensed to the Apache Software Foundation (ASF) under one
> + * or more contributor license agreements.  See the NOTICE file
> + * distributed with this work for additional information
> + * regarding copyright ownership.  The ASF licenses this file
> + * to you under the Apache License, Version 2.0 (the
> + * "License"); you may not use this file except in compliance
> + * with the License.  You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing,
> + * software distributed under the License is distributed on an
> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> + * KIND, either express or implied.  See the License for the
> + * specific language governing permissions and limitations
> + * under the License.
> + *******************************************************************************/
>  package org.apache.ofbiz.content.ftp;
>  
> -import org.apache.commons.io.IOUtils;
> -import org.apache.sshd.client.SshClient;
> -import org.apache.sshd.client.session.ClientSession;
> -import org.apache.sshd.client.subsystem.sftp.SftpClient;
> -import org.apache.ofbiz.base.util.UtilValidate;
> -
>  import java.io.IOException;
>  import java.io.InputStream;
>  import java.io.OutputStream;
>  import java.util.ArrayList;
>  import java.util.List;
>  
> +import org.apache.commons.io.IOUtils;
> +import org.apache.ofbiz.base.util.UtilValidate;
> +import org.apache.sshd.client.SshClient;
> +import org.apache.sshd.client.session.ClientSession;
> +import org.apache.sshd.client.subsystem.sftp.SftpClient;
> +
>  /**
>   * Basic client to copy files to an ssh ftp server
>   */
>
>