grouper-users - [grouper-users] RE: JAR files needed for compiling Changelog Consumer example?
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: "Waldbieser, Carl" <>, "" <>
- Subject: [grouper-users] RE: JAR files needed for compiling Changelog Consumer example?
- Date: Wed, 24 Sep 2014 18:46:35 +0000
- Accept-language: en-US
You need the grouper API jars, you can get those from a WS or UI deployment,
or from the API itself...
In this case I used my WS deployment:
[appadmin@fasttest-small-b-01
temp]$ pwd
/opt/appserv/tomcat/apps/grouperWs/webapps/grouperWs/WEB-INF/temp
[appadmin@fasttest-small-b-01
temp]$ mkdir -p edu/internet2/middleware/grouper/changeLog/consumer
... put the source in the file with your favorite editor ...
[appadmin@fasttest-small-b-01
temp]$ cat edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.java
package edu.internet2.middleware.grouper.changeLog.consumer;
import java.util.List;
import edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase;
import edu.internet2.middleware.grouper.changeLog.ChangeLogEntry;
import edu.internet2.middleware.grouper.changeLog.ChangeLogLabels;
import edu.internet2.middleware.grouper.changeLog.ChangeLogProcessorMetadata;
import edu.internet2.middleware.grouper.changeLog.ChangeLogTypeBuiltin;
/**
* just print out some of the events
*/
public class PrintTest extends ChangeLogConsumerBase {
...
[appadmin@fastprod-medium-a-01
temp]$ javac -classpath "../lib/*" -sourcepath .
edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.java
Then you can put that in a jar, put the jar in the grouper lib dir, should be
good to go:
[appadmin@fastprod-medium-a-01
temp]$ jar cvf printTest.jar .
added manifest
adding: edu/(in = 0) (out= 0)(stored 0%)
adding: edu/internet2/(in = 0) (out= 0)(stored 0%)
adding: edu/internet2/middleware/(in = 0) (out= 0)(stored 0%)
adding: edu/internet2/middleware/grouper/(in = 0) (out= 0)(stored 0%)
adding: edu/internet2/middleware/grouper/changeLog/(in = 0) (out= 0)(stored
0%)
adding: edu/internet2/middleware/grouper/changeLog/consumer/(in = 0) (out=
0)(stored 0%)
adding: edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.java(in
= 3289) (out= 793)(deflated 75%)
adding:
edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.class(in =
3724) (out= 1485)(deflated 60%)
[appadmin@fastprod-medium-a-01
temp]$ ls -altr
total 16
drwxr-xr-x. 9 appadmin users 4096 Sep 24 14:40 ..
drwxr-xr-x. 3 appadmin users 4096 Sep 24 14:41 edu
drwxr-xr-x. 3 appadmin users 4096 Sep 24 14:43 .
-rw-r--r--. 1 appadmin users 3871 Sep 24 14:43 printTest.jar
[appadmin@fastprod-medium-a-01
temp]$ jar tf printTest.jar
META-INF/
META-INF/MANIFEST.MF
edu/
edu/internet2/
edu/internet2/middleware/
edu/internet2/middleware/grouper/
edu/internet2/middleware/grouper/changeLog/
edu/internet2/middleware/grouper/changeLog/consumer/
edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.java
edu/internet2/middleware/grouper/changeLog/consumer/PrintTest.class
[appadmin@fastprod-medium-a-01
temp]$
-----Original Message-----
From:
[mailto:]
On Behalf Of Waldbieser, Carl
Sent: Wednesday, September 24, 2014 11:11 AM
To:
Subject: [grouper-users] JAR files needed for compiling Changelog Consumer
example?
I am trying to compile the example Changelog consumer example found at:
https://spaces.internet2.edu/display/Grouper/Notifications+(change+log)#Notifications%28changelog%29-consumer
I tried using plain old javac and tried adding all the JAR files in my
Grouper installation to my CLASSPATH, but I keep getting a errors about
missing dependencies.
Is there some kind of guide to setting up a basic build environment for
building the samples? Something command line oriented would be ideal for me.
Thanks,
Carl Waldbieser
Systems Programmer
Lafayette College
- [grouper-users] JAR files needed for compiling Changelog Consumer example?, Waldbieser, Carl, 09/24/2014
- [grouper-users] RE: JAR files needed for compiling Changelog Consumer example?, Chris Hyzer, 09/24/2014
Archive powered by MHonArc 2.6.16.