mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-12 04:05:10 -05:00
more post fix, first cut having war/gwt build from command line
This commit is contained in:
parent
08b39c1af7
commit
13cc25a26a
@ -33,7 +33,7 @@ inet_interfaces = all
|
|||||||
inet_protocols = all
|
inet_protocols = all
|
||||||
|
|
||||||
javapipe_destination_recipient_limit = 1
|
javapipe_destination_recipient_limit = 1
|
||||||
virtual_mailbox_domains = hash:/etc/postfix/config/virtual_domains
|
virtual_mailbox_domains = /etc/postfix/config/virtual_domains
|
||||||
virtual_mailbox_maps = mysql:/etc/postfix/config/virtual_mailbox_maps.cf
|
virtual_mailbox_maps = mysql:/etc/postfix/config/virtual_mailbox_maps.cf
|
||||||
virtual_transport = javapipe
|
virtual_transport = javapipe
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
apache-tomcat-7.0.37
|
|
@ -1 +0,0 @@
|
|||||||
apache-tomcat-7.0.37.tar.gz
|
|
8
ext/setup
Executable file
8
ext/setup
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
wget http://mirror.sdunix.com/apache/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz
|
||||||
|
tar -xzf apache-tomcat-7.0.42.tar.gz
|
||||||
|
rm apache-tomcat
|
||||||
|
ln -fs apache-tomcat-7.0.42 apache-tomcat
|
||||||
|
|
||||||
|
wget --no-check-certificate https://google-web-toolkit.googlecode.com/files/gwt-2.5.1.zip
|
||||||
|
unzip gwt-2.5.1.zip -x */samples/* */doc/*
|
||||||
|
ln -fs gwt-2.5.1 gwt
|
@ -4,18 +4,20 @@
|
|||||||
To include a user specific buildfile here, simply create one in the same
|
To include a user specific buildfile here, simply create one in the same
|
||||||
directory with the processing instruction <?eclipse.ant.import?>
|
directory with the processing instruction <?eclipse.ant.import?>
|
||||||
as the first entry and export the buildfile again. -->
|
as the first entry and export the buildfile again. -->
|
||||||
<project basedir="." default="build" name="Mailiverse-GWT">
|
<project basedir="." default="gwtc" name="Mailiverse-GWT">
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
<property name="ECLIPSE_HOME" value="../../../Desktop/eclipse"/>
|
<property name="ECLIPSE_HOME" value="../../../Desktop/eclipse"/>
|
||||||
|
<property name="GWT_PLUGIN" value="ls ../ext/gwt"/>
|
||||||
|
<property name="gwt.args" value="-logLevel INFO"/>
|
||||||
<property name="debuglevel" value="source,lines,vars"/>
|
<property name="debuglevel" value="source,lines,vars"/>
|
||||||
<property name="target" value="1.7"/>
|
<property name="target" value="1.7"/>
|
||||||
<property name="source" value="1.7"/>
|
<property name="source" value="1.7"/>
|
||||||
<path id="Mailiverse-GWT.classpath">
|
<path id="Mailiverse-GWT.classpath">
|
||||||
<pathelement location="war/WEB-INF/classes"/>
|
<pathelement location="war/WEB-INF/classes"/>
|
||||||
<pathelement location="../../../../../Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar"/>
|
<pathelement location="${GWT_PLUGIN}/gwt-user.jar"/>
|
||||||
<pathelement location="../../../../../Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-dev.jar"/>
|
<pathelement location="${GWT_PLUGIN}/gwt-dev.jar"/>
|
||||||
<pathelement location="../../../../../Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/validation-api-1.0.0.GA-sources.jar"/>
|
<pathelement location="${GWT_PLUGIN}/validation-api-1.0.0.GA-sources.jar"/>
|
||||||
<pathelement location="../../../../../Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/validation-api-1.0.0.GA.jar"/>
|
<pathelement location="${GWT_PLUGIN}/validation-api-1.0.0.GA.jar"/>
|
||||||
<pathelement location="lib/gwtexporter-2.5.0-SNAPSHOT.jar"/>
|
<pathelement location="lib/gwtexporter-2.5.0-SNAPSHOT.jar"/>
|
||||||
</path>
|
</path>
|
||||||
<target name="init">
|
<target name="init">
|
||||||
@ -67,4 +69,22 @@
|
|||||||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
||||||
<antcall target="build"/>
|
<antcall target="build"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="gwtc" depends="build" description="GWT compile to JavaScript (production mode)">
|
||||||
|
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="war/WEB-INF/classes"/>
|
||||||
|
<pathelement location="src"/>
|
||||||
|
<path refid="Mailiverse-GWT.classpath"/>
|
||||||
|
</classpath>
|
||||||
|
<!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
|
||||||
|
<jvmarg value="-Xmx256M"/>
|
||||||
|
<!--<arg line="-style PRETTY"/>-->
|
||||||
|
<arg line="-war"/>
|
||||||
|
<arg value="war"/>
|
||||||
|
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
|
||||||
|
<arg line="${gwt.args}"/>
|
||||||
|
<arg value="com.mailiverse.gwt/Mailiverse_GWT"/>
|
||||||
|
</java>
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -40,7 +40,7 @@ public class ConstantsServer
|
|||||||
public static final String SMTP_HOST = LOCAL_MAIL_SERVER;
|
public static final String SMTP_HOST = LOCAL_MAIL_SERVER;
|
||||||
public static final int SMTP_PORT = 25;
|
public static final int SMTP_PORT = 25;
|
||||||
|
|
||||||
public static final String LOCAL_SMTP_PORT = "10025";
|
public static final String LOCAL_SMTP_PORT = "25";
|
||||||
|
|
||||||
public static final String KEY_AUTH_HOST = KEY_SERVER;
|
public static final String KEY_AUTH_HOST = KEY_SERVER;
|
||||||
public static final int KEY_AUTH_PORT = 7000;
|
public static final int KEY_AUTH_PORT = 7000;
|
||||||
|
@ -76,7 +76,6 @@ public class Mailer extends Servent<Master>
|
|||||||
sendMap.put("cc", Strings.concat(mail.getHeader().getRecipients().getCc(), ","));
|
sendMap.put("cc", Strings.concat(mail.getHeader().getRecipients().getCc(), ","));
|
||||||
sendMap.put("bcc", Strings.concat(mail.getHeader().getRecipients().getBcc(), ","));
|
sendMap.put("bcc", Strings.concat(mail.getHeader().getRecipients().getBcc(), ","));
|
||||||
sendMap.put("replyTo", Strings.concat(mail.getHeader().getRecipients().getReplyTo(), ","));
|
sendMap.put("replyTo", Strings.concat(mail.getHeader().getRecipients().getReplyTo(), ","));
|
||||||
sendMap.put("publicKey", Base64.encode(((CryptorRSA)getMaster().getCryptor()).getPublicKey()));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (mail.isPresendEncryptable())
|
if (mail.isPresendEncryptable())
|
||||||
|
@ -1,21 +1,37 @@
|
|||||||
package mail.server.postfix;
|
package mail.server.postfix;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.PrintStream;
|
||||||
|
|
||||||
import mail.server.handler.UserInformation;
|
import mail.server.handler.UserInformation;
|
||||||
import mail.server.handler.UserInformationFactory;
|
import mail.server.handler.UserInformationFactory;
|
||||||
|
|
||||||
|
import core.util.LogOut;
|
||||||
import core.util.Streams;
|
import core.util.Streams;
|
||||||
|
|
||||||
|
|
||||||
public class PostfixMailReceiver
|
public class PostfixMailReceiver
|
||||||
{
|
{
|
||||||
|
static LogOut log = new LogOut(PostfixMailReceiver.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param args
|
* @param args
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) throws Exception
|
public static void main(String[] args) throws Exception
|
||||||
{
|
{
|
||||||
|
File me = new File(args[0]);
|
||||||
|
File logFile = new File(me.getParent(), "run.log");
|
||||||
|
|
||||||
|
System.setOut(new PrintStream(new FileOutputStream(logFile)));
|
||||||
|
System.setErr(System.out);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
log.debug("Running with log file as ",logFile);
|
||||||
|
|
||||||
Class.forName("com.mysql.jdbc.Driver");
|
Class.forName("com.mysql.jdbc.Driver");
|
||||||
String toAddress = args[1];
|
String toAddress = args[1];
|
||||||
byte[] bytes = Streams.readFullyBytes(System.in);
|
byte[] bytes = Streams.readFullyBytes(System.in);
|
||||||
@ -23,4 +39,9 @@ public class PostfixMailReceiver
|
|||||||
UserInformation userInfo = UserInformationFactory.getInstance().getUserInformation(toAddress);
|
UserInformation userInfo = UserInformationFactory.getInstance().getUserInformation(toAddress);
|
||||||
userInfo.handleIn(new ByteArrayInputStream(bytes));
|
userInfo.handleIn(new ByteArrayInputStream(bytes));
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
System.out.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
To include a user specific buildfile here, simply create one in the same
|
To include a user specific buildfile here, simply create one in the same
|
||||||
directory with the processing instruction <?eclipse.ant.import?>
|
directory with the processing instruction <?eclipse.ant.import?>
|
||||||
as the first entry and export the buildfile again. -->
|
as the first entry and export the buildfile again. -->
|
||||||
<project basedir="." default="build" name="Mailiverse.Mail-WebServer">
|
<project basedir="." default="war" name="Mailiverse.Mail-WebServer">
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
<property name="ECLIPSE_HOME" value="../../../../Desktop/eclipse"/>
|
<property name="ECLIPSE_HOME" value="../../../../Desktop/eclipse"/>
|
||||||
<property name="Mailiverse.Ext.BouncyCastle.location" value="../ext/bouncycastle"/>
|
<property name="Mailiverse.Ext.BouncyCastle.location" value="../ext/bouncycastle"/>
|
||||||
@ -128,4 +128,61 @@
|
|||||||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
||||||
<antcall target="build"/>
|
<antcall target="build"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="war" depends="build">
|
||||||
|
<delete dir="dist" />
|
||||||
|
<mkdir dir="dist" />
|
||||||
|
|
||||||
|
<jar destfile="dist/WEB-INF/lib/Mailiverse.Ext.BouncyCastle.jar">
|
||||||
|
<fileset dir="${Mailiverse.Ext.BouncyCastle.location}/bin" />
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
|
||||||
|
<jar destfile="dist/WEB-INF/lib/Mailiverse.Ext.JordanZimmerman.jar">
|
||||||
|
<fileset dir="${Mailiverse.Ext.JordanZimmerman.location}/bin" />
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<jar destfile="dist/WEB-INF/lib/Mailiverse.Ext.Json.jar">
|
||||||
|
<fileset dir="${Mailiverse.Ext.Json.location}/bin" />
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<copy includeemptydirs="false" todir="dist/WEB-INF/classes">
|
||||||
|
<fileset dir="src">
|
||||||
|
<exclude name="**/*.java"/>
|
||||||
|
</fileset>
|
||||||
|
<fileset dir="build/classes" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy includeemptydirs="false" todir="dist">
|
||||||
|
<fileset dir="WebContent" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy includeemptydirs="false" todir="dist/WEB-INF/lib">
|
||||||
|
<fileset dir="lib">
|
||||||
|
<include name="aws-java-sdk.jar"/>
|
||||||
|
<include name="commons-codec-1.4.jar"/>
|
||||||
|
<include name="commons-logging-1.1.1.jar"/>
|
||||||
|
<include name="httpclient-4.1.1.jar"/>
|
||||||
|
<include name="httpcore-4.1.jar"/>
|
||||||
|
<include name="javamail-1.4.jar"/>
|
||||||
|
<include name="mina-core-2.0.4.jar"/>
|
||||||
|
<include name="mysql-connector-java-3.1.14-bin.jar"/>
|
||||||
|
<include name="recaptcha4j-0.0.7.jar"/>
|
||||||
|
<include name="slf4j-api-1.3.1.jar"/>
|
||||||
|
<include name="slf4j-simple-1.3.1.jar"/>
|
||||||
|
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<war basedir="dist" destfile="../../build/exported/WebServer.war" needxmlfile='false' >
|
||||||
|
<exclude name="WEB-INF/**" />
|
||||||
|
<webinf dir="dist/WEB-INF/">
|
||||||
|
<!-- <include name="**/*.jar" /> -->
|
||||||
|
</webinf>
|
||||||
|
</war>
|
||||||
|
|
||||||
|
<delete dir="dist" />
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
Reference in New Issue
Block a user