Load /tmp/tmp.cssmc10846/jabref-2.0.1+2.1b into
[debian/jabref.git] / build.xml
index d4d9625..a8ccea2 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -22,9 +22,9 @@
    Compiler: Ant
    Authors:  Joerg K. Wegner, wegnerj@informatik.uni-tuebingen.de
              Morten O. Alver
-   Version:  $Revision: 1.54.2.3 $
-             $Date: 2006/02/02 09:31:59 $
-             $Author: mortenalver $
+   Version:  $Revision: 1.59 $
+             $Date: 2006/04/26 08:38:44 $
+             $Author: kiar $
 
    modified:
              28.07.2005 r.nagel
@@ -46,7 +46,7 @@
 
         <!-- some version information -->
         <property name="jabref.bin" value="jabref" />
-        <property name="jabref.version" value="2.0.1" />
+        <property name="jabref.version" value="2.1 beta" />
         <property name="jabref.placeholder.version" value="@version@" /> <!-- used by replace task -->
 
 
@@ -63,6 +63,9 @@
         <property name="build.resource" value="${build.dir}/resource" />
         <property name="build.help" value="${build.dir}/help" />
         <property name="build.javadocs" value="${build.dir}/docs/API" />
+        <property name="build.extensions" value="${build.dir}/extensions" />
+        <property name="build.extension-javadocs" value="${build.extensions}/API" />
+        <property name="build.extension-layout" value="${build.extensions}/layout" />
         <property name="build.openoffice.meta" value="${build.resource}/openoffice"/>
 
         <!-- Set the properties for source directories -->
@@ -77,6 +80,8 @@
         <property name="images.dir" value="${src.dir}/images" />
         <property name="fonts.dir" value="${src.dir}/images/font" />
         <property name="help.dir" value="${src.dir}/help" />
+        <property name="extensions.dir" value="${src.dir}/extensions" />
+        <property name="layout.dir" value="${src.dir}/resource/layout" />
 
 
         <!-- Set the properties for library directories -->
             <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
             <pathelement location="${library.directory}/commons-logging.jar" />-->
             <pathelement location="${library.directory}/antlr.jar" />
-            <pathelement location="${library.directory}/looks-1.2.2.jar" />
+            <pathelement location="${library.directory}/looks-2.0.1.jar" />
             <pathelement location="${library.directory}/forms-1.0.4.jar" />
-            <pathelement location="${library.directory}/spin.jar" />
+            <pathelement location="${library.directory}/spin-1.4.jar" />
             <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
         </classpath>
          </java>
         <classpath>
             <pathelement location="${build.lib}/jabref.jar"/>
             <pathelement location="${library.directory}/antlr.jar" />
-            <pathelement location="${library.directory}/looks-1.2.2.jar" />
+            <pathelement location="${library.directory}/looks-2.0.1.jar" />
             <pathelement location="${library.directory}/forms-1.0.4.jar" />
             <pathelement location="${library.directory}/spin.jar" />
             <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
           <classpath>
             <pathelement location="${build.lib}/jabref.jar"/>
             <pathelement location="${library.directory}/antlr.jar" />
-            <pathelement location="${library.directory}/looks-1.2.2.jar" />
+            <pathelement location="${library.directory}/looks-2.0.1.jar" />
             <pathelement location="${library.directory}/forms-1.0.4.jar" />
-            <pathelement location="${library.directory}/spin.jar" />
+            <pathelement location="${library.directory}/spin-1.4.jar" />
             <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
         </classpath>
       </nbprofiledirect>
           <classpath>
             <pathelement location="${build.lib}/jabref.jar"/>
             <pathelement location="${library.directory}/antlr.jar" />
-            <pathelement location="${library.directory}/looks-1.2.2.jar" />
+            <pathelement location="${library.directory}/looks-2.0.1.jar" />
             <pathelement location="${library.directory}/forms-1.0.4.jar" />
-            <pathelement location="${library.directory}/spin.jar" />
+            <pathelement location="${library.directory}/spin-1.4.jar" />
             <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
+
         </classpath>
       </java>
     </target>
         <target name="compile">
                 <mkdir dir="${build.classes}" />
                 <!--deprecation="on"-->
-                <javac debug="off" deprecation="on" destdir="${build.classes}" source="1.4" target="1.4">
+                <javac debug="on" deprecation="on" destdir="${build.classes}" source="1.4" target="1.4">
                         <src path="${java.dir}"/>
                         <exclude name="tests/**"/>
                         <classpath>
                                 <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
                                 <pathelement location="${library.directory}/commons-logging.jar" />-->
                                 <pathelement location="${library.directory}/antlr.jar" />
-                                <pathelement location="${library.directory}/looks-1.2.2.jar" />
+                                <pathelement location="${library.directory}/looks-2.0.1.jar" />
                                 <pathelement location="${library.directory}/forms-1.0.4.jar" />
-                                <pathelement location="${library.directory}/spin.jar" />
-                            <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
+                                <pathelement location="${library.directory}/spin-1.4.jar" />
+                                <pathelement location="${library.directory}/glazedlists-1.5.0_java14.jar" />
+                                <pathelement location="${library.directory}/microba.jar" />
                         </classpath>
                 </javac>
         </target>
                                 <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
                                 <pathelement location="${library.directory}/commons-logging.jar" />-->
                                 <pathelement location="${library.directory}/antlr.jar" />
-                                <pathelement location="${library.directory}/looks-1.2.2.jar" />
-                                <pathelement location="${library.directory}/spin.jar" />
+                                <pathelement location="${library.directory}/looks-2.0.1.jar" />
+                                <pathelement location="${library.directory}/spin-1.4.jar" />
                         </classpath>
                 </javac>
 
                                 <include name="README" />
                         </fileset>
                         <manifest>
