commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ima...@apache.org>
Subject [vfs][all]maven generated build file and conditional compilation
Date Fri, 04 Jun 2004 17:40:45 GMT
Hello !

If i use "maven ant" to regenerate the build file for vfs the following 
chunk will be removed from the current build.xml.
The indention is to allow to compile only these pieces which are relly 
needet. This might only be significat if a user build its own vfs and do 
not want to download all dependencies.

Now i would like to know:
Is it really needet to use "maven ant" to regenearate the build.xml?
If yes, is it possible to describe this conditional compilation 
behaviour? I tried <sourceModifications> but this do not find its way 
into the ant build file.

*********chunk********
        <condition property="commons-httpclient.avail">
            <available 
classname="org.apache.commons.httpclient.HttpClient" 
classpathref="classpath"/>
        </condition>
        <condition property="commons-net.avail">
            <available classname="org.apache.commons.net.ftp.FTPClient" 
classpathref="classpath"/>
        </condition>
        <condition property="slide.avail">
            <available classname="org.apache.webdav.lib.WebdavResource" 
classpathref="classpath"/>
        </condition>
        <condition property="jcifs.avail">
            <available classname="jcifs.smb.SmbFile" 
classpathref="classpath"/>
        </condition>
        <condition property="jsch.avail">
            <available classname="com.jcraft.jsch.ChannelSftp" 
classpathref="classpath"/>
        </condition>
        <patternset id="excludes">
            <exclude name="**/provider/ftp/**" unless="commons-net.avail"/>
            <exclude name="**/provider/http/**" 
unless="commons-httpclient.avail"/>
            <exclude name="**/provider/webdav/**" 
unless="commons-httpclient.avail"/>
            <exclude name="**/provider/webdav/**" unless="slide.avail"/>
            <exclude name="**/provider/smb/**" unless="jcifs.avail"/>
            <exclude name="**/provider/sftp/**" unless="jsch.avail"/>
        </patternset>
*********chunk********

Thanks!
-- Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message