Hi Brad... a builder would be a good solution if you want to compile all
your files at any change... I'm not sure if this would be better than
having an ant script that you would call when you want (it depends on
what you're looking for to do with it).
As for the code completion, did you add your jar to your 'system
pythonpath'? -- because of a jython bug it is not enough just adding it
to the 'project pythonpath'.
Cheers,
Fabio
Brad Clements wrote:
>On 16 Nov 2005 at 8:52, Fabio Zadrozny wrote:
>
>
>
>>Hi Brad,
>>
>>Pydev does not actually compile your .py files to classes
>>automatically (the interpreter for jython is only specified so that
>>code-completion works).
>>
>>This could be added as a feature request to the pydev tracker... In
>>the meantime, I would advise you to create an ant script to compile
>>your files. This is not currently done because you could probably go
>>and always interpret the .py files with jython at runtime, so, you
>>would only (in my view) compile the .py files to classes when you do a
>>distribution... altough there are probably some scenarios where it
>>would be nice to have it compiled automatically.
>>
>>
>
>Yes, I figured I would need to setup some kind of Ant script to compile
>selected .py files to .class files.
>
>Too bad I don't know eclipse well enough to do that. Maybe I need to add
>a builder.. yeah..
>
>So, I am using Junit tests on some java code, which will load .class files
>generated from Jython code and I just want it to work.
>
>--
>
>regarding code completion w/ Jython.
>
>Does PyDev only code complete Jython code? When I type in an import
>statement from Java, I can't get it to complete that.
>
>Like
>
>import org.jbpm.ant. (ctrl space) I get a beep.
>
>Of course, the same thing happens in Java code too, and I do jave
>jbpm.jar setup in the project.. Well, back to the books I guess.
>
>
>
>
>
>
|