"Fossies" - the Fresh Open Source Software Archive

Member "jcifs_1.3.19/build.xml" (21 Dec 2017, 10466 Bytes) of package /linux/misc/jcifs-1.3.19.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "build.xml": 1.3.18_vs_1.3.19.

    1 <project name="jcifs" default="usage" basedir=".">
    2 
    3     <property name="version" value="1.3.19"/>
    4     <property name="reldate" value="Dec 21, 2017"/>
    5 
    6     <target name="usage">
    7         <echo>
    8 Available Build Targets:
    9 
   10 dependencies: Checks that all class dependencies are met.
   11      compile: Builds the jCIFS classes.
   12          jar: Packages the jCIFS classes into a .jar file.
   13         docs: XSLT generated website pages
   14      javadoc: Creates the Javadoc API documentation.
   15          all: Performs all of the above.
   16 
   17        clean: Removes build artifacts.
   18     allclean: Removes distribution and build artifacts.  This
   19               includes the .jar file, .class files, and
   20               the Javadoc API documentation.
   21 
   22        jcifs: Builds the "all" target, followed by "clean".  This
   23               reproduces the distribution package contents.
   24      distrib: Builds the "jcifs" target, and additionally
   25               recreates the .zip and .tgz downloadable
   26               distributions.
   27     checksum: Creates MD5 checksums of the .zip and .tgz
   28               distributions.
   29 
   30        usage: Displays this message.</echo>
   31     </target>
   32 
   33     <target name="hasServlet" unless="hasServlet">
   34         <fail>
   35 
   36     The Java Servlet API classes could not be found.  These files can be
   37     obtained from:
   38 
   39         http://java.sun.com/products/servlet/download.html
   40         </fail>
   41     </target>
   42 
   43     <target name="dependencies">
   44         <available classname="javax.servlet.Servlet" property="hasServlet"/>
   45         <antcall target="hasServlet"/>
   46     </target>
   47 
   48     <target name="compile" depends="dependencies">
   49         <mkdir dir="build"/>
   50         <javac srcdir="src"
   51             destdir="build"
   52             source="1.5"
   53             target="1.5"
   54             fork="yes"
   55             executable="/usr/local/java/bin/javac"
   56             compiler="javac1.5"
   57             debug="on">
   58 <!--
   59             <compilerarg line="-Xlint:deprecation -Xlint:unchecked"/>
   60 -->
   61         </javac>
   62         <copy file="src/jcifs/util/mime.map" tofile="build/jcifs/util/mime.map" overwrite="yes"/>
   63         <copy file="src/jcifs/http/ne.css" tofile="build/jcifs/http/ne.css" overwrite="yes"/>
   64     </target>
   65 
   66     <target name="jar" depends="compile">
   67         <jar jarfile="jcifs-${version}.jar">
   68             <manifest>
   69                 <attribute name="Bundle-Version" value="${version}"/>
   70                 <attribute name="Bundle-Name" value="jcifs"/>
   71                 <attribute name="Bundle-ManifestVersion" value="2"/>
   72                 <attribute name="Bundle-SymbolicName" value="jcifs"/>
   73                 <attribute name="Export-Package" value="jcifs, jcifs.dcerpc, jcifs.dcerpc.msrpc, jcifs.http, jcifs.https, jcifs.netbios, jcifs.ntlmssp, jcifs.smb, jcifs.util, jcifs.util.transport"/>
   74             </manifest>
   75             <fileset dir="build"/>
   76         </jar>
   77     </target>
   78 
   79     <target name="javadoc">
   80         <delete dir="docs/api" quiet="true"/>
   81         <mkdir dir="docs/api"/>
   82         <javadoc destdir="docs/api" overview="docs/overview.html" author="true" version="true" use="true" windowtitle="JCIFS API">
   83             <fileset dir="src">
   84                 <include name="jcifs/Config.java"/>
   85                 <include name="jcifs/UniAddress.java"/>
   86                 <include name="jcifs/netbios/NbtAddress.java"/>
   87                 <include name="jcifs/smb/ACE.java"/>
   88                 <include name="jcifs/smb/DosFileFilter.java"/>
   89                 <include name="jcifs/smb/NtlmAuthenticator.java"/>
   90                 <include name="jcifs/smb/NtlmContext.java"/>
   91                 <include name="jcifs/smb/NtlmPasswordAuthentication.java"/>
   92                 <include name="jcifs/smb/SID.java"/>
   93                 <include name="jcifs/smb/SmbAuthException.java"/>
   94                 <include name="jcifs/smb/SmbException.java"/>
   95                 <include name="jcifs/smb/SmbFileFilter.java"/>
   96                 <include name="jcifs/smb/SmbFileInputStream.java"/>
   97                 <include name="jcifs/smb/SmbFile.java"/>
   98                 <include name="jcifs/smb/SmbFilenameFilter.java"/>
   99                 <include name="jcifs/smb/SmbFileOutputStream.java"/>
  100                 <include name="jcifs/smb/SmbNamedPipe.java"/>
  101                 <include name="jcifs/smb/SmbRandomAccessFile.java"/>
  102                 <include name="jcifs/util/LogStream.java"/>
  103                 <include name="jcifs/util/RC4.java"/>
  104                 <include name="jcifs/util/HMACT64.java"/>
  105                 <include name="jcifs/util/Base64.java"/>
  106             </fileset>
  107             <classpath>
  108                 <pathelement path="${java.class.path}"/>
  109                 <fileset dir=".">
  110                     <include name="**/*.jar"/>
  111                 </fileset>
  112             </classpath>
  113         </javadoc>
  114         <!--copy file="docs/allclasses-frame.html" tofile="docs/api/allclasses-frame.html" overwrite="yes"/-->
  115     </target>
  116 
  117     <target name="all" depends="jar,docs,javadoc"/>
  118 
  119     <target name="clean">
  120         <delete dir="build" quiet="true"/>
  121     </target>
  122 
  123     <target name="allclean" depends="clean">
  124         <delete quiet="true">
  125             <fileset dir=".">
  126                 <include name="jcifs-${version}.zip"/>
  127                 <include name="jcifs-${version}.zip.MD5"/>
  128                 <include name="jcifs-${version}.tgz"/>
  129                 <include name="jcifs-${version}.tgz.MD5"/>
  130                 <include name="jcifs-${version}.jar"/>
  131             </fileset>
  132         </delete>
  133         <delete dir="docs/api" quiet="true"/>
  134         <delete quiet="true">
  135             <fileset dir="docs">
  136                 <include name="index.html"/>
  137                 <include name="pipes.html"/>
  138                 <include name="faq.html"/>
  139                 <include name="wins.html"/>
  140                 <include name="capture.html"/>
  141                 <include name="httpclient.html"/>
  142                 <include name="resolver.html"/>
  143                 <include name="authhandler.html"/>
  144                 <include name="ntlmhttpauth.html"/>
  145             </fileset>
  146         </delete>
  147     </target>
  148 
  149     <target name="jcifs" depends="all,clean"/>
  150 
  151     <target name="distrib" depends="jcifs">
  152         <delete dir="dist_tmp" quiet="true"/>
  153         <copy todir="dist_tmp/jcifs_${version}">
  154             <fileset dir=".">
  155                 <include name="build.xml"/>
  156                 <include name="jcifs-${version}.jar"/>
  157                 <include name="README.txt"/>
  158                 <include name="LICENSE.txt"/>
  159                 <include name="docs/**"/>
  160                 <include name="examples/**"/>
  161                 <include name="src/**"/>
  162                 <include name="patches/**"/>
  163             </fileset>
  164         </copy>
  165         <fixcrlf srcdir="dist_tmp" tab="remove" tablength="4">
  166             <include name="**/*.java"/>
  167             <include name="**/*.c"/>
  168             <include name="**/*.h"/>
  169             <include name="**/*.css"/>
  170             <include name="**/*.html"/>
  171             <include name="**/*.xml"/>
  172             <include name="**/*.txt"/>
  173             <include name="**/*.jav"/>
  174             <include name="**/*.bak"/>
  175             <include name="**/*.prp"/>
  176             <include name="**/*.map"/>
  177             <include name="**/*.patch"/>
  178         </fixcrlf>
  179         <fixcrlf srcdir="dist_tmp" eol="crlf">
  180             <include name="**/*.java"/>
  181             <include name="**/*.c"/>
  182             <include name="**/*.h"/>
  183             <include name="**/*.css"/>
  184             <include name="**/*.html"/>
  185             <include name="**/*.xml"/>
  186             <include name="**/*.txt"/>
  187             <include name="**/*.jav"/>
  188             <include name="**/*.bak"/>
  189             <include name="**/*.prp"/>
  190             <include name="**/*.map"/>
  191             <include name="**/*.patch"/>
  192             <include name="**/Makefile"/>
  193         </fixcrlf>
  194         <zip zipfile="jcifs-${version}.zip" basedir="dist_tmp"/>
  195         <fixcrlf srcdir="dist_tmp" eol="lf">
  196             <include name="**/*.java"/>
  197             <include name="**/*.c"/>
  198             <include name="**/*.h"/>
  199             <include name="**/*.css"/>
  200             <include name="**/*.html"/>
  201             <include name="**/*.xml"/>
  202             <include name="**/*.txt"/>
  203             <include name="**/*.jav"/>
  204             <include name="**/*.bak"/>
  205             <include name="**/*.prp"/>
  206             <include name="**/*.map"/>
  207             <include name="**/*.patch"/>
  208             <include name="**/Makefile"/>
  209         </fixcrlf>
  210         <tar tarfile="jcifs-${version}.tar" basedir="dist_tmp"/>
  211         <delete dir="dist_tmp" quiet="true"/>
  212         <gzip src="jcifs-${version}.tar" zipfile="jcifs-${version}.tgz"/>
  213         <delete file="jcifs-${version}.tar" quiet="true"/>
  214     </target>
  215 
  216     <target name="checksum">
  217         <checksum file="jcifs-${version}.zip"/>
  218         <checksum file="jcifs-${version}.tgz"/>
  219     </target>
  220 
  221     <target name="docs">
  222         <style basedir="docs" destdir="docs" extension=".html" style="plain.xsl"
  223                 includes="pipes.xml,faq.xml,wins.xml,capture.xml,httpclient.xml,resolver.xml,authhandler.xml,ntlmhttpauth.xml">
  224             <param name="date" expression="${reldate}"/>
  225             <param name="lib" expression="jcifs-${version}"/>
  226             <param name="title" expression="JCIFS"/>
  227             <param name="copyright" expression="The JCIFS Project"/>
  228             <param name="edge" expression="#808080"/>
  229             <param name="mainpane" expression="#ffffff"/>
  230             <param name="leftpane" expression="#FFD700"/>
  231             <param name="middlepane" expression="#ffffff"/>
  232             <param name="footer" expression="#808080"/>
  233             <param name="text1" expression="#000000"/>
  234             <param name="text2" expression="#000080"/>
  235         </style>
  236         <style basedir="docs" destdir="docs" extension=".html" style="proj.xsl"
  237                 includes="index.xml">
  238             <param name="date" expression="${reldate}"/>
  239             <param name="lib" expression="jcifs-${version}"/>
  240             <param name="title" expression="JCIFS"/>
  241             <param name="copyright" expression="The JCIFS Project"/>
  242             <param name="edge" expression="#808080"/>
  243             <param name="mainpane" expression="#ffffff"/>
  244             <param name="leftpane" expression="#e0e0FF"/>
  245             <param name="middlepane" expression="#ffffff"/>
  246             <param name="footer" expression="#808080"/>
  247             <param name="text1" expression="#000000"/>
  248             <param name="text2" expression="#000080"/>
  249         </style>
  250     </target>
  251 
  252 </project>