Skip to content

Commit

Permalink
added jmail
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed May 22, 2021
1 parent b04a3b4 commit 87806a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion add_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export PATH=$JAVA_HOME/bin:$PATH

if [ $# -ne 1 ]
then
echo "usage: add_module.sh prov|prov-ext|util|tls|pg|pkix|mail"
echo "usage: add_module.sh prov|prov-ext|util|tls|pg|pkix|mail|jmail"
exit 0
fi

Expand Down Expand Up @@ -42,6 +42,10 @@ rm -rf module.tmp
elif [ $1 = "mail" ]
then
javac -target 1.9 --module-path ${provJar}:$utilJar:$pkixJar -classpath module.tmp/v5 -d module.tmp/v9 `find $1/src/main/jdk1.9 -name "*.java"` -sourcepath $1/src/main/jdk1.9:$1/src/main/java
elif [ $1 = "jmail" ]
then
jmailSrc=`echo build/artifacts/jdk1.5/bcjmail-jdk15on-*/src/`
javac -target 1.9 --module-path ${provJar}:$utilJar:$pkixJar -classpath module.tmp/v5 -d module.tmp/v9 `find $1/src/main/jdk1.9 -name "*.java"` -sourcepath $1/src/main/jdk1.9:$jmailSrc
elif [ $1 = "pkix" ]
then
javac -target 1.9 --module-path ${provJar}:$utilJar -classpath module.tmp/v5 -d module.tmp/v9 `find $1/src/main/jdk1.9 -name "*.java"` -sourcepath $1/src/main/jdk1.9:$1/src/main/java
Expand Down
2 changes: 2 additions & 0 deletions jar_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ sh add_module.sh pkix

sh add_module.sh mail

sh add_module.sh jmail

sh add_module.sh pg

0 comments on commit 87806a8

Please sign in to comment.