openworm / OpenWorm

Repository for the main Dockerfile with the OpenWorm software stack and project-wide issues
http://openworm.org
MIT License
2.67k stars 208 forks source link

Automatically include all necessary plugins for Geppetto #175

Closed msasinski closed 10 years ago

msasinski commented 10 years ago

This needs to be checked on osx..

tarelli commented 10 years ago

Thanks! I will check this as soon as I get a break.

tarelli commented 10 years ago

@msasinski I am getting this error when running the script from OSX:

Matteos-MacBook-Pro:utilities matteocantarelli$ python build_dev_environment.py 
Warning: JAVA_HOME not set.
Warning: MAVEN_HOME not set
Creating a new directory: /Users/matteocantarelli/openworm_dev
Downloading: http://www.eclipse.org/downloads/download.php?file=/virgo/release/VP/3.6.0.RELEASE/virgo-tomcat-server-3.6.0.RELEASE.zip&r=1 and unzipping into /Users/matteocantarelli/openworm_dev...
Downloading: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-macosx-cocoa-x86_64.tar.gz&r=1 and unzipping into /Users/matteocantarelli/openworm_dev...
Customizing Eclipse
Traceback (most recent call last):
  File "build_dev_environment.py", line 191, in <module>
    for line in fileinput.input(eclipse.ini, inplace=True):
NameError: name 'eclipse' is not defined

Ideas? Thanks for persisting on this, once it will work it will be very useful!

msasinski commented 10 years ago

@tarelli Could you please check now?

tarelli commented 10 years ago

Hi @msasinski thanks for updating, this is what I get now:

Customizing Eclipse
Traceback (most recent call last):
  File "build_dev_environment.py", line 191, in <module>
    for line in fileinput.input(eclipse_ini, inplace=True):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 253, in next
    line = self.readline()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 322, in readline
    os.rename(self._filename, self._backupfilename)
OSError: [Errno 20] Not a directory
msasinski commented 10 years ago

@tarelli Are you on 32bit or 64bit Mac?

tarelli commented 10 years ago

64

msasinski commented 10 years ago

what's your python /osx version after it crashes where is your eclipse.ini located? openworm_dev/eclipse/?/eclipse.ini

msasinski commented 10 years ago

Never mind. Can you check it now? This script will need to be rewritten once it works :)

tarelli commented 10 years ago

@msasinski same error but I found the problem, the first "eclipse" in the path shouldn't be there as that's already part of eclipse_dir. I tried locally that change and it worked! Is there any way that we can programmatically create a workspace? Also it would be nice to update virgo to 3.6.2 and eclipse to be Kepler.

msasinski commented 10 years ago

@tarelli I'm not sure about creating a workspace but will investigate it and let you know if it's possible.Later tonight I will upgrade the script to include your fix, and update virgo and eclipse

Thanks!

msasinski commented 10 years ago

@tarelli from what I see there is no way to programmatically create new workspace, but if you could create a new workspace and send me files from the .metadata/.plugins/org.eclipse.core.runtime/.settings/ directory we could have the script download them automatically

tarelli commented 10 years ago

@msasinski mm even so we would have to import the projects manually anyway, let's keep this for a next iteration. If you could update the script with the latest then I would be able to merge it, thanks!

tarelli commented 10 years ago

@msasinski ping! :)

msasinski commented 10 years ago

@tarelli pong.. Try now..

tarelli commented 10 years ago

@msasinski thanks! whenever you have time to update eclipse and virgo feel free to send another one! :) also we should include all the plugins that are part of the build_server_package script.