Re: [eclipse-clp-users] Compiling files from jars

From: Kish Shen <kisshen_at_cisco.com>
Date: Thu, 14 Aug 2008 15:10:01 +0100
Hi Andrew,

You should be able to compile an ECLiPSe source file with an rpc 
(EclipseConnection.rpc), which allows you to execute goals/queries, 
including ECLiPSe's compile/1, which does not require you to give the 
file name as a java.io.File.


Farrell, Andrew wrote:
> Hi,
> 
> I want to be able EclipseConnection.compile a file, but instead of providing a java.io.File, I want to supply a file resource loaded from a jar. As I want to do this in a sandbox I can not interact with the underlying file system, which the former would require.
> 
> Is there any chance of:
> (1) Augmenting the Java interface to allow this
> (2) Supplying the source code for the java interface so I can extend it

ECLiPSe is open-sourced, so the source is available. You can either 
download the eclipse_src_<version>.tgz package, or you can even access 
the source via CVS from ECLiPSe's SourceForge site:

http://eclipse-clp.cvs.sourceforge.net/eclipse-clp/

The Java interface sources are under the JavaInterface directory in the 
source (JavaInterface/src/com/parctechnologies/eclipse for the Java 
source of the Java interface).

> (3) A way that I am missing that would allow me to do this?
> 
> Many thanks,
> Andrew Farrell
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users

Cheers,

Kish

-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.
Received on Thu Aug 14 2008 - 07:10:42 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET