Author: bfitzpat
Date: 2010-11-19 13:00:22 -0500 (Fri, 19 Nov 2010)
New Revision: 26782
Added:
workspace/bfitzpat/org.jboss.tools.py.project.converter/readme.txt
Modified:
workspace/bfitzpat/org.jboss.tools.py.project.converter/src/Main.py
Log:
JBIDE-6177 - updates
Added: workspace/bfitzpat/org.jboss.tools.py.project.converter/readme.txt
===================================================================
--- workspace/bfitzpat/org.jboss.tools.py.project.converter/readme.txt
(rev 0)
+++ workspace/bfitzpat/org.jboss.tools.py.project.converter/readme.txt 2010-11-19 18:00:22
UTC (rev 26782)
@@ -0,0 +1,33 @@
+# Python Project Converter
+# 19-NOV-2010
+# bfitzpat
+
+The org.jboss.tools.py.project.converter project requires the PyDev
+tooling from Aptana that's available as part of Helios. Install that
+prior to loading this project.
+
+You will also probably have to update the python runtime for your
+particular install. Initially this was done on RHEL 5, so your mileage
+may vary with the existing setup.
+
+The scripts are driven by Main.py.
+
+Update the path to your runtime and provide a list of the projects you
+want to import and run it. And change values in constants.py as far
+as the name of the runtime you want and ESB version. Right now it's set
+for:
+
+ # name of the runtime target server - CHANGE THIS TO BE YOUR LOCAL SERVER NAME
+ runtimeTargetServerName = 'JBoss SOA-P 5.1 Runtime Server'
+
+ # version for ESB
+ esbVersion = '4.4'
+
+I've had luck with ESB projects such as deadletter, the various
+helloworld_* variants, and so on. Basically run the script on your
+selected project and import the project into Eclipse.
+
+But this is just a starting place. We can add to it as we find other
+projects we want to convert and figure out how to add appropriate bits
+to auto-generate for Eclipse to be happy.
+
\ No newline at end of file
Modified: workspace/bfitzpat/org.jboss.tools.py.project.converter/src/Main.py
===================================================================
--- workspace/bfitzpat/org.jboss.tools.py.project.converter/src/Main.py 2010-11-19
17:47:14 UTC (rev 26781)
+++ workspace/bfitzpat/org.jboss.tools.py.project.converter/src/Main.py 2010-11-19
18:00:22 UTC (rev 26782)
@@ -16,14 +16,18 @@
toconvert = []
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/camel_helloworld')
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/business_ruleservice_cep')
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/deadletter')
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/helloworld_file_action')
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/helloworld_file_notifier')
-toconvert.append('/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts/helloworld_ftp_action')
+# change this list to be appropriate to your own runtime directory and
+# list of projects to convert
+localruntime =
'/home/bfitzpat/NotBackedUp/runtimes/jboss-soa-p-5/jboss-as/samples/quickstarts'
+toconvert.append('camel_helloworld')
+toconvert.append('business_ruleservice_cep')
+toconvert.append('deadletter')
+toconvert.append('helloworld_file_action')
+toconvert.append('helloworld_file_notifier')
+toconvert.append('helloworld_ftp_action')
+
for x in toconvert:
print 'Starting to convert ' + x
- convert( x )
+ convert( os.path.join(localruntime, x) )
print 'Converted ' + x
Show replies by date