From: <bh...@us...> - 2008-01-23 17:54:57
|
Revision: 601 http://cishell.svn.sourceforge.net/cishell/?rev=601&view=rev Author: bh2 Date: 2008-01-23 09:52:13 -0800 (Wed, 23 Jan 2008) Log Message: ----------- Added a fix to the cishell template code plugin to allow static executables to be called from java code. You now just need to instantiate the StaticExecutableAlgorithmFactory giving it the top level directory where the algorithm is and a BundleContext. If the alg is correctly laid out like other executable projects and is contained in the bundle of the given BundleContext, everything should work! Also bumped the version to 0.9.0. Modified Paths: -------------- trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java Modified: trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF =================================================================== --- trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF 2008-01-23 15:24:44 UTC (rev 600) +++ trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF 2008-01-23 17:52:13 UTC (rev 601) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: CIShell Template Code Provider Bundle-SymbolicName: org.cishell.templates;singleton:=true -Bundle-Version: 0.3.0 +Bundle-Version: 0.9.0 Bundle-Localization: plugin X-AutoStart: true Import-Package: org.cishell.framework, Modified: trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java =================================================================== --- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2008-01-23 15:24:44 UTC (rev 600) +++ trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2008-01-23 17:52:13 UTC (rev 601) @@ -41,6 +41,13 @@ BundleContext bContext; String algName; MetaTypeProvider provider; + + public StaticExecutableAlgorithmFactory() {} + + public StaticExecutableAlgorithmFactory(String algName, BundleContext bContext) { + this.algName = algName; + this.bContext = bContext; + } protected void activate(ComponentContext ctxt) { bContext = ctxt.getBundleContext(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |