Skip to content

Commit

Permalink
Update to support Apple Code Signing and Notarization
Browse files Browse the repository at this point in the history
  • Loading branch information
C4J committed Nov 16, 2024
1 parent 66e2126 commit 6268137
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 743 deletions.
607 changes: 0 additions & 607 deletions b6sftpSend/b6sftpSend.install4j

This file was deleted.

Binary file modified b6sftpSend/lib/devonly/i4jruntime.jar
Binary file not shown.
Binary file modified b6sftpSend/sftpSend.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion b6sftpSend/src/com/commander4j/sftp/Transfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class Transfer extends Thread
public static JUtility utils = new JUtility();
public static EmailQueue emailqueue = new EmailQueue();
public static EmailThread emailthread;
public static String version = "4.13";
public static String version = "4.50";
public static Long pollFrequencySeconds = (long) 0;

public static void main(String[] args)
Expand Down
165 changes: 72 additions & 93 deletions b6sftpSend/xml/config/email.xml
Original file line number Diff line number Diff line change
@@ -1,95 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<emailSettings>

<!-- Example Version-->

<!-- The section called "configuration" is always the active one - rename as appropriate-->

<!-- SMTP No Authentication Example -->

<configuration2>
<property name="mail.smtp.starttls.enable" encrypted="no" value="false"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.demo.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="25"/>
<property name="mail.smtp.user" encrypted="no" value="demo@email.com"/>
<property name="mail.smtp.password" encrypted="no" value=""/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="false"/>
<property name="mail.smtp.port" encrypted="no" value="25"/>
<property name="mail.smtp.from" encrypted="no" value="demo@email.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration2>

<!-- Microsoft smtp.live.com Example -->

<configuration>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.starttls.enable" encrypted="no" value="true"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.live.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="25"/>
<property name="mail.smtp.user" encrypted="no" value="email@outlook.com"/>
<property name="mail.smtp.password" encrypted="no" value="password"/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.port" encrypted="no" value="25"/>
<property name="mail.smtp.from" encrypted="no" value="email@outlook.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration>

<!-- Google gmail Example -->

<configuration1>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.starttls.enable" encrypted="no" value="true"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.gmail.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="465"/>
<property name="mail.smtp.user" encrypted="no" value="email@gmail.com"/>
<property name="mail.smtp.password" encrypted="no" value="password"/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.port" encrypted="no" value="465"/>
<property name="mail.smtp.from" encrypted="no" value="email@gmail.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration1>


<!-- Distribution Lists are referred to within message mapping Config.xml -->

<distributionList id="StartStop" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="LabelSync" enabled="N" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="Logs" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="Config" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="Monitor" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="Info" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="Error" enabled="Y" maxFrequencyMins="5">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="SSCC" enabled="Y" maxFrequencyMins="5">
<toAddressList>example@email.com</toAddressList>
</distributionList>

<distributionList id="OrderAssigned" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>


<emailSettings>
<!-- Example Version-->
<!-- The section called "configuration" is always the active one - rename as appropriate-->
<!-- SMTP No Authentication Example -->
<configuration2>
<property name="mail.smtp.starttls.enable" encrypted="no" value="false"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.demo.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="25"/>
<property name="mail.smtp.user" encrypted="no" value="demo@email.com"/>
<property name="mail.smtp.password" encrypted="no" value=""/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="false"/>
<property name="mail.smtp.port" encrypted="no" value="25"/>
<property name="mail.smtp.from" encrypted="no" value="demo@email.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration2>
<!-- Microsoft smtp.live.com Example -->
<configuration>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.starttls.enable" encrypted="no" value="true"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.live.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="25"/>
<property name="mail.smtp.user" encrypted="no" value="email@outlook.com"/>
<property name="mail.smtp.password" encrypted="no" value="password"/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.port" encrypted="no" value="25"/>
<property name="mail.smtp.from" encrypted="no" value="email@outlook.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration>
<!-- Google gmail Example -->
<configuration1>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.starttls.enable" encrypted="no" value="true"/>
<property name="mail.smtp.host" encrypted="no" value="smtp.gmail.com"/>
<property name="mail.smtp.socketFactory.port" encrypted="no" value="465"/>
<property name="mail.smtp.user" encrypted="no" value="email@gmail.com"/>
<property name="mail.smtp.password" encrypted="no" value="password"/>
<property name="mail.smtp.socketFactory.class" encrypted="no" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.auth" encrypted="no" value="true"/>
<property name="mail.smtp.port" encrypted="no" value="465"/>
<property name="mail.smtp.from" encrypted="no" value="email@gmail.com"/>
<property name="mail.debug" encrypted="no" value="true"/>
</configuration1>
<!-- Distribution Lists are referred to within message mapping Config.xml -->
<distributionList id="StartStop" enabled="N" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="LabelSync" enabled="N" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="Logs" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="Config" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="Monitor" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="Info" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="Error" enabled="Y" maxFrequencyMins="5">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="SSCC" enabled="Y" maxFrequencyMins="5">
<toAddressList>example@email.com</toAddressList>
</distributionList>
<distributionList id="OrderAssigned" enabled="Y" maxFrequencyMins="0">
<toAddressList>example@email.com</toAddressList>
</distributionList>
</emailSettings>
72 changes: 30 additions & 42 deletions b6sftpSend/xml/config/sftpSend.xml
Original file line number Diff line number Diff line change
@@ -1,47 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<config>

<!-- Example Version-->

<!-- Standard username and password logon example -->

<sftpSend2>

<!-- Example Version-->
<!-- Standard username and password logon example -->
<sftpSend2>
<general>
<value id="title" encrypted="no">SFTP Example</value>
<value id="emailEnabled" encrypted="no">true</value>
<value id="title" encrypted="no">SFTP Example</value>
<value id="emailEnabled" encrypted="no">false</value>
</general>

<security>
<value id="remoteHost" encrypted="no">1.2.3.4</value>
<value id="remotePort" encrypted="no">22</value>
<value id="checkKnownHosts" encrypted="no">no</value>
<value id="knownHostsFile" encrypted="no">./ssh/known_hosts</value>
<value id="authType" encrypted="no">user password</value>
<value id="username" encrypted="no">testuser</value>
<value id="password" encrypted="no">testpassword</value>
<value id="privateKeyFile" encrypted="no">./ssh/sftpSend</value>
<value id="privateKeyPasswordProtected" encrypted="no">no</value>
<value id="privateKeyPassword" encrypted="no"/>
</security>

<source>
<value id="localDir" encrypted="no">./send/</value>
<value id="localFileMask" encrypted="no">*.xml</value>
<value id="backupDir" encrypted="no"></value>
<value id="pollFrequencySeconds" encrypted="no">5000</value>
</source>

<destination>
<value id="remoteDir" encrypted="no">/remote/</value>
<value id="tempFileExtension" encrypted="no">.tmp</value>
</destination>

</sftpSend2>

<!-- public key and username example - comment out above and uncomment below to use -->

<!-- <sftpSend2>
<security>
<value id="remoteHost" encrypted="no">1.2.3.4</value>
<value id="remotePort" encrypted="no">22</value>
<value id="checkKnownHosts" encrypted="no">no</value>
<value id="knownHostsFile" encrypted="no">./ssh/known_hosts</value>
<value id="authType" encrypted="no">user password</value>
<value id="username" encrypted="no">testuser</value>
<value id="password" encrypted="no">testpassword</value>
<value id="privateKeyFile" encrypted="no">./ssh/sftpSend</value>
<value id="privateKeyPasswordProtected" encrypted="no">no</value>
<value id="privateKeyPassword" encrypted="no"/>
</security>
<source>
<value id="localDir" encrypted="no">./send/</value>
<value id="localFileMask" encrypted="no">*.xml</value>
<value id="backupDir" encrypted="no"/>
<value id="pollFrequencySeconds" encrypted="no">5000</value>
</source>
<destination>
<value id="remoteDir" encrypted="no">/remote/</value>
<value id="tempFileExtension" encrypted="no">.tmp</value>
</destination>
</sftpSend2>
<!-- public key and username example - comment out above and uncomment below to use -->
<!-- <sftpSend2>
<security>
<value id="remoteHost" encrypted="no">1.2.3.4</value>
Expand All @@ -67,6 +57,4 @@
</destination>
</sftpSend2> -->


</config>

0 comments on commit 6268137

Please sign in to comment.