(↓ここから) // Mac Application Menu com.apple.eawt.Application fApplication = com.apple.eawt.Application.getApplication(); fApplication.setEnabledPreferencesMenu(true); fApplication.addApplicationListener( new com.apple.eawt.ApplicationAdapter() { @Override public void handleAbout(com.apple.eawt.ApplicationEvent e) { showAbout(); e.setHandled(true); } @Override public void handleOpenApplication( com.apple.eawt.ApplicationEvent e) { } @Override public void handleOpenFile(com.apple.eawt.ApplicationEvent e) { } @Override public void handlePreferences( com.apple.eawt.ApplicationEvent e) { doPreference(); } @Override public void handlePrintFile( com.apple.eawt.ApplicationEvent e) { } @Override public void handleQuit(com.apple.eawt.ApplicationEvent e) { processExit(); } }); (↑ここまで)この区間をコメントアウトします。
<target name="-post-jar"> <copy todir="../OpenDolphin-1.4/plugins"> <fileset dir="dist"> <include name="*.jar" /> </fileset> </copy> </target>ejbのビルドは、OpenDolphin-1.4/ejb-build.xmlから行ってください。以下の変更は不要です。(2010/06/10)
<target name="-post-jar"> <jar jarfile="./dist/beans.jar"> <fileset dir="./build/classes"> <include name="open/dolphin/ejb/*.class" /> <include name="open/dolphin/dto/*.class" /> <include name="open/dolphin/infomodel/*.class" /> <include name="open/dolphin/exception/*.class" /> </fileset> <metainf dir="./src"> <include name="persistence.xml" /> </metainf> </jar> <jar jarfile="./dist/openDolphin-1.4.7_01n.ear" > <metainf dir="src/"> <include name="application.xml" /> <include name="jboss-app.xml" /> </metainf> <fileset dir="./dist"> <include name="beans.jar" /> </fileset> </jar> <delete file="./dist/beans.jar" /> </target>