diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-03 22:23:09 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-03 22:23:09 +0000 |
commit | 0c2cde06b0ec4168ca49ec910b50cfd3a7fc4bfd (patch) | |
tree | 9d9baf29bde168d8b1b88db711818f5bbfc2091a /dev-java | |
parent | Add IRC log about using ant. (diff) | |
download | java-testcases-0c2cde06b0ec4168ca49ec910b50cfd3a7fc4bfd.tar.gz java-testcases-0c2cde06b0ec4168ca49ec910b50cfd3a7fc4bfd.tar.bz2 java-testcases-0c2cde06b0ec4168ca49ec910b50cfd3a7fc4bfd.zip |
Add tests for ant-javamail.
svn path=/testcases/; revision=4507
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/ant-javamail/README | 2 | ||||
-rw-r--r-- | dev-java/ant-javamail/attachement.txt | 1 | ||||
-rw-r--r-- | dev-java/ant-javamail/build.xml | 17 |
3 files changed, 20 insertions, 0 deletions
diff --git a/dev-java/ant-javamail/README b/dev-java/ant-javamail/README new file mode 100644 index 0000000..afe5a24 --- /dev/null +++ b/dev-java/ant-javamail/README @@ -0,0 +1,2 @@ +Test like this: +ant -Dsmtmp=your.smtp.host -Dyou@somehost.com diff --git a/dev-java/ant-javamail/attachement.txt b/dev-java/ant-javamail/attachement.txt new file mode 100644 index 0000000..d93c182 --- /dev/null +++ b/dev-java/ant-javamail/attachement.txt @@ -0,0 +1 @@ +attachement diff --git a/dev-java/ant-javamail/build.xml b/dev-java/ant-javamail/build.xml new file mode 100644 index 0000000..3dfaff1 --- /dev/null +++ b/dev-java/ant-javamail/build.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" ?> +<project default="mail"> + <target name="mail"> + <echo message="Using server: ${smtp}" /> + <echo message="Using mail address: ${mail}" /> + <mail mailhost="${smtp}" subject="Test message"> + <from address="${mail}"/> + <replyto address="${mail}"/> + <to address="${mail}"/> + <message>Testing mail target</message> + <!-- use all *.txt files as attachements --> + <fileset dir="."> + <include name="**/*.txt"/> + </fileset> + </mail> + </target> +</project> |