OSX: build Java 7 package

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2162 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 2013-07-18 22:43:21 +00:00
parent fed0bcaea1
commit b32b1f90ac
2 changed files with 104 additions and 1 deletions

View File

@ -137,6 +137,36 @@
<!--delete dir="dist/DavMail.app"/-->
</target>
<target name="dist-osx-java7" depends="dist-osx">
<!-- move jar files to new location -->
<move todir="dist/DavMail.app/Contents/Java">
<fileset dir="dist/DavMail.app/Contents/Resources/Java"/>
</move>
<!-- use Java7 app launcher -->
<copy file="src/osx-java7/JavaAppLauncher" tofile="dist/DavMail.app/Contents/MacOS/davmail" overwrite="true"/>
<!-- include Java7 labels -->
<copy todir="dist/DavMail.app/Contents/Resources">
<fileset dir="src/osx-java7">
<include name="en.lproj/**"/>
</fileset>
</copy>
<!-- template plist -->
<copy file="src/osx-java7/Info.plist" todir="dist/DavMail.app/Contents" overwrite="true">
<filterchain>
<expandproperties/>
</filterchain>
</copy>
<zip file="dist/DavMail-MacOSX-Java7-${release-name}.app.zip" comment="In order to run DavMail on OSX Mountain Lion, you will need to disable Gatekeeper temporarily, see http://davmail.sourceforge.net/macosxsetup.html">
<zipfileset dir="dist">
<include name="DavMail.app/**/*"/>
<exclude name="DavMail.app/Contents/MacOS/davmail"/>
</zipfileset>
<zipfileset dir="dist" filemode="755">
<include name="DavMail.app/Contents/MacOS/davmail"/>
</zipfileset>
</zip>
</target>
<target name="dist-deb">
<taskdef resource="ant_deb_task.properties">
<classpath location="lib/ant-deb-0.0.1.jar"/>
@ -389,7 +419,7 @@
<antcall target="dist-nsis"/>
<antcall target="dist-deb"/>
<!--antcall target="dist-rpm"/-->
<antcall target="dist-osx"/>
<antcall target="dist-osx-java7"/>
<!-- source with binary deps package -->
<tar tarfile="dist/davmail-src-${release-name}.tgz" compression="gzip" longfile="gnu">
<tarfileset prefix="davmail-src-${release-name}" dir=".">

73
src/osx-java7/Info.plist Normal file
View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>LSUIElement</key><string>0</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleName</key>
<string>DavMail</string>
<key>CFBundleShortVersionString</key>
<string>${release}</string>
<key>CFBundleGetInfoString</key>
<string>DavMail Gateway ${release-name}</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>davmail</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${release}</string>
<key>CFBundleIconFile</key>
<string>tray.icns</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>davmail.DavGateway</string>
<key>JVMVersion</key>
<string>1.5+</string>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/davmail.jar</string>
<string>$JAVAROOT/activation-1.1.1.jar</string>
<string>$JAVAROOT/appbundler-1.0.jar</string>
<string>$JAVAROOT/checkstyle-all-5.0.jar</string>
<string>$JAVAROOT/commons-codec-1.3.jar</string>
<string>$JAVAROOT/commons-collections-3.1.jar</string>
<string>$JAVAROOT/commons-httpclient-3.1.jar</string>
<string>$JAVAROOT/commons-logging-1.0.4.jar</string>
<string>$JAVAROOT/htmlcleaner-2.2.jar</string>
<string>$JAVAROOT/jackrabbit-webdav-2.4.3.jar</string>
<string>$JAVAROOT/jcharset-1.3.jar</string>
<string>$JAVAROOT/jcifs-1.3.14.jar</string>
<string>$JAVAROOT/jdom-1.0.jar</string>
<string>$JAVAROOT/libgrowl-0.2.jar</string>
<string>$JAVAROOT/libgrowl.jnilib</string>
<string>$JAVAROOT/log4j-1.2.16.jar</string>
<string>$JAVAROOT/mail-1.4.3.jar</string>
<string>$JAVAROOT/slf4j-api-1.3.1.jar</string>
<string>$JAVAROOT/slf4j-log4j12-1.3.1.jar</string>
<string>$JAVAROOT/stax-api-1.0.1.jar</string>
<string>$JAVAROOT/stax2-api-3.1.1.jar</string>
<string>$JAVAROOT/woodstox-core-asl-4.1.2.jar</string>
<string>$JAVAROOT/xercesImpl-2.8.1.jar</string>
</array>
<key>VMOptions</key>
<string>-Dsun.net.inetaddr.ttl=60 -Xmx512m</string>
<key>WorkingDirectory</key>
<string>$APP_PACKAGE</string>
</dict>
<key>JVMMainClassName</key>
<string>davmail.DavGateway</string>
<key>JVMOptions</key>
<array>
<string>-Dsun.net.inetaddr.ttl=60 -Xmx512m</string>
</array>
</dict>
</plist>