depend on default-jre (at least Java 6)
[debian/jabref.git] / build.xml
index 71b6ac0a3efc33051fb10adb86ef9a00f80869dc..d13a9f3826800bdcd25120e4b9a942d47019912e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -35,9 +35,9 @@
      +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
 
        <!-- some version information -->
-       <property name="jabref.version" value="2.9.2" />
-       <property name="jabref.version.full" value="2.9.2.0" /> <!-- a version number with 4 places. Required by launch4j -->
-       <property name="jabref.year" value="2013" />
+       <property name="jabref.version" value="2.10" />
+       <property name="jabref.version.full" value="2.10.0.5" /> <!-- a version number with 4 places. Required by launch4j -->
+       <property name="jabref.year" value="2014" />
        <property name="jabref.placeholder.version" value="@version@" />
        <property name="jabref.placeholder.year" value="@year@" />
        <!-- used by replace task -->
@@ -83,7 +83,7 @@
        <property name="osxbin.dir" value="osx" />
 
        <!-- Load user dependent properties. Has to happen before setting the properties here -->
-       <!-- For instance to redefine the NSIS-compiler write 
+       <!-- For instance to redefine the NSIS-compiler write
                nsis.executable="d:\\prog\\dev\\NSIS\\makensis.exe"
          -->
        <property file="user.properties" />
         <include name="spl/*.jar" />
     </fileset>
        <fileset id="deletableMeta-InfFiles" dir="${build.tmp}/META-INF">
-               <exclude name="services/**/*" />                
+               <exclude name="services/**/*" />
        </fileset>
     <!-- Done by MrDlib -->
 
        <!-- Compiles project excluding tests -->
        <target name="compile" depends="generate">
                <mkdir dir="${build.classes}" />
-               <javac debug="on" deprecation="on" destdir="${build.classes}" encoding="UTF8"
-                  source="1.6" target="1.6">
+               <javac debug="on" deprecation="on" destdir="${build.classes}" encoding="UTF8" source="1.6" target="1.6">
                        <src path="${java.dir}" />
                        <exclude name="tests/**" />
                        <exclude name="**/JabRefMain.java" />
                        <classpath refid="classpath" />
                </javac>
-               <javac debug="off" deprecation="on" destdir="${build.classes}" source="1.6" target="1.6">
+               <javac debug="off" deprecation="on" destdir="${build.classes}" encoding="UTF8" source="1.6" target="1.6">
                        <src path="${java.dir}" />
                        <include name="**/JabRefMain.java" />
                </javac>
        <!-- Compiles project including tests -->
        <target name="compiletest">
                <mkdir dir="${build.classes}" />
-               <javac debug="on" destdir="${build.classes}" source="1.6" target="1.6">
+               <javac debug="on" destdir="${build.classes}" encoding="UTF8" source="1.6" target="1.6">
                        <src path="${java.dir}" />
                        <include name="tests/**" />
                        <classpath refid="classpathTest" />
        <!-- Jars up project -->
        <target name="jars" depends="build, unjarlib">
                <mkdir dir="${build.lib}" />
-        
+
                <mkdir dir="${build.tmp}" />
-               <jar destfile="${build.lib}/${build.jar}" > 
+               <jar destfile="${build.lib}/${build.jar}" >
         <!--<jar destfile="${build.lib}/JabRef-${revision}.jar" manifest="${src.dir}/MANIFEST.MF">-->
 
                        <fileset dir="${build.classes}" />
                <!-- Insert version informations -->
                <replace dir="${build.help}">
                    <replacefilter
-                           token="${jabref.placeholder.version}" 
+                           token="${jabref.placeholder.version}"
                                value="${jabref.version}" />
                    <replacefilter
-                           token="${jabref.placeholder.year}" 
+                           token="${jabref.placeholder.year}"
                                value="${jabref.year}" />
                        <include name="**/About.html" />
                </replace>
@@ -405,8 +404,8 @@ version=${jabref.version}</echo>
                </copy>
 
                <javadoc sourcepath="${java.dir}" destdir="${build.extension-javadocs}" author="true" version="true" windowtitle="JabRef-Extensions API" link="http://docs.oracle.com/javase/6/docs/api/" Overview="${extensions.dir}/API/overview.html" access="protected">
-                       <!-- 
-                 create javadoc only selectively for classes that 
+                       <!--
+                 create javadoc only selectively for classes that
                  users extending JabRef are likely to use
               -->
                        <fileset dir="${java.dir}" defaultexcludes="yes">
@@ -475,10 +474,11 @@ version=${jabref.version}</echo>
                <jarbundler dir="${build.lib}"
                     name="JabRef"
                     mainclass="net.sf.jabref.JabRef"
-                    jars="${build.lib}/${build.jar}"
+                    jar="${build.lib}/${build.jar}"
                     icon="${images.dir}/JabRef-Logo.icns"
                     version="${jabref.version}"
                     jvmversion="1.6+"
+                   vmoptions="-Xms128m -Xmx512m"
                     stubfile="${osxbin.dir}/JavaApplicationStub"
                     signature="JABr">
             <documenttype name="BibTeX file" extensions="bib" role="Editor"
@@ -698,7 +698,8 @@ version=${jabref.version}</echo>
                <delete dir="${temp.dir}" failonerror="no"/>
        </target>
 
-       <!-- creates all distribution files in ${build.lib} -->
-       <target name="release" depends="clean, win.installer, non_osx, osxjar, bzip2src, zipsrc" />
-       <target name="release.linux" depends="clean, win.installer.linux, non_osx, osxjar, bzip2src, zipsrc" />
+       <target name="devsnapshot" depends="clean, addgitinfo, non_osx, win.installer, osxjar" description="creates development snapshot binaries" />
+
+       <target name="release" depends="clean, win.installer, non_osx, osxjar, bzip2src, zipsrc" description="Do a release on Windows. Creates all distribution files in ${build.lib}"/>
+       <target name="release.linux" depends="clean, win.installer.linux, non_osx, osxjar, bzip2src, zipsrc" description="Do a release on Linux. Creates all distribution files in ${build.lib}" />
 </project>