Add main-class to jar files
authoramwaterhouse <Andrew Waterhouse>
Thu, 15 Sep 2005 09:11:58 +0000 (09:11 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 15 Sep 2005 09:11:58 +0000 (09:11 +0000)
build.xml

index d28bcca..38f5358 100755 (executable)
--- a/build.xml
+++ b/build.xml
       <mkdir dir="${packageDir}"/>
 
       <jar destfile="${packageDir}/${outputJar}">
+        <manifest>
+             <attribute name="Main-Class" value="jalview.bin.Jalview"/>
+        </manifest>
         <fileset dir="${outputDir}/">
           <exclude name="cache*/**"/>
           <exclude name="*.jar" />
   <target name="packageApplet" depends="compileApplet, buildPropertiesFile">
   <copy file="${resourceDir}/images/idwidth.gif" toFile="${outputDir}/images/idwidth.gif"/>
        <jar destfile="in.jar">
+        <manifest>
+            <attribute name="Main-Class" value="jalview.bin.JalviewLite"/>
+        </manifest>
         <fileset dir="${outputDir}">
           <include name="com/**"/>
           <include name="jalview/**"/>