The plugin classes are in the .hpi of the plugin.
During release there is also a .jar uploaded to the maven repo to use as API 
for other plugins.

/B

From: [email protected] [mailto:[email protected]] On 
Behalf Of Frank Merrow
Sent: den 12 april 2013 06:21
To: [email protected]
Subject: RE: How get Jenkins Plugin class to be known by Grooy

Yes the capital H was a artifact or my edit that I didn't correct . . .

Auto-complete is working . . . for instance I can see all the classes in the 
Jenkins*.jar under hudson.security.* but not the plugin class.

Not surprising since it isn't in the jar, but I expected it to be in "some jar" 
. . . but I don't see one at all.

Frank

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Sandell, Robert
Sent: Thursday, April 11, 2013 3:50 AM
To: [email protected]<mailto:[email protected]>
Subject: RE: How get Jenkins Plugin class to be known by Grooy

Are you sure it's just not a "spelling" error?
There is no package named Hudson.security but hudson.security does.


Robert Sandell
Software Tools Engineer - SW Environment and Product Configuration
Sony Mobile Communications

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Merrow, Frank
Sent: den 11 april 2013 01:50
To: [email protected]<mailto:[email protected]>
Subject: How get Jenkins Plugin class to be known by Grooy

So I wanted to do this:

If (var instanceof Hudson.security.LDAPSecurityRealm)

I couldn't get it to compile, even though I had "import Hudson.security.*".

Eventually I figured out that this particular class isn't in the jenkin*.jar 
file . . . it is a plugin class.

So I thought "no problem, I'll just import the plugin jar too", but there is no 
jar.

There is a *.class file, there is the "jpi" file . . . but nothing Netbeans 
will recognize as a jar . . .

Even more interesting is that I then tried this:

If (var instanceof Class.forName("LDAPSecurityRealm"))

This failed, even though "var" contained a pointer to one of that very same 
class . . . so I know the JVM knows about it, but Class threw a not found 
exception.

I eventually just closed by eyes and made calls on "var" assuming it is a LDAP 
class . . . but I really wanted to check first.

Any ideas how to make that work?

Frank
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to