Build from sources JDiskExplorer

Explorer-like frontend add-on to upload/download.
Post Reply
Gy0m
Posts: 10
Joined: Wed Apr 22, 2009 9:51 am

Build from sources JFileUpoad

Post by Gy0m »

I have read "Build from sources" in section API & Design for JFileUpload but there is not new build when I execute "setenv.bat".

I have just these lines in setenv.bat

Code: Select all

SET JAVA_HOME=c:\java\jdk1.6.0
SET ANT_HOME=c:\java\ant1.7.1
SET PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin
Thank for help

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Build from sources JDiskExplorer

Post by support »

setenv is the same. You have a new build.xml that comes with JDiskExplorer. Overwrite the old one with the JDiskExplorer one then run:
- setenv.bat
- ant all
- ant sign

Does it help ?

Gy0m
Posts: 10
Joined: Wed Apr 22, 2009 9:51 am

Re: Build from sources JDiskExplorer

Post by Gy0m »

Yes it's help me a little :)

my build.xml is

Code: Select all

<project name="JFileUpload" default="usage" basedir=".">

  <target name="init">    
    <echo message="---------------------------------------------------------------"/>  
    <echo message="-----------        BUILDING JFILEUPLOAD PACKAGE       ---------"/>
    <echo message=""/>
    <property name="year" value="2008"/>
    <property name="jdksource" value="1.3"/>
    <property name="jdktarget" value="1.3"/>        
    <property name="dist.home" value="${basedir}/dist" />
    <property name="lib.home" value="${basedir}/lib" />
    <property name="chttpclientjar" value="${lib.home}/chttpclient.jar" />
    <property name="cloggingjar" value="${lib.home}/clogging.jar" />      
    <property name="cnetjar" value="${lib.home}/cnet.jar" />
    <property name="jfileuploadjar" value="${lib.home}/jfileupload.jar" />
    <property name="jars" value="${basedir}" />
    <property name="sources" value="${basedir}/src" />    
    <property name="classes" value="${basedir}/classes" />
    <property name="api" value="${basedir}/documentation/api" />    

    <property name="jkspassword" value="yourpassword" />    
    <property name="jkskeystore" value="yourfile.pfx" />
    <property name="jksalias" value="youralias" />

  </target>

  <target name="clean" depends="init">
    <echo message="------ Cleaning ..."/>
    <delete dir="${classes}"/> 
    <mkdir dir="${classes}"/> 
    <delete dir="${dist.home}/lib"/> 
    <mkdir dir="${dist.home}/lib"/> 
  </target>

  <target name="build.explorer" depends="init">
    <echo message="------ Compiling application - JDISKEXPLORER implementation"/>
    <property name="sourcesexplorer" value="${basedir}/src-explorer" />
    <delete dir="${classes}"/> 
    <mkdir dir="${classes}"/> 
    <javac srcdir="${sourcesexplorer}" destdir="${classes}" includes="jfileupload/transfer/client/explorer/**" source="${jdksource}" target="${jdktarget}">
      <classpath>            
        <pathelement location="${cloggingjar}"/>        
        <pathelement location="${jfileuploadjar}"/>
        <pathelement location="${lib.home}/ftpimpl.jar"/>
        <pathelement location="${lib.home}/httpimpl.jar"/>
        <pathelement location="${cnetjar}"/>
        <pathelement location="${chttpclientjar}"/>
        <pathelement location="${sources}"/>
        <pathelement location="${sourcesexplorer}"/>
      </classpath>
    </javac>
    <copy todir="${classes}">
       <fileset dir="${sourcesexplorer}" >
           <include name="**/*.properties"/>
           <include name="**/*.gif"/>
       </fileset>
     </copy>
  </target>
  
  <target name="build.http" depends="init">
    <echo message="------ Compiling application - HTTP implementation"/>
    <delete dir="${classes}"/> 
    <mkdir dir="${classes}"/> 
    <javac srcdir="${sources}" destdir="${classes}" includes="jfileupload/transfer/client/http/**" source="${jdksource}" target="${jdktarget}">
      <classpath>            
        <pathelement location="${chttpclientjar}"/>
        <pathelement location="${cloggingjar}"/>
        <pathelement location="${jfileuploadjar}"/>
        <pathelement location="${sources}"/>
      </classpath>
    </javac>
  </target>

  <target name="build.ftp" depends="init">
    <echo message="------ Compiling application - FTP implementation"/>
    <delete dir="${classes}"/> 
    <mkdir dir="${classes}"/> 
    <javac srcdir="${sources}" destdir="${classes}" includes="jfileupload/transfer/client/ftp/**" source="${jdksource}" target="${jdktarget}">
      <classpath>            
        <pathelement location="${cnetjar}"/>
        <pathelement location="${cloggingjar}"/>
        <pathelement location="${jfileuploadjar}"/>
        <pathelement location="${sources}"/>
      </classpath>
    </javac>
  </target>

  <target name="build.core" depends="init">
    <delete dir="${classes}"/> 
    <mkdir dir="${classes}"/> 
    <echo message="------ Compiling application - Front-end"/>
    <javac srcdir="${sources}" destdir="${classes}" includes="**" excludes="jfileupload/transfer/client/http/**,jfileupload/transfer/client/ftp/**" source="${jdksource}" target="${jdktarget}">
      <classpath>            
        <pathelement location="${cloggingjar}"/>
        <pathelement location="${sources}"/>
      </classpath>
    </javac>
    <copy todir="${classes}">
       <fileset dir="${sources}" >
           <include name="jfileupload/transfer/client/util/resource*.*"/>
           <include name="META-INF/services/org.apache.commons.logging.LogFactory"/>
       </fileset>
     </copy>    
  </target>

  <target name="deploy.explorer" depends="build.explorer">
    <echo message="------ Building and copying JDISKEXPLORER implementation Jar file"/>
    <jar jarfile="${lib.home}/explorerui.jar" basedir="${classes}" />
  </target>

  <target name="deploy.http" depends="build.http">
    <echo message="------ Building and copying HTTP implementation Jar file"/>
    <jar jarfile="${lib.home}/httpimpl.jar" basedir="${classes}" />
  </target>

  <target name="deploy.ftp" depends="build.ftp">
    <echo message="------ Building and copying FTP implementation Jar file"/>
    <jar jarfile="${lib.home}/ftpimpl.jar" basedir="${classes}" />
  </target>

  <target name="deploy.core" depends="build.core">
    <echo message="------ Building and copying core Jar files"/>
    <jar jarfile="${lib.home}/jfileupload.jar" basedir="${classes}" />
  </target>

  <target name="deploy" depends="deploy.core,deploy.ftp,deploy.http,deploy.explorer">
    <echo message="------ Building and copying all Jar files"/>
    <copy todir="${dist.home}/lib">
      <fileset dir="${lib.home}">
        <include name="**/*.jar"/>
      </fileset>
    </copy>    
    <move file="${lib.home}/jfileupload.jar" todir="${dist.home}/lib" overwrite="true"/> 
    <move file="${lib.home}/ftpimpl.jar" todir="${dist.home}/lib" overwrite="true"/> 
    <move file="${lib.home}/httpimpl.jar" todir="${dist.home}/lib" overwrite="true"/> 
    <move file="${lib.home}/explorerui.jar" todir="${dist.home}/lib" overwrite="true"/> 
  </target>

  <target name="all" depends="clean,deploy">
     <echo message="------ Running JavaDoc"/>
     <javadoc packagenames="jfileupload.*"
              sourcepath="${sources}"
              destdir="${api}">
      <classpath>
        <pathelement location="${chttpclientjar}"/>
        <pathelement location="${cloggingjar}"/>
        <pathelement location="${cnetjar}"/>
      </classpath>
     </javadoc>
  </target>


  <target name="sign" depends="init">
    <echo message="------ Signing JAR files"/>
     <signjar jar="${dist.home}/lib/chttpclient.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/cnet.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/clogging.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/jfileupload.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/httpimpl.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/ftpimpl.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
     <signjar jar="${dist.home}/lib/explorerui.jar" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />

  </target>
  
  <target name="usage">
    <echo message="-----------------------------------------------------------------"/>  
    <echo message="----------           JFILEUPLOAD PREMIUM BUILD         ----------"/>
    <echo message=""/>
    <echo message="Usage : "/>
    <echo message="        ant build       : JFileUpload Compilation"/>
    <echo message="        ant deploy      : JFileUpload Compilation + JARs"/>    
    <echo message="        ant all         : JFileUpload Compilation + JARs + JavaDoc"/>
    <echo message="        ant sign        : JFileUpload JAR signing"/>    
    <echo message=""/>
    <echo message="---------------------------------------------------------------"/>  
  </target>
  
</project>

and the result of build

Code: Select all

    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:26: package
 org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.Log;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:27: package
 org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.LogFactory;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:28: package
 org.apache.commons.net.ftp does not exist
    [javac] import org.apache.commons.net.ftp.FTPFile;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:30: cannot
find symbol
    [javac] symbol: class FTPUploadTransfer
    [javac] public class FTPRemoteTFileSystem extends FTPUploadTransfer implemen
ts TFileSystem
    [javac]                                           ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:59: cannot f
ind symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     public void init() throws ClientException
    [javac]                               ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:167: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     private void process(TFile current) throws ClientException
    [javac]                                                ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:210: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     private void recurseProcess(TFile dir, long level, long depth) t
hrows ClientException
    [javac]
      ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:238: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     protected void transferAndRetry(TFile current, HashMap meta) thr
ows ClientException
    [javac]
    ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:299: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     protected void transfer(TFile currentfile, HashMap meta) throws
ClientException
    [javac]
^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPDownloadTransfer.java:691: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPDownload
Transfer
    [javac]     public Object execute() throws ClientException
    [javac]                                    ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:32: cannot
find symbol
    [javac] symbol  : class Log
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPRemoteTF
ileSystem
    [javac]     private static final Log log = LogFactory.getLog(FTPRemoteTFileS
ystem.class);
    [javac]                          ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:47: cannot
find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPRemoteTF
ileSystem
    [javac]     public void init() throws ClientException
    [javac]                               ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFileSystem.java:483: cannot
 find symbol
    [javac] symbol  : class FTPFile
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPRemoteTF
ileSystem
    [javac]     private boolean[][] getPermissions(FTPFile f)
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFile.java:13: package org.a
pache.commons.net.ftp does not exist
    [javac] import org.apache.commons.net.ftp.FTPFile;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFile.java:17: cannot find s
ymbol
    [javac] symbol  : class FTPFile
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPRemoteTF
ile
    [javac]     private FTPFile _file = null;
    [javac]             ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\ftp\FTPRemoteTFile.java:25: cannot find s
ymbol
    [javac] symbol  : class FTPFile
    [javac] location: class jfileupload.transfer.client.explorer.ftp.FTPRemoteTF
ile
    [javac]     public FTPRemoteTFile(FTPFile file)
    [javac]                           ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:25: packag
e jfileupload.transfer.client.core does not exist
    [javac] import jfileupload.transfer.client.core.ClientException;
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:26: packag
e jfileupload.transfer.client.core does not exist
    [javac] import jfileupload.transfer.client.core.TransferListener;
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:28: packag
e jfileupload.transfer.client.http does not exist
    [javac] import jfileupload.transfer.client.http.HTTPTransfer;
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:30: packag
e org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.Header;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:31: packag
e org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.HttpException;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:32: packag
e org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.HttpStatus;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:33: packag
e org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.Log;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:34: packag
e org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.LogFactory;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:40: cannot
 find symbol
    [javac] symbol: class HTTPTransfer
    [javac] public class HTTPDownloadTransfer extends HTTPTransfer implements Ru
nnable
    [javac]                                           ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:42: cannot
 find symbol
    [javac] symbol  : class Log
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     private static final Log log = LogFactory.getLog(HTTPDownloadTra
nsfer.class);
    [javac]                          ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:17: packa
ge jfileupload.transfer.client.core does not exist
    [javac] import jfileupload.transfer.client.core.ClientException;
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:22: packa
ge jfileupload.transfer.client.http does not exist
    [javac] import jfileupload.transfer.client.http.HTTPTransfer;
    [javac]                                        ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:24: packa
ge org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.HttpClient;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:25: packa
ge org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.HttpStatus;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:26: packa
ge org.apache.commons.httpclient does not exist
    [javac] import org.apache.commons.httpclient.URIException;
    [javac]                                     ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:27: packa
ge org.apache.commons.httpclient.methods does not exist
    [javac] import org.apache.commons.httpclient.methods.PostMethod;
    [javac]                                             ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:28: packa
ge org.apache.commons.httpclient.util does not exist
    [javac] import org.apache.commons.httpclient.util.URIUtil;
    [javac]                                          ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:29: packa
ge org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.Log;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:30: packa
ge org.apache.commons.logging does not exist
    [javac] import org.apache.commons.logging.LogFactory;
    [javac]                                  ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:32: canno
t find symbol
    [javac] symbol: class HTTPTransfer
    [javac] public class HTTPRemoteTFileSystem extends HTTPTransfer implements T
FileSystem
    [javac]                                            ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:70: cannot
 find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     public void init() throws ClientException
    [javac]                               ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:162: canno
t find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     private void process(TFile current) throws ClientException
    [javac]                                                ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:177: canno
t find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     private void recurseProcess(TFile dir, long level, long depth) t
hrows ClientException
    [javac]
      ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:224: canno
t find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     protected void transfer(TFile currentfile, HashMap meta) throws
ClientException
    [javac]
^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPDownloadTransfer.java:616: canno
t find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPDownlo
adTransfer
    [javac]     public Object execute() throws ClientException
    [javac]                                    ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:34: canno
t find symbol
    [javac] symbol  : class Log
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPRemote
TFileSystem
    [javac]     private static final Log log = LogFactory.getLog(HTTPRemoteTFile
System.class);
    [javac]                          ^
    [javac] C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\sr
c\jfileupload\transfer\client\explorer\http\HTTPRemoteTFileSystem.java:57: canno
t find symbol
    [javac] symbol  : class ClientException
    [javac] location: class jfileupload.transfer.client.explorer.http.HTTPRemote
TFileSystem
    [javac]     public void init() throws ClientException
    [javac]                               ^
    [javac] 100 errors

BUILD FAILED
C:\Documents and Settings\guillaume.renard\Bureau\Sources RFM\jde\build.xml:92:
Compile failed; see the compiler error output for details.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Build from sources JDiskExplorer

Post by support »

You should have a lib/folder at the same level of build.xml, waht JAR files do you have in this folder ? The error you report means that these JAR files are not found.

Gy0m
Posts: 10
Joined: Wed Apr 22, 2009 9:51 am

Re: Build from sources JDiskExplorer

Post by Gy0m »

I have this Jars Files:
- chttpclient
- clogging
- cnet
- ftpimpl
- httpimpl
- jfileupload

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Build from sources JDiskExplorer

Post by support »

There JARs are under dist/lib folder, not in lib/ folder, correct ?
Are you sure you have a lib/ folder at the same level of build.xml ?

Gy0m
Posts: 10
Joined: Wed Apr 22, 2009 9:51 am

Re: Build from sources JDiskExplorer

Post by Gy0m »

Yes, I have a lib/ folder at the same level of build.xml

I have found another solution, I build JARs Files with eclipse for JDiskExplorer et use Ant for JFileUpload and it works !!!

I have 2 others questions.
- I search how to change the default local directory. Maybe it's possible in pane or bar properties ?

- Can I give access right (Read Only or Read/Write) ? In ban or pane properties too ?

Thanks

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Build from sources JDiskExplorer

Post by support »

Question #1: Yes, JDiskExplorer allows to select home folder, default folder or any folder.
Try to add "startdir" parameter such as:
<PARAM NAME="startdir" VALUE="c:/test">

To select user's home folder add the following property in i18n_pane.properties:
panel.local.combobox.lastdir=home

Question #2: Read/Write access for local file ? No, this feature is not available.

Gy0m
Posts: 10
Joined: Wed Apr 22, 2009 9:51 am

Re: Build from sources JDiskExplorer

Post by Gy0m »

No, Read/Write access for remote file. It's possible?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Build from sources JDiskExplorer

Post by support »

You have chmod for FTP (Unix). You're using HTTP or FTP upload?

Post Reply