Eclipse

For discussions about the source code and how to get involved in the development of muCommander.

Eclipse

Postby bakattila12 » Wed Nov 25, 2009 5:43 pm

Hi,

I would like to compile and debug muCommander from Eclipse. I have checked out and the ant build runs perfect starting muCommander right away. This is very nice.
But i want to add some "features" so i would need everything as an eclipse project start and debug (ok sysout does as well) from eclipse.
But compiling und starting out from Eclipse is an absolute must i guess.

Can you please tell me how do i proceed?

Many thanks,
attila
bakattila12
 
Posts: 1
Joined: Wed Nov 25, 2009 5:40 pm

Re: Eclipse

Postby jinxx » Mon Dec 14, 2009 10:54 pm

1) dot classpath

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
   <classpathentry kind="src" path="source"/>
   <classpathentry kind="src" path="custom"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_14"/>
   <classpathentry kind="lib" path="lib/include/ant-bzip2.jar"/>
   <classpathentry kind="lib" path="lib/include/commons-collections.jar"/>
   <classpathentry kind="lib" path="lib/include/commons-logging.jar"/>
   <classpathentry kind="lib" path="lib/include/commons-net-ftp.jar"/>
   <classpathentry kind="lib" path="lib/include/icu4j.jar"/>
   <classpathentry kind="lib" path="lib/include/j2ssh.jar"/>
   <classpathentry kind="lib" path="lib/include/J7Zip.jar"/>
   <classpathentry kind="lib" path="lib/include/jakarta-oro.jar"/>
   <classpathentry kind="lib" path="lib/include/jcifs.jar"/>
   <classpathentry kind="lib" path="lib/include/jmdns.jar"/>
   <classpathentry kind="lib" path="lib/include/jna.jar"/>
   <classpathentry kind="lib" path="lib/include/yanfs.jar"/>
   <classpathentry kind="lib" path="lib/noinclude/junit.jar"/>
   <classpathentry kind="lib" path="lib/noinclude/osx-eawt-stubs.jar"/>
   <classpathentry kind="lib" path="lib/noinclude/servlet-api.jar"/>
   <classpathentry kind="lib" path="C:/Users/jinxx/workspaceMUCOMMANDER/ant-1.7.0.jar"/>
   <classpathentry kind="output" path="bin"/>
</classpath>


2) dot project

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
   <name>mucommander</name>
   <comment></comment>
   <projects>
   </projects>
   <buildSpec>
      <buildCommand>
         <name>org.eclipse.jdt.core.javabuilder</name>
         <arguments>
         </arguments>
      </buildCommand>
   </buildSpec>
   <natures>
      <nature>org.eclipse.jdt.core.javanature</nature>
   </natures>
</projectDescription>


3) Set JRE system library to JDK

4) Run build.xml default goal to compile and run project. If you want to debug your changes, you must proceed to step below.

5) This is where real "magic" happen... create additional source folder e.g. custom, copy content from builded jar file, from ant or downloaded nightbuild (images, MANIFEST.MF,...)

Code: Select all
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\action\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\common\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\file\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\language\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\META-INF\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\preferences\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\progress\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\status_bar\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\themes\
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\dictionary.txt
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon128_24.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon16_24.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon16_8.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon256_24.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon32_24.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon48_24.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\icon48_8.png
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\license.txt
C:\Users\jinxx\workspaceMUCOMMANDER\mucommander\custom\splash.png


Now I have working eclipse debug...
Code: Select all
//no code
User avatar
jinxx
 
Posts: 2
Joined: Mon Dec 14, 2009 12:01 pm

Re: Eclipse

Postby mzhu » Sun Apr 15, 2012 12:15 am

Hi!

Is the above still valid? Or there is an easier way now to debug?

Thanks in advance!

Cheers!
mzhu
 
Posts: 3
Joined: Wed Feb 29, 2012 5:40 pm

Re: Eclipse

Postby lfiorino » Thu Aug 30, 2012 7:00 pm

Is it possible to get a list of the current dependency jars for an eclipse build and the VERSIONS used... I've brought in all the source and by trial and error have pulled in multiple versions of the support jars, but... and the most prominent problem is with JETS3T... tried every version from 0.72 to 0.90 and have gotten a different set of errors with each... there were also one or two uncaught exceptions that I temporarily threw some try/catch blocks around

Here's what I'm using so far for the dependency... please let me know if I'm off base

ant-1.7.1.jar
AppleJavaExtensions.jar
commons-collections-3.2.1.jar
commons-net-3.1.jar
hadoop-core-0.20.2-320.jar
icu4j-49_1.jar
j2ssh-core-0.2.9.jar
java-unrar-0.5.jar
jets3t-0.8.1a.jar
jftp-1.52.jar
jmdns.jar
jna-3.3.0.jar
jna_examples.jar
logback-classic-1.0.7.jar
logback-core-1.0.7.jar
slf4j-api-1.6.6.jar
lfiorino
 
Posts: 5
Joined: Wed Aug 22, 2012 7:16 pm

Re: Eclipse

Postby lfiorino » Thu Aug 30, 2012 7:33 pm

switching to 0.6.1 fixed all of the remaining problems... the only remaining snag is fallout from the custom constructor and methods for position for SFTPFile streams. Is that custome source (or JAR) available?
lfiorino
 
Posts: 5
Joined: Wed Aug 22, 2012 7:16 pm

Re: Eclipse

Postby Nicolas » Thu Aug 30, 2012 10:48 pm

Using the latest version really shouldn't be a problem. If you have Ivy properly installed and configured (basically, dunking the ivy JAR files in your ant.lib directory):
- "ant synchronize" will pull all the dependencies from our ivy repository
- "ant ivy" will generate a list of dependencies and their versions in res/ivy

Nicolas
User avatar
Nicolas
 
Posts: 831
Joined: Mon Oct 02, 2006 10:36 pm
Location: France


Return to Developer's corner

Who is online

Users browsing this forum: No registered users and 2 guests

cron