-                            <attribute name="Main-Class" value="net.sf.jabref.JabRef" />
+                            <attribute name="Main-Class" value="net.sf.jabref.JabRef" /> 
+<!--                            <attribute name="Main-Class" value="net.sf.jabref.gui.FieldWeightDialog" /> -->
                         </manifest>
                 </jar>
 
@@ -327,6 +335,70 @@ version=${jabref.version}</echo>
                 </javadoc>
         </target>
 
+        <!-- Creates javadocs for the extensions -->
+        <target name="extension-javadocs" depends="build" description="Generates the javadocs for the extensions archive">
+                <mkdir dir="${build.extension-javadocs}" />
+                <copy todir="${build.extension-javadocs}">
+                    <fileset dir="${help.dir}" defaultexcludes="yes">
+                        <include name="CustomExports.html" />
+                        <include name="CustomImports.html" />
+                    </fileset>
+                </copy>
+                
+                <javadoc sourcepath="${java.dir}" 
+                         destdir="${build.extension-javadocs}" 
+                         author="true" 
+                         version="true" 
+                         windowtitle="JabRef-Extensions API" 
+                         link="http://java.sun.com/j2se/1.4.1/docs/api/"
+                         Overview="${extensions.dir}/API/overview.html"
+                         access="protected"
+                >
+                        <!-- 
+                          create javadoc only selectively for classes that 
+                          users extending JabRef are likely to use
+                        -->
+                        <fileset dir="${java.dir}" defaultexcludes="yes">
+                            <include name="net/sf/jabref/imports/ImportFormat.java" />
+                            <include name="net/sf/jabref/imports/ImportFormatReader.java" />
+                            <include name="net/sf/jabref/BibtexEntry.java" />
+                            <include name="net/sf/jabref/BibtexEntryType.java" />
+                            <include name="net/sf/jabref/AuthorList.java" />
+                            <include name="net/sf/jabref/AuthorList.java" />                        
+                            <include name="net/sf/jabref/export/layout/LayoutFormatter.java" />
+                        </fileset>
+
+                        <classpath refid="classpath" />
+                </javadoc>
+        </target>
+        
+        <!-- Creates javadocs for the extensions -->
+        <target name="extensions" depends="extension-javadocs" description="Generates the extensions archive">
+            <!-- copy examples -->
+            <copy todir="${build.extensions}">
+                          <fileset dir="${java.dir}">
+                             <include name="net/sf/jabref/export/layout/format/CurrentDate.java"/>
+                             <include name="net/sf/jabref/export/layout/format/ToLowerCase.java"/>
+                             <include name="net/sf/jabref/export/layout/format/HTMLChars.java"/>
+                             <include name="net/sf/jabref/imports/*Importer.java"/>
+                           </fileset>
+            </copy>
+            <mkdir dir="${build.extension-layout}" />
+            <copy todir="${build.extension-layout}">
+                          <fileset dir="${layout.dir}" />
+            </copy>
+            <copy todir="${build.extensions}">
+                          <fileset dir="${extensions.dir}" />
+                          <filterset>
+                             <filter token="version" value="${jabref.version}"/>
+                          </filterset>
+            </copy>
+            <!-- create extensions-zip file -->
+                   <zip destfile="${build.dir}/jabref-extensions.zip">
+                       <zipfileset dir="${build.extensions}" prefix="jabref-extensions"/>
+                   </zip>        
+               </target>
+        
         <target name="clean" description="Clean project">
                 <delete dir="${build.dir}" />
         </target>
@@ -338,12 +410,14 @@ version=${jabref.version}</echo>
                 <unjar src="${library.directory}/commons-logging.jar" dest="${build.tmp}" />-->
                 <unjar src="${library.directory}/antlr.jar" dest="${build.tmp}" />
                 <!--                <unjar src="${library.directory}/plastic-1.2.1.jar" dest="${build.classes}" />-->
-                <unjar src="${library.directory}/looks-1.2.2.jar" dest="${build.tmp}" />
+                <unjar src="${library.directory}/looks-2.0.1.jar" dest="${build.tmp}" />
                 <unjar src="${library.directory}/forms-1.0.4.jar" dest="${build.tmp}" />
-                <unjar src="${library.directory}/spin.jar" dest="${build.tmp}" />
+                <unjar src="${library.directory}/spin-1.4.jar" dest="${build.tmp}" />
                 <unjar src="${library.directory}/glazedlists-1.5.0_java14.jar" dest="${build.tmp}" />
-
+                <unjar src="${library.directory}/microba.jar" dest="${build.tmp}" />
             <delete dir="${build.tmp}/META-INF"/>
+           <!-- rename the microba license file -->
+           <move file="${build.tmp}/license.txt" tofile="${build.tmp}/microba-license.txt"/>
         </target>
 
 
@@ -471,9 +545,9 @@ Number (CCN)           maintenance
                                 <!--<pathelement location="${library.directory}/commons-httpclient-2.0.jar" />
                                 <pathelement location="${library.directory}/commons-logging.jar" />-->
                                 <pathelement location="${library.directory}/antlr.jar" />
-                                <pathelement location="${library.directory}/looks-1.2.2.jar" />
-                                <pathelement location="${library.directory}/looks-1.2.2.jar" />
-                                <pathelement location="${library.directory}/spin.jar" />
+                                <pathelement location="${library.directory}/looks-2.0.1.jar" />
+                                <pathelement location="${library.directory}/looks-2.0.1.jar" />
+                                <pathelement location="${library.directory}/spin-1.4.jar" />
                         </classpath>
 
                         <!--<test name="tests.net.sf.jabref.export.layout.format.AuthorLastFirstAbbreviatorTester"/>-